Open randomouscrap98 opened 2 years ago
Since the sidebar is the source of truth and place for logging in, I think the place you put the API endpoint info (in the user pane) is a good place. I think it should be displayed for both the login form AND the user info, so maybe it'll be displayed outside of those two areas? Like if you have a single pane for both user login and the user info... or if they're separate, it just goes in both. but if it's single and you just selectively display the user info or the login, I think some of that info (the frontend version and the api endpoint) should be displayed outside the conditional displayed components
I want to know which API endpoint I'm accessing, and maybe it'd be cool if there was a selector somewhere so you can swap between dev and production (I don't like testing on prod). Also, the API provides information about the version it's running and some other stuff, that could probably be displayed too with the API endpoint (although it's a lot more complicated and not necessary, I mostly just want information about what we're pointing at).
ALSO, as part of this information, I think we also NEED the version information for the frontend. If you're not already tracking version information, you (or me) should create a publish script that builds the distribution while also managing some simple version tracker. I just keep a 4 digit version and increment the last number all the time, keeping the other 3 for my own discretion. Displaying that (and maybe the build time if possible) GREATLY helps when things go wrong, because like 50% of the time it's just cache