Skip to content

fix(platform): land dead-code cleanup + AI Exposure disclosure (recover #149) - #152

Merged
clickmatos merged 2 commits into
mainfrom
fix/dashboard-dead-code
Aug 13, 2026
Merged

fix(platform): land dead-code cleanup + AI Exposure disclosure (recover #149)#152
clickmatos merged 2 commits into
mainfrom
fix/dashboard-dead-code

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

Why this exists

PR #149 was opened with the wrong base branch (fix/dashboard-medium-issues instead of main). It shows as "Merged" on GitHub, but it merged into that intermediate branch, which was itself never merged into main — so none of #149's dead-code removal, and none of the later AI Exposure disclosure commit I pushed to the same branch after #149 had already closed, ever reached main.

This PR is the same content, targeted correctly at main this time. Confirmed the diff is clean and exactly what's missing (verified git diff main origin/fix/dashboard-dead-code matches this PR's file list, nothing extra from #147/#148 since those are already on main).

Contents (unchanged from #149 + the follow-up disclosure commit)

  • Dead-code removal: computeOrgPulse sparklines, unused getRepoTimeSeries/TimeSeriesPoint fields, investment-hotspots.tsx origin-enum i18n fix.
  • docs(platform): AI Exposure page subtitle now discloses its relationship to the dashboard's Attribution Gap card.

Verification

  • npx tsc --noEmit: clean.
  • npm run test: 241/241 passing.
  • npm run lint: 0 errors, same 72 pre-existing warnings.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview Aug 13, 2026 6:21pm

Request Review

Rodrigo Alves da Silva Matos and others added 2 commits August 13, 2026 15:19
- computeOrgPulse: drop the commits/aiAdoption sparklines. commits was
  fed by an accessor that always returned [] (dead on arrival, never
  produced real data); aiAdoption was hardcoded to []. Neither was ever
  read by OrgPulse.tsx — only sparklines.stabilization is. Simplified
  buildOrgSparkline by dropping its now-unused "sum" mode, which only
  existed for the removed commits sparkline.

- getRepoTimeSeries + TimeSeriesPoint: stop fetching pr_merged_count,
  pr_single_pass_rate, fix_latency_median_hours, and cascade_rate on the
  repo-detail time series. None of the four is read anywhere in
  page.tsx or charts.tsx — the visible metric cards and charts pull
  stabilization_ratio, revert_rate, churn_events, and commits_total.
  Also dropped charts.tsx's local chartData re-mapping of revert_rate
  and cascade_rate, which were computed into that array but never
  plotted (page.tsx reads revert_rate separately, directly off
  timeSeries, for the summary card).

- investment-hotspots.tsx: translate the origin enum (HUMAN/AI_ASSISTED)
  before interpolating it into the fix-magnet copy, instead of dropping
  the raw constant into a translated sentence. Reuses the same
  repoCharts.origin.labels.* keys charts.tsx already uses for this enum
  on the same page.

No behavior change for anything that was actually rendering; typecheck,
tests, and lint all pass unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
/ai-exposure largely re-presents the dashboard's Attribution Gap card
(same underlying ratio, plus a per-repo breakdown and install-hook CTA).
The dashboard card already links here ("See Shadow AI Exposure →"); add
the reverse disclosure so a reader landing on /ai-exposure directly
understands it's the detail view, not a second, disconnected metric.

Considered removing the redundancy structurally, but the page's per-repo
ranking and install-hook flow are real differentiated value — disclosure
is the smaller, sufficient fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@clickmatos
clickmatos force-pushed the fix/dashboard-dead-code branch from 267d058 to 2bbff7c Compare August 13, 2026 18:20
@clickmatos
clickmatos merged commit 7154c09 into main Aug 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant