Add Synonym link to NavBar for moderators #2619
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adding moderator gated link to Synonyms moderation route.
With the link not visible as a non-logged in user:
With the link visible:
With the link not visible as a logged in user:
Mobile view:
and because I know you'll ask about it, the reason I added
style={{ width: 'max-content' }}
to the Title is because without it, the additional characters in the PrimaryNav cause the "General Coordinates Network" to all stack on top of each other which makes the header very noticeably taller than normal. Here is an image without that style added:I can add "Syno" without anything changing at all, but if you add the rest of the word things start to change slightly to fit all the text in the nav bar.
Related Issue(s)
Resolves #2618
Testing
Manual testing both as a logged in moderator and a logged out user. This should be tested on dev with a logged out user, a logged in non-moderator user, and a logged in moderator.