Skip to content

Conversation

ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Sep 25, 2025

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

image

New Settings Route

image

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.

  • Routing & Pages:
    • Split team into members and settings?tab=general; moved keys to settings?tab=keys with new parallel routes and layout.
    • Added placeholder pages for sandboxes and settings to support parallel route slots.
    • Updated /dashboard/route.ts tab mapping (adds members, settings), sign-in flow, and default team handling.
  • Sidebar & URLs:
    • Replaced sidebar configs with configs/sidebar.ts; links now include Members and Settings (replacing Team/API Keys).
    • Extended PROTECTED_URLS with SETTINGS(team, tab) and MEMBERS; tweaked SANDBOXES tab query.
  • Tabs System:
    • Introduced ui/dashboard-tabs and refactored sandboxes/settings/sandbox-detail to use it; removed old sandbox tabs.
  • Layout & Header:
    • Replaced getDashboardPageConfig with getDashboardLayoutConfig; updated header styles and wrapper behavior.
    • Adjusted protected nav sizing and variables in theme.css.
  • Members & Keys:
    • Refactored members and API keys components to accept params and resolve teamId server-side; updated create key dialog to use selected team.
  • Misc:
    • Minor UI tweaks (sandboxes list container, header counter positioning, tabs primitive spacing).
    • tsconfig jsx set to preserve.

Written by Cursor Bugbot for commit 60912ad. This will update automatically on new commits. Configure here.

…ed routes + clean up outdated routing and config structures
Copy link

linear bot commented Sep 25, 2025

Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Oct 2, 2025 5:55pm
web-juliett Ready Ready Preview Comment Oct 2, 2025 5:55pm

- 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.
@ben-fornefeld ben-fornefeld changed the title Refactor: Dashboard layout and configurations to support Refactor: Dashboard routing / sidebar layout, to support team settings tabbar Sep 26, 2025
…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.
cursor[bot]

This comment was marked as outdated.

- 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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant