fix(dashboard): roll home overview stats into Guard stats card#687
fix(dashboard): roll home overview stats into Guard stats card#687kantorcodes wants to merge 2 commits into
Conversation
Move Pending, Apps, and History out of the floating proof strip and into the Your Guard stats card so the homepage reads as one calm summary block. Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Greptile SummaryThis PR consolidates the home page overview stats (Pending, Apps, History) and the Guard analytics card into a single
Confidence Score: 5/5Safe to merge — the change is a straightforward UI consolidation with no data-layer or auth modifications. The refactoring is limited to the home dashboard view layer: overview stats are moved from a now-deleted ProofStrip into the existing card, the previously flagged TypeScript narrowing issue is resolved with inline guards, and the stats card now renders unconditionally so no data is hidden. No logic paths, API calls, or permissions are affected. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
HW[HomeWorkspace] -->|overview, analytics, insightsLoading, runtime| EIHP[EvidenceInsightsHomePreview]
EIHP --> Header["Header: Your Guard stats"]
EIHP --> OVR[HomeGuardOverviewRow\nPending / Apps / History]
EIHP --> insCheck{insightsLoading?}
insCheck -->|yes| Skeleton[Skeleton placeholder]
insCheck -->|no| analCheck{analytics ≠ null\n&& total > 0?}
analCheck -->|yes| Bento[EvidenceInsightsHeadlineBento\nvariant=compact]
analCheck -->|no| Hidden[nothing rendered]
EIHP --> footCheck{analytics ≠ null\n&& total > 0\n&& onOpenInsights?}
footCheck -->|yes| SeeAll[See all insights →]
footCheck -->|no| NoFooter[nothing rendered]
Reviews (2): Last reviewed commit: "fix(dashboard): narrow analytics type fo..." | Re-trigger Greptile |
Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>
|
Closing: equivalent home stats rollup already landed on main (overviewStats in EvidenceInsightsHomePreview). Branch rebases with extensive static-asset conflicts and no net UX delta. |
Summary
Testing
cd dashboard && node node_modules/tsx/dist/cli.mjs src/evidence/evidence-insights-home-preview.test.tscd dashboard && npm run build