Skip to content

v1.8.0 — Automatic group membership, group-scoped Cost, always-warm performance

Choose a tag to compare

@whchoi98 whchoi98 released this 12 Jul 11:10
· 82 commits to main since this release

Group membership goes fully automatic (Compliance members endpoint), the Cost page becomes truly group-scoped, and five performance rounds make every menu open instantly. (Deployed to production 2026-07-12.)

Added

  • Automatic group membership (ADR-0014). /api/groups serves real point-in-time RBAC membership via GET /v1/compliance/groups/{id}/members — new groups and member moves land in the GroupTabs within an hour, zero admin action. Source chain: admin CSV > members > spend-derive > last-good > empty, with extensive guard rails (all-or-nothing fetches, failure cooldown, cap-exhaustion throws, deleted-group resurrection blocked).
  • Group-scoped Cost page. Group tabs now scope the org-level KPIs, daily trend and product/model charts via the rbac_group_ids[] filter (filtered totals verified equal to the grouped-by slice). Scope is trusted only when the server echoes it back; scoped failures get last-good + a dedicated recovery panel. Per-dev and $/LOC · $/Commit KPIs recompute for the scoped cohort.
  • Per-user spend by model in the user detail panel + live per-model spend in User Search (post-CSV models like Fable 5 included).

Performance

  • 10-min success TTL cache (SWR, stale-marked degraded serves, in-flight dedup, 45s upstream timeouts) across all cost routes and the fetchUserReport family — warm hits ~1 ms vs 12–30 s upstream.
  • Keep-warm loops on every Fargate task: cost presets + every group's default-window scoped key (8-min cycle, budget-paced) and the engagement endpoints all menus boot on (5-min cycle; one 30d users/range warm covers every preset).
  • gzip compression (bundle 1.12 MB → ~324 KB, API JSON ~95% smaller) + CloudFront /assets/* edge caching with brotli (auth preserved); origin readTimeout 30 → 60 s.
  • Client stale-while-revalidate: same-scope refetches keep the last data under a "Refreshing…" pulse.

Fixed

  • Alias domains (c4e.whchoi.net, ccdashboard.whchoi.net) lost their TLS cert when a deploy reverted console-added CloudFront config — aliases + ACM cert are now declared in CDK.
  • Chat get_cost_summary tool input allowlisted (model-controlled args can't reach the group filter).

Full changelog: https://github.com/whchoi98/claude-code-dashboard/blob/main/CHANGELOG.md