-
Notifications
You must be signed in to change notification settings - Fork 23
Adjust config detail default tab ordering #2640
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for goofy-euclid-75956c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for flanksource-demo-stable ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adjusts the default tab ordering and routing for config detail pages by redirecting the catalog base URL to the first available tab and prioritizing config-attached views over static tabs.
- Implements automatic redirection to the first available tab when accessing catalog config base URLs
- Reorders tabs to surface config-attached views before static tabs and respects ordinal ordering
- Renames the "Catalog" tab to "Spec" and updates routing accordingly
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/pages/config/details/ConfigDetailsIndexRedirect.tsx | New redirect component that automatically navigates to the first available tab |
src/components/Configs/ConfigTabsLinks.tsx | Reorders tabs to prioritize views, adds ordinal sorting, and renames Catalog to Spec |
src/pages/config/details/ConfigDetailsPage.tsx | Updates active tab name from "Catalog" to "Spec" |
src/components/Configs/ConfigDetailsTabs.tsx | Updates type definitions and default values for the renamed tab |
src/api/services/views.ts | Adds ordinal field to ViewListItem type |
src/App.tsx | Adds routing for the new redirect component |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
✅ Deploy Preview for clerk-saas-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary
resolves: #2639