Skip to content

Fleet UI: Add self-service categories to command palette - #47115

Merged
RachelElysia merged 1 commit into
mainfrom
command-palette-custom-categories
Jun 8, 2026
Merged

Fleet UI: Add self-service categories to command palette#47115
RachelElysia merged 1 commit into
mainfrom
command-palette-custom-categories

Conversation

@RachelElysia

@RachelElysia RachelElysia commented Jun 8, 2026

Copy link
Copy Markdown
Member

Issue

Closes #43757
Closes #46443

Description

  • Adds two entries: a "Self-service categories" sub-item under Software library for navigation, and an "Add self-service category" action that deep-links the page with ?add_category=1 to auto-open the modal (mirroring the Variables/Scripts pattern).

Screenrecording

Uploading Screen Recording 2026-06-08 at 1.41.41 PM.mov…

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

Adds two entries: a "Self-service categories" sub-item under Software
library for navigation, and an "Add self-service category" action that
deep-links the page with ?add_category=1 to auto-open the modal
(mirroring the Variables/Scripts pattern).
@RachelElysia
RachelElysia marked this pull request as ready for review June 8, 2026 17:41
@RachelElysia
RachelElysia requested a review from a team as a code owner June 8, 2026 17:41
Copilot AI review requested due to automatic review settings June 8, 2026 17:41
@RachelElysia

Copy link
Copy Markdown
Member Author

@claude review

@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.17%. Comparing base (b23f808) to head (f3a70c7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #47115    +/-   ##
========================================
  Coverage   67.17%   67.17%            
========================================
  Files        2908     2908            
  Lines      226136   226142     +6     
  Branches    11829    11684   -145     
========================================
+ Hits       151898   151904     +6     
- Misses      60508    60509     +1     
+ Partials    13730    13729     -1     
Flag Coverage Δ
frontend 57.65% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 extends Fleet’s global command palette (⌘/Ctrl+K) to better support the self-service software categories workflow by adding (1) a navigation entry to the categories page and (2) a deep-link “Add” action that auto-opens the “Add category” modal via a query param, matching the existing Variables/Scripts deep-link pattern.

Changes:

  • Add a “Self-service categories” sub-item under “Software library” in the command palette.
  • Add an “Add self-service category” command that links to /software/library/categories?add_category=1 (with fleet context preserved).
  • Update the SelfServiceCategories page to open (and then strip) the add_category=1 param and add automated tests for the deep-link behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/pages/SoftwarePage/SoftwareLibrary/SelfServiceCategoriesPage/SelfServiceCategoriesPage.tsx Adds deep-link handling (?add_category=1) to open the Add modal (permission-gated) and then strips the param via router.replace.
frontend/pages/SoftwarePage/SoftwareLibrary/SelfServiceCategoriesPage/SelfServiceCategoriesPage.tests.tsx Adds test coverage for the deep-link modal open/strip behavior (manager vs non-manager and re-open scenarios).
frontend/components/CommandPalette/helpers.tests.ts Updates palette helper tests to assert the new command ID is present/absent under the correct permission conditions.
frontend/components/CommandPalette/groups/software.ts Adds “Self-service categories” as a sub-item under “Software library” for navigation.
frontend/components/CommandPalette/groups/commands.ts Adds “Add self-service category” command that deep-links with ?add_category=1 and preserves fleet context via withTeamId.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RachelElysia
RachelElysia merged commit 3178cac into main Jun 8, 2026
25 checks passed
@RachelElysia
RachelElysia deleted the command-palette-custom-categories branch June 8, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fleet spotlight (⌘ + K)

3 participants