Add CommandBar and DashboardDrawer to dashboard#7660
Merged
Conversation
… data Add the plumbing for the new Ant Design dashboard behind the alphaDashboard feature flag. Includes RTK Query API slice with all dashboard endpoints, MSW mock handlers with seed data, RadarChart and ChartText fidesui enhancements, and the HomeContainer flag gate. The actual Posture and Priority Actions cards will be added in a follow-up PR on top of this branch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Move all type definitions from dashboard.slice.ts to a dedicated types.ts file per frontend guidelines. Convert union types (PostureBand, DiffDirection, ActionType, ActionSeverity, ActionStatus) to TypeScript enums. Update mock data and handlers to use enum values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add the Posture score card with animated count-up, radar chart with dimension click-through, and agent annotation alert. Add the Priority Actions card with per-action routing, urgency grouping, and dimension filter support. Includes shared hooks and fidesui chart enhancements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…, and RadarChart - Consolidate posture-constants.ts into features/dashboard/constants.ts - Replace router.push() with NextLink for proper a11y and prefetching - Add Spin loading wrapper to PostureCard - Move inline styles to SCSS modules (PostureBreakdownContent, PostureCard tooltip) - Extract RadarTooltipContent to its own exported component with themed bg - Use classNames package instead of manual class joining in RadarChart - Extract magic numbers as named constants in RadarChart - Add named export alongside default in HomeDashboard - Rename "this_week" urgency group to "scheduled" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dc2710e to
58dcedd
Compare
3f26eb2 to
d2fb076
Compare
Remove openPostureDrawer, PostureBreakdownContent import, and clickable score wrapper from PostureCard — these are re-added in the subsequent dashboard-command-bar-pr branch where DashboardDrawer is rendered. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d2fb076 to
e6b5ff9
Compare
Moved to dashboard-command-bar-pr where the drawer is introduced. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add the CommandBar header with live posture score, diff indicator, and summary stat pills. Add the DashboardDrawer for posture breakdown details triggered from PostureCard and CommandBar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace string literals with enum values (DiffDirection, PostureBand, ActionType, ActionSeverity, ActionStatus) and update posture-constants import to use the new features/dashboard/constants path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…Card Move PostureBreakdownContent from posture-actions PR into this PR since it's only used for the drawer, which is introduced here. Re-add the clickable score wrapper and openPostureDrawer callback to PostureCard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This hook was removed from dashboard-posture-actions since the drawer is introduced in this PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e6b5ff9 to
69deb9c
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add fallback routes for POLICY_VIOLATION, PIA_UPDATE, and DSR_ACTION when IDs are missing - Remove unused ACTION_TYPE_ICON_NAME constant Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
gilluminate
reviewed
Mar 16, 2026
gilluminate
reviewed
Mar 16, 2026
gilluminate
reviewed
Mar 16, 2026
| openPostureDrawer(); | ||
| } | ||
| }} | ||
| > |
Contributor
There was a problem hiding this comment.
OK solution for accessibility, but still possibly missing an aria-label (not sure what Statistic component provides)
Contributor
Author
There was a problem hiding this comment.
Good catch, Ant's Statistic doesn't provide an aria label - this could be a good addition to our CustomStatistic HOC to improve accessibility.
gilluminate
reviewed
Mar 16, 2026
- Refactor drawer to use discriminated union instead of ReactNode to prevent stale data - PostureBreakdownContent now subscribes to RTK Query directly - Use Ant Design token names for Flex gaps (large, small) - Add aria-label to clickable posture score - Extract BAND_COLOR_TOKEN to shared constants Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gilluminate
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket ENG-2895
Description Of Changes
Add the CommandBar header, DashboardDrawer side panel, and PostureBreakdownContent to the new alpha dashboard. The CommandBar displays an animated posture score badge with trend indicator, stat pills (DSRs pending, overdue, systems, violations), and a dark mode toggle. Clicking the posture score (in both CommandBar and PostureCard) opens the DashboardDrawer with a posture breakdown. This PR also restores the clickable score interaction on PostureCard that connects it to the drawer.
Code Changes
clients/admin-ui/src/home/CommandBar.tsx- New component: header bar with posture score badge (animated viauseCountUp), diff indicator, stat pills derived from priority actions, and optional dark mode toggleclients/admin-ui/src/home/DashboardDrawer.tsx- New component: Ant Design Drawer wrapper consuming theuseDashboardDrawerglobal storeclients/admin-ui/src/home/PostureBreakdownContent.tsx- New component: drawer content showing posture dimension scores with band indicatorsclients/admin-ui/src/home/PostureBreakdownContent.module.scss- Styles for posture breakdown layoutclients/admin-ui/src/home/PostureCard.tsx- Restore clickable score wrapper andopenPostureDrawercallback connecting to DashboardDrawerclients/admin-ui/src/home/PostureCard.module.scss- Add.clickableScorestyleclients/admin-ui/src/home/HomeContainer.tsx- Import and render<CommandBar />in thealphaDashboardlayout headerclients/admin-ui/src/home/HomeDashboard.tsx- Add<DashboardDrawer />to the dashboard layoutchangelog/7660-dashboard-command-bar.yaml- Changelog entrySteps to Confirm
alphaDashboardfeature flagalphaDarkModeis also enabled, verify the theme toggle appears in the CommandBarPre-Merge Checklist
CHANGELOG.mdupdated