-
Notifications
You must be signed in to change notification settings - Fork 3
feat: navigation via tabs #297
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
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 implements tab-based navigation for the MCP (Managed Control Plane) page, transforming the previous single-page layout into a tabbed interface. The changes reorganize content into logical sections (Overview, Crossplane, Flux, Landscapers) and enhance navigation between components through interactive hint cards.
- Restructures the McpPage to use ObjectPage with IconTabBar mode for tab navigation
- Refactors Flux components by splitting FluxList into separate GitRepositories and Kustomizations components
- Adds click handlers to hint cards for navigation between sections
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/types/types.ts | Adds optional onClick handler to GenericHintProps |
src/spaces/mcp/pages/McpPage.tsx | Major restructuring to implement tab navigation with ObjectPageSubSections |
src/spaces/mcp/pages/McpPage.module.css | Updates styling for new section layout |
src/index.css | Removes obsolete crossplane-table-element CSS class |
src/components/HintsCardsRow/HintsCardsRow.tsx | Adds navigation callback prop and click handlers |
src/components/HintsCardsRow/GenericHintCard/GenericHintCard.tsx | Implements onClick functionality for navigation |
src/components/ControlPlane/ProvidersConfig.tsx | Wraps content in Panel with consistent toolbar styling |
src/components/ControlPlane/Providers.tsx | Wraps content in Panel with consistent toolbar styling |
src/components/ControlPlane/ManagedResources.tsx | Wraps content in Panel with consistent toolbar styling |
src/components/ControlPlane/Kustomizations.tsx | New component extracted from FluxList for Kustomizations table |
src/components/ControlPlane/GitRepositories.tsx | New component extracted from FluxList for Git repositories table |
src/components/ControlPlane/FluxList.tsx | Removed - functionality split into separate components |
src/components/ControlPlane/ComponentList.tsx | Wraps content in Panel with consistent toolbar styling |
public/locales/en.json | Updates translation keys for new section structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
const hintState = config.calculateSegments(allItems, isLoading || false, error, enabled, t); | ||
|
||
// Handle click navigation if scroll target is provided | ||
/* |
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.
can we delete this commented section?
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.
Deleted ✅
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.
Good job. Much better navigation with this change :)
This PR adds proper tab navigation, implemeting openmcp-project/backlog#281.
As discussed, I had to remove
max-length
because the subsection headers will always appear on the left. Let's see how this works out for us. Could still limit the width and align everything to the left if we want.The diff looks big, but the real changes are pretty straightforward:
<ObjectPageSubSections>
.2025-09-26_11-32-26.mp4