[TASK-977] Account routing and sidenav #5118
Draft
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.
Checklist
Description
Adds routing for the account settings views for the organization/teams feature and updates the account sidebar nav menu with logic to handle the arrangement of the menu according to whether or not stripe is enabled, whether or not a user's organization should be displayed as an organization in the UI and what role the has in their organization.
This is currently marked as a draft until the naming conventions for this project are finalized. The names in the UI and routes will have to change accordingly.
Notes
Because we are phasing out bem components, I have reimplemented the account menu with a style module.
I have removed the 'new' badge from addons and I am also removing the logic to check whether or not addons should be displayed, as this project will almost certainly only be completed after NLP addons are released, after which point addons will always be displayed.