Fix admin console refresh requirement minds#4563
Ticket(s) / Related Merge Requests
Summary of Changes
Fix the admin console requiring a refresh after login to see appropriate tabs. Also fixes some performance-impacting logic in the sidebar and tenant admin console tabs.
Testing Considerations
Bound tenant network: https://ben2.oke.minds.io/ (make sure to HARD refresh)
Be aware of https://gitlab.com/minds/front/-/issues/6160
-
From a logged-out state, log in as the root admin - the console should have the correct tabs -
Log out and in as a moderator - the console should have the correct tabs (note: I made @bashy
a moderator).
Deployment Considerations
Standard deployment.
Regression Scope
- Sidebar logic for showing the tenant admin console option.
- Logic that determines which tabs to show.
Platform Affected (web, mobile, etc)
Web.
Developer Testing Completed
Manual, unit (jasmine/karma).
Screenshots / Screen Recording
From a logged-out state, log in as the root admin - the console should have the correct tabs
simplescreenrecorder-2024-02-20_13.37.45
Log out and in as a moderator - the console should have the correct tabs
simplescreenrecorder-2024-02-20_13.39.42
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Definition of Done Checklist
-
The Acceptance Criteria has been met -
Code is tested: Testing includes unit/spec, E2E/automated and manual testing -
Merge requests description has been filled out
Edited by Ben