[vtadmin] Tidy up /settings (née /debug) page#10218
Merged
doeg merged 3 commits intovitessio:mainfrom May 5, 2022
Merged
Conversation
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
ajm188
approved these changes
May 4, 2022
Contributor
ajm188
left a comment
There was a problem hiding this comment.
lgtm! my only question is if we should rename Debug.tsx to Settings.tsx to match the route, but i defer to you!
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
Contributor
Author
Oh thanks for catching that! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Signed-off-by: Sara Bee 855595+doeg@users.noreply.github.com
Description
Some tidying up before GA, but this is also (sort of) a prerequisite for single-component VTAdmin (#10118 and #10214).
Specifically, with single-component VTAdmin, the front- and back-end will (by definition) share the same "route space". (This is a downside, but not a big one.) vtadmin-api already defines several
/debugroutes. While it doesn't have a handler for the root/debugroute, it just seemed weird and unnecessary to have vtadmin-web overlap when it doesn't really need to.Here's what this PR does instead:
Avoids route overlap by moving the
/debugview to the/settingsroute, since that's likely a route we will use ✨ someday ✨ for user preferences (dark mode, time formatting, etc.) and seems like a fair place for this kind of debug info, too.Omits the """style guide""" (I use that term loosely, lol) for production builds, since it's only really useful in dev mode. It also makes the production build a lil smaller and simpler.
Removes the "Debug" link from the NavRail, since this "settings page" in current form (just a blob of
NODE_ENVjson) isn't relevant to anyone except those that already know about it. 🔮Here's what it looks like now for a prod build (on my local machine):
Related Issue(s)
Checklist
Deployment Notes
N/A