Skip to content

🐛 Add Karmada Ops to sidebar search, rename Compliance to Sec. Compliance#4021

Merged
clubanderson merged 1 commit intomainfrom
fix/sidebar-search-compliance
Mar 31, 2026
Merged

🐛 Add Karmada Ops to sidebar search, rename Compliance to Sec. Compliance#4021
clubanderson merged 1 commit intomainfrom
fix/sidebar-search-compliance

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

Summary

  • Add Karmada Ops to KNOWN_ROUTES in sidebar customizer — was missing from search results
  • Rename "Compliance" to "Sec. Compliance" in sidebar nav and customizer to distinguish from Data Compliance

Test plan

  • Search "Karmada" in sidebar customizer — should now find Karmada Ops
  • Sidebar shows "Sec. Compliance" instead of "Compliance"

…ance

- Add Karmada Ops to KNOWN_ROUTES so it appears in sidebar customizer search
- Rename "Compliance" to "Sec. Compliance" in sidebar nav and customizer

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Copilot AI review requested due to automatic review settings March 31, 2026 18:44
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Mar 31, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 18d9e2f
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69cc15fe47f153000827f121
😎 Deploy Preview https://deploy-preview-4021.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow kubestellar-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@clubanderson clubanderson merged commit 9078004 into main Mar 31, 2026
20 of 22 checks passed
@kubestellar-prow kubestellar-prow bot deleted the fix/sidebar-search-compliance branch March 31, 2026 18:46
@github-actions
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the sidebar configuration and sidebar customizer route list so users can find and add the Karmada Ops dashboard via search, and clarifies the security compliance dashboard label to avoid confusion with Data Compliance.

Changes:

  • Rename the /compliance sidebar label from “Compliance” to “Sec. Compliance” (default primary nav + customizer known routes).
  • Add /karmada-ops to the sidebar customizer’s KNOWN_ROUTES so it appears in search results.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
web/src/hooks/useSidebarConfig.ts Renames the default primary-nav item label for the /compliance route.
web/src/components/layout/SidebarCustomizer.tsx Updates KNOWN_ROUTES to include Karmada Ops and renames Compliance to Sec. Compliance for add/search UX.

Comment on lines 52 to 56
{ id: 'dashboard', name: 'Dashboard', icon: 'LayoutDashboard', href: '/', type: 'link', order: 0 },
{ id: 'clusters', name: 'My Clusters', icon: 'Server', href: '/clusters', type: 'link', order: 1 },
{ id: 'cluster-admin', name: 'Cluster Admin', icon: 'ShieldAlert', href: '/cluster-admin', type: 'link', order: 2 },
{ id: 'compliance', name: 'Compliance', icon: 'ClipboardCheck', href: '/compliance', type: 'link', order: 2.5 },
{ id: 'compliance', name: 'Sec. Compliance', icon: 'ClipboardCheck', href: '/compliance', type: 'link', order: 2.5 },
{ id: 'deploy', name: 'Deploy', icon: 'Rocket', href: '/deploy', type: 'link', order: 3 },
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the default nav item label to "Sec. Compliance" won’t update existing users who already have a sidebar config saved in localStorage: migrateConfig() only adds missing default routes (by href) and removes deprecated ones, but it never reconciles stored items’ name/icon with updated defaults. As a result, previously persisted /compliance items will still display "Compliance" until the user resets.

Consider extending migration to refresh properties for non-custom items whose href (or id) matches a known default (at least /compliance), while preserving user-added (isCustom) items and ordering.

Copilot uses AI. Check for mistakes.
@clubanderson
Copy link
Copy Markdown
Collaborator Author

🔄 Auto-Applying Copilot Code Review

Copilot code review found 0 code suggestion(s) and 1 general comment(s).

Also address these general comments:

  • web/src/hooks/useSidebarConfig.ts (line 56): Changing the default nav item label to "Sec. Compliance" won’t update existing users who already have a sidebar config s

Push all fixes in a single commit. Run cd web && npm run build && npm run lint before committing.


Auto-generated by copilot-review-apply workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants