Skip to content

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

Merged
rodrigok merged 4 commits into
RocketChat:developfrom
kb0304:develop
Feb 8, 2018
Merged

[NEW] Add route to get user shield/badge#9549
rodrigok merged 4 commits into
RocketChat:developfrom
kb0304:develop

Conversation

@kb0304

@kb0304 kb0304 commented Jan 30, 2018

Copy link
Copy Markdown
Contributor

@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

CLAassistant commented Jan 30, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jhermann

Copy link
Copy Markdown

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

kb0304 commented Jan 31, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

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

@kb0304

kb0304 commented Feb 1, 2018

Copy link
Copy Markdown
Contributor Author

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

@graywolf336 graywolf336 left a comment

Copy link
Copy Markdown
Contributor

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.

6 participants