-
Notifications
You must be signed in to change notification settings - Fork 544
[TOOL-4292] Dashboard: Show Team selector page for '~' team slug #6930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6930 +/- ##
=======================================
Coverage 55.03% 55.03%
=======================================
Files 897 897
Lines 57296 57296
Branches 3959 3959
=======================================
Hits 31530 31530
Misses 25670 25670
Partials 96 96
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR removes a redirect feature for team paths in the `middleware.ts` file and introduces a new page component in `page.tsx` that allows users to select a team when they belong to multiple teams, enhancing the team selection experience. ### Detailed summary - Removed redirect logic for `/team/~/...` paths in `middleware.ts`. - Added a new page component in `page.tsx` for team selection. - Implemented fetching of teams and authentication token using `Promise.all`. - Included UI elements for displaying teams and their details. - Introduced `createTeamLink` function to generate team-specific links. - Utilized components like `GradientAvatar`, `TeamHeader`, and `AppFooter` for layout. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
8d57cfd
to
80bf795
Compare
PR-Codex overview
This PR primarily focuses on refactoring the handling of team selection in the dashboard. It removes old redirection logic and introduces a new page for selecting a team when multiple teams are present.
Detailed summary
/team/~/...
.Page
component for team selection.TeamHeader
,GradientAvatar
, andTeamPlanBadge
.createTeamLink
function to generate team-specific links.