gitpod
gitpod copied to clipboard
refactor(dashboard/menu): persist team selection
Description
Persist team selection for better UX.
Related Issue(s)
Fixes #10496
How to test
- Open dashboard
- Switch teams
- Click on Workspaces
- You should still be on your selected team
- Repeat 2 through 4 and optionally check local storage to see the team selection changing
Then:
- Visit root URL (
/
) - The team selection should still be remembered
Release Notes
persist selected team across pages
Documentation
- [x] Creating a new team should change the persisted team to the new created team
- [x] Visiting a team via URL should change the persisted team to the one in the URL
- [x] Deleting a team should remove the persisted team
Now even /projects
does not depend on the URL to have /t/[slug]
. That is a problem AFAIK, right?
I am used to Next.js routing not to react-router
, my bad 😅!
The current behavior I implemented is for pages to be aware of the team even if the URL does not contain the team slug. I do not know whether this is wanted 🙂
/werft run
:+1: started the job as gitpod-build-improve-persist-team-selection-fork.0
(with .werft/
from main
)
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
hey @aboqasem !Super sorry this PR slipped our attention. It's now quite outdated and I didn't see it when I started on #13316 . I'll bring this up with team so we can improve our handling of contributions.