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

[NEW] Add route to get user shield/badge #9549

Merged
merged 4 commits into from
Feb 8, 2018
Merged

Conversation

kb0304
Copy link
Contributor

@kb0304 kb0304 commented Jan 30, 2018

@RocketChat/core

Closes #9488

Add route:
/api/v1/shield.svg?type=user&username=USERNAME

Displays user's name and status as follows:

shield-online
shield-away
shield-busy
shield-offline

Please guide me how can I improve the code further. Thank You.

@CLAassistant
Copy link

CLAassistant commented Jan 30, 2018

CLA assistant check
All committers have signed the CLA.

@jhermann
Copy link

Choosing black as the text color would benefit all but the red version. Or dial the background way darker – bad contrast plagues the current RC default theme, no need to extend that to the shields.

@kb0304
Copy link
Contributor Author

kb0304 commented Jan 31, 2018

I have made the background darker. Please check the following and suggest further changes. I will update the PR accordingly.

shield-online 1
shield-away 1
shield-busy 1
shield-offline 1

Hex values : #1FB31F, #DC9B01, #BC2031, #A5A1A1

@graywolf336
Copy link
Contributor

Looking good 👍 once you make the changes, I'll take a look

@kb0304
Copy link
Contributor Author

kb0304 commented Feb 1, 2018

@graywolf336
Hi Bradley,
I have updated the color schemes to as in my previous comment. Please have a look now.
Thanks

Copy link
Contributor

@graywolf336 graywolf336 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works good, testing locally. Thanks for the pull request!

@graywolf336 graywolf336 added this to the 0.62.0 milestone Feb 1, 2018
@rodrigok rodrigok changed the title [NEW] Add user shield [NEW] Add route to get user shield/badge Feb 8, 2018
@rodrigok rodrigok merged commit 2b97372 into RocketChat:develop Feb 8, 2018
@rodrigok rodrigok mentioned this pull request Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants