Conversation
- Move briefing state management into AgentBriefingBanner component - Re-add loading state to DSRStatusCard - Move catmullRomClosedPath to chart-utils with division-by-zero guard - Remove commented-out debug code from CommandBar and PostureCard - Update CustomCard docstring to match current implementation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Unrelated files reverted: ColumnDropdown, _app.tsx, CustomCard.module.scss, next-env.d.ts. Theme changes (index.ts, dark-theme.ts, default-theme.ts) moved to fix/ant-theme-tokens branch (PR #7759). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts: # clients/admin-ui/src/home/DSRStatusCard.tsx # clients/admin-ui/src/home/HomeDashboard.tsx # clients/admin-ui/src/home/PostureCard.tsx # clients/admin-ui/src/home/PriorityActionsCard.tsx # clients/admin-ui/src/home/SystemCoverageCard.tsx
There was a problem hiding this comment.
Overall this is a clean, well-scoped polish pass. The shift to antTheme.useToken() tokens, replacing <Spin> with the Card loading prop, making AgentBriefingBanner self-contained, and the catmullRomClosedPath weight overlay are all good improvements. The RoundedBarCell SVG path logic is correct and handles the first/last segment edge cases well.
One behavioral regression worth discussing (see inline), and a handful of minor suggestions — nothing blocking.
Summary of findings:
- Suggestion (
AgentBriefingBanner, line 20): Dismissal is now in-componentuseState, dropping thesessionStoragepersistence from the oldHomeDashboard. The banner will reappear on any SPA navigation that remounts the component. - Nice to have (
AgentBriefingBanner, line 11):SEVERITY_STYLEtyped asRecord<string, string>instead of the narrowerRecord<ActionSeverity, string>. - Suggestion (
CommandBar, lines 49–55):valueColorMapis a plain object literal recreated on every render;useMemowould be consistent with the previous module-level constant approach. - Nice to have (
PostureCard, line 115):fontSize: 48is a magic number — a design token would be more maintainable. - Nice to have (
DSRStatusCard, line 40): The silent exclusion of theupdatefield fromsla_healthwould benefit from a short inline comment. - Nice to have (
RadarChart, lines 261–276):stroke*props on the weight<Radar>are dead code when ashapeprop is provided.
Greptile SummaryThis PR delivers a broad set of dashboard UI polish changes: theme token adoption, font-size reductions via design tokens, loading skeleton improvements (replacing Key concerns:
Confidence Score: 3/5
Important Files Changed
|
- Narrow SEVERITY_STYLE type to Record<ActionSeverity, string> - Derive valueColor from BAND_STATUS instead of duplicated map - Remove dead stroke props from weight Radar (shape handles rendering) - Fix CustomCard docstring (fontSizeSM → fontSize) - Simplify DSRStatusCard SLA rendering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ticket ENG-3036
Description Of Changes
Miscellaneous UI polish based on design feedback, as well as small code refactors.
Key changes:
@carbon/icons-reactandantdimports throughfidesuire-exports in admin-ui componentstoken.fontSize,token.fontSizeSM)catmullRomClosedPathutility to chart-utils with division-by-zero guard<Spin>wrappers with Cardloadingprop across dashboard cardsCode Changes
clients/fidesui/src/hoc/CustomCard.tsx- Reduce title font totoken.fontSize, wrap tab labels attoken.fontSizeSMclients/fidesui/src/hoc/CustomCard.module.scss- Add inline header tab padding adjustmentsclients/fidesui/src/components/charts/RadarChart.tsx- Empty state with grid-only rendering, extract WeightShape componentclients/fidesui/src/components/charts/chart-utils.ts- AddcatmullRomClosedPathwith epsilon guardclients/fidesui/src/components/charts/RadarChart.stories.tsx- Remove click wrapper, add tooltip storyclients/fidesui/src/components/charts/RadarTooltipContent.tsx- Inline styles using theme tokensclients/fidesui/src/hoc/CustomStatistic.tsx- Size variants and font updatesclients/admin-ui/src/home/CommandBar.tsx- Use design tokens viaantTheme.useToken(), Carbon icons viaIcons.*clients/admin-ui/src/home/DSRStatusCard.tsx- Remove Spin, add Card loading, memoize SLA dataclients/admin-ui/src/home/PostureCard.tsx- Remove Spin, use Card loadingclients/admin-ui/src/home/SystemCoverageCard.tsx- Move link to card extra, remove bottom buttonclients/admin-ui/src/home/TrendCard.tsx- Use design tokens, Carbon icons via fidesuiclients/admin-ui/src/home/HomeDashboard.tsx- Simplify by removing briefing state managementclients/admin-ui/src/home/AgentBriefingBanner.tsx- Self-contained with own data fetching and dismissalSteps to Confirm
npm run devinclients/admin-ui/)alphaDashboardflag enabled)Pre-Merge Checklist
CHANGELOG.mdupdated