-
Notifications
You must be signed in to change notification settings - Fork 33
Refactor: Dashboard routing / sidebar layout, to support team settings tabbar #148
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
Open
ben-fornefeld
wants to merge
9
commits into
main
Choose a base branch
from
refactor-sidebar-layout-to-have-a-settings-tab-bar-group-eng-3023
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Refactor: Dashboard routing / sidebar layout, to support team settings tabbar #148
ben-fornefeld
wants to merge
9
commits into
main
from
refactor-sidebar-layout-to-have-a-settings-tab-bar-group-eng-3023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ed routes + clean up outdated routing and config structures
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Removed outdated test cases from `dashboard-routes.test.ts` to streamline tests and focus on relevant functionality. - Deleted unused `dashboard-tabs.test.tsx` file to reduce clutter in the test suite.
…ut components - Deleted `dashboard-routes.test.ts` and `dashboard-routes.ts` to eliminate obsolete routing configurations and tests. - Updated `DashboardLayout` and related components to simplify structure by removing unnecessary props and enhancing layout consistency. - Refactored tab components in sandboxes and settings to utilize a more streamlined approach with `DashboardTabs` and `DashboardTab` for better maintainability.
- Adjusted positioning and margin styles in the dashboard header and tabs for better alignment. - Enhanced the DashboardTabs component with additional class names for improved spacing. - Updated icon sizes in the settings layout for a more uniform appearance. - Refined the layout wrapper to utilize dynamic viewport height for better responsiveness. - Modified theme variables for protected navigation height to ensure consistent styling across components.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In preparation of upcoming features and in accordance to our Figma design, this PR refactors the following:
/dashboard/$teamId/team
was split to/dashboard/$teamId/members
and/dashboard/$teamId/settings?tab=general
/dashboard/$teamId/keys
->/dashboard/$teamId/settings?tab=keys
New Sidebar Layout
New Settings Route
Note
Splits team settings into Members and Settings (General/Keys), introduces reusable DashboardTabs, updates sidebar/routes/headers, and refactors members/keys pages to use params-based team resolution.
team
intomembers
andsettings?tab=general
; movedkeys
tosettings?tab=keys
with new parallel routes and layout.sandboxes
andsettings
to support parallel route slots./dashboard/route.ts
tab mapping (addsmembers
,settings
), sign-in flow, and default team handling.configs/sidebar.ts
; links now includeMembers
andSettings
(replacingTeam
/API Keys
).PROTECTED_URLS
withSETTINGS(team, tab)
andMEMBERS
; tweakedSANDBOXES
tab query.ui/dashboard-tabs
and refactored sandboxes/settings/sandbox-detail to use it; removed old sandbox tabs.getDashboardPageConfig
withgetDashboardLayoutConfig
; updated header styles and wrapper behavior.theme.css
.params
and resolveteamId
server-side; updated create key dialog to use selected team.jsx
set topreserve
.Written by Cursor Bugbot for commit 60912ad. This will update automatically on new commits. Configure here.