Vencord icon indicating copy to clipboard operation
Vencord copied to clipboard

feat(MoreUserTags): Role Colors for User Tag

Open OIRNOIR opened this issue 6 months ago • 23 comments

This feature is inspired by https://github.com/Puyodead1/replugged-stafftags It took me 3 hours to figure out how to do this in Vencord and I'm so glad I did because it looks just so much better Basically it allows setting a toggle in settings that makes staff tags have the same background as the member's role, falling back to the default colors it was before.

A screenshot of the concept. The first image was a screenshot of replugged-stafftags and the second was a screenshot of the then-vencord plugin. This is a screenshot of a screenshot, so you can see my modification in action near the top.

Screenshot 2024-02-10 at 1 06 23 AM

Here are some more screenshots, demonstrating that it can support both dark and light role colors. It also works in the member list and on profiles.

Screenshot 2024-02-10 at 1 06 45 AM Screenshot 2024-02-10 at 1 07 30 AM

This is my first contribution to Vencord, so let me know if I should make any changes!

Note: The patches may seem over-engineered, but as the member object is not accessible within the section where it creates the bot tag, the colors need to be passed from the place it exists to where it needs to go. The extra patches are designed to do that.

OIRNOIR avatar Feb 10 '24 09:02 OIRNOIR

I'm working on ammending this PR to only edit the colors of tags if they also contain staff information - We still want to see the normal discord branding for tags that don't have staff perms but do have role colors, especially in the member list

OIRNOIR avatar Feb 11 '24 02:02 OIRNOIR

What the heck is up with this test workflow

OIRNOIR avatar Feb 12 '24 05:02 OIRNOIR

You need a maintainer to approve this workflow to run since this is your first contribution

MrDiamondDog avatar Feb 12 '24 05:02 MrDiamondDog

You need a maintainer to approve this workflow to run since this is your first contribution

I see. Thank you. I will continue to wait patiently.

OIRNOIR avatar Feb 13 '24 03:02 OIRNOIR

Is there something I have to do to let this PR be reviewed? Like, is there some sort of convention that this repo follows that I missed?

OIRNOIR avatar Feb 14 '24 22:02 OIRNOIR

I should have done this PR in a side branch instead of the main branch of my fork so that I could work on other prs without them depending on this one

OIRNOIR avatar Feb 14 '24 22:02 OIRNOIR

Banished to the second page of PRs, rip. I feel like i can't use vencord without this change so hopefully i'll figure out how to build the browser extension myself.

OIRNOIR avatar Mar 01 '24 00:03 OIRNOIR

Context for that latest commit: Screenshot 2024-04-17 at 10 31 29 PM

OIRNOIR avatar Apr 18 '24 05:04 OIRNOIR

Has this rolled out for everyone? Maybe it should check the experiment if possible (I haven't seen any other plugin do this 🤷🏻‍♀️)

TheKodeToad avatar Apr 18 '24 12:04 TheKodeToad

Has this rolled out for everyone? Maybe it should check the experiment if possible (I haven't seen any other plugin do this 🤷🏻‍♀️)

I don't know if it has an experiment and I'm not sure how to check. Could you please let me know if you find one?

OIRNOIR avatar Apr 18 '24 15:04 OIRNOIR

Has this rolled out for everyone? Maybe it should check the experiment if possible (I haven't seen any other plugin do this 🤷🏻‍♀️)

afaik it doesn't have an experiment. The change is also on stable now.

Grafaffel avatar Apr 18 '24 15:04 Grafaffel

It has an experiment. "App Launcher - Onboarding"

Cynosphere avatar Apr 18 '24 16:04 Cynosphere

It has an experiment. "App Launcher - Onboarding"

Does that actually affect the app vs bot text? If so, how do I get it within vencord?

OIRNOIR avatar Apr 24 '24 04:04 OIRNOIR

It has an experiment. "App Launcher - Onboarding"

Does that actually affect the app vs bot text? If so, how do I get it within vencord?

experiments plugin!?!?!?

Sqaaakoi avatar Apr 24 '24 04:04 Sqaaakoi

It has an experiment. "App Launcher - Onboarding"

Does that actually affect the app vs bot text? If so, how do I get it within vencord?

experiments plugin!?!?!?

I mean how do I programatically find the status of the experiment from within a plugin

OIRNOIR avatar Apr 24 '24 04:04 OIRNOIR

I mean how do I programatically find the status of the experiment from within a plugin

Most of them are their own modules. Luckily this one has named exports because it exports two experiments, so you can just findByProps("AppLauncherOnboardingExperiment").

Cynosphere avatar Apr 24 '24 04:04 Cynosphere

Alright thanks all, it now checks the experiment's status!

OIRNOIR avatar Apr 24 '24 05:04 OIRNOIR

Screenshot 2024-04-23 at 10 19 36 PM

Also thanks to whoever allowed checks to run on this single commit out of this pr's entire history. Unexpected but it felt good to know that my PR does, in fact, work on your machine as well as mine.

OIRNOIR avatar Apr 24 '24 05:04 OIRNOIR

@Cynosphere Discord just removed the experiment, and also changed their original code so that the app tag is used 100% of the time

OIRNOIR avatar Apr 26 '24 23:04 OIRNOIR

Adding backwards compatibility to maintain consistency with dev: https://github.com/Vendicated/Vencord/commit/c10466f607d889c06afdee46f7af31b1062e78b5

OIRNOIR avatar Apr 26 '24 23:04 OIRNOIR