ENG-2812: Add agent briefing banner to dashboard#7675
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>
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>
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>
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>
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>
- 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>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR adds an Two issues need attention before merging:
Confidence Score: 2/5
Important Files Changed
Last reviewed commit: 9db6052 |
- Add null guard for unknown action_type in ACTION_CTA lookup - Move sessionStorage read into useEffect for Next.js SSR safety Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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-2812
Description Of Changes
Add an agent briefing banner to the new dashboard that displays a severity-based alert with actionable quick links. The banner integrates with the agent briefing API endpoint, shows contextual alert styling (error/warning/info) based on the highest-severity quick action, and can be dismissed by the user.
Also refactors the
QuickActiontype to uselabel,action_type,action_data, andseverityfields for better alignment with the API contract.Code Changes
clients/admin-ui/src/features/dashboard/types.ts- ExportQuickActioninterface and update field names (label,action_type,action_data,severity)clients/admin-ui/src/home/AgentBriefingBanner.module.scss- New styles for the alert banner and severity-colored quick action linksclients/admin-ui/src/home/AgentBriefingBanner.tsx- New component: severity-based Ant Design Alert with quick action navigation linksclients/admin-ui/src/home/HomeDashboard.tsx- IntegrateAgentBriefingBannerwithuseGetAgentBriefingQueryand dismissible stateclients/admin-ui/src/mocks/dashboard/data.ts- Add mock agent briefing response dataclients/admin-ui/src/mocks/dashboard/handlers.ts- Add MSW handler for agent briefing endpointSteps to Confirm
alphaDashboardfeature flagPre-Merge Checklist
CHANGELOG.mdupdated