Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow assigning Patreon tier to a player in admin panel #356

Open
abeninski opened this issue Feb 4, 2021 · 7 comments
Open

Allow assigning Patreon tier to a player in admin panel #356

abeninski opened this issue Feb 4, 2021 · 7 comments
Labels
Admin Page Improvement https://github.com/w3champions/w3champions-ui/projects/2 good first issue Good for newcomers

Comments

@abeninski
Copy link
Contributor

Currently when somebody signs to our Patreon we manually go into the database and add corresponding Patreon tier icons to PersonalSetting.SpecialPictures (https://github.com/w3champions/website/tree/master/patreon-tiers).
This is not really good approach and I think we should just add a field to the PersonalSetting.PatreonTier and when a played is logged in and goes to change avatar, based on that field we list him additional Patreon tier icons (https://github.com/w3champions/website/tree/master/patreon-tiers).

Example:
Player has PersonalSetting.PatreonTier = Gold
When he opens his profile and open change icon modal he can see gold pictures (https://github.com/w3champions/website/blob/master/patreon-tiers/3.gold.json) as well because server has returned them

@modmoto
Copy link
Member

modmoto commented Feb 4, 2021

can we get this info automatically from patreon? Or link patreon account to your profile somehow? What data do we have in patreon? I guess just the mail?

@abeninski
Copy link
Contributor Author

Maybe but we still need that functionality

@modmoto modmoto added Admin Page Improvement https://github.com/w3champions/w3champions-ui/projects/2 good first issue Good for newcomers labels Feb 6, 2021
@modmoto
Copy link
Member

modmoto commented Feb 6, 2021

jeah of course, was just wondering if we could do that with less manual work in the future.

@amacado
Copy link
Member

amacado commented Nov 7, 2021

I will work on this issue and create an admin interface which allows the management of patreon tiers without the direct database approach currently used. I'll also take a look if patreon would support API calls to auto-link subscription tiers.

@Cepheid-UK
Copy link
Member

Cepheid-UK commented Nov 7, 2021

Keep me in the loop on what youre doing, this week I was planning to add an endpoint that adds portraits to the admin controller.

fortunately we have the admin view neatly set up that we can rework.

The plan at the moment is to use the existing autocomplete search (check the proxies view to see it) to get a users data, then from that interface apply actions to them, give/remove badges, give/remove portraits, mute them, ban/unban them, edit their proxies, etc

@Cepheid-UK
Copy link
Member

Update on this, ive added support for adding portraits to players by battletag into website-backend and tested it.

there are a few more steps. I'll likely add another endpoint that returns which special icons are part of a patreon tier, so we can easily use that on the frontend to assign them to a battletag.

perhaps in future we can tie this to the patreon api for MAXIMUM AUTOMATION, but for now this semi-manual route works.

@zygissss
Copy link

half way done

@Cepheid-UK Cepheid-UK reopened this Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Page Improvement https://github.com/w3champions/w3champions-ui/projects/2 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants