Skip to content

refactor: delete the dashboard, which nothing could reach - #40

Draft
fiddur wants to merge 1 commit into
developfrom
drop-dead-dashboard
Draft

refactor: delete the dashboard, which nothing could reach#40
fiddur wants to merge 1 commit into
developfrom
drop-dead-dashboard

Conversation

@fiddur

@fiddur fiddur commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

You could not find commit browsing because it is not reachable. routes/_index.tsx is four lines that unconditionally redirect("/diff") — no condition, no other caller — so Dashboard was rendered by nothing.

Everything behind it was dead the same way, and nothing else referenced any of it:

removed
dashboard.tsx 86 lines, rendered by nothing
commit-list.tsx 100 lines
overview-file-list.tsx 57 lines
use-commits.ts, use-overview.ts only the dashboard called them
queries/commits.ts, queries/overview.ts only those hooks
fetchCommits, fetchOverview, and the Commit / Overview / OverviewFile / CommitsPage types only those queries
/api/overview, /api/commits routes only those wrappers

354 lines.

Deliberately kept: packages/git still exports getRecentCommits, getStagedFiles and getUnstagedFiles. That is a library with its own surface rather than unreachable UI, and this fork tracks what it can offer upstream — the server simply stops importing them.

Also confirmed while looking: /tree has no Ask/Act wiring at all — no onAskThread, no askIsHeard, nothing. Your reading of it was right. Not touched here.

parser 43, git 44, github 21, ui 426, cli 224. Typecheck 0. v0.9.18.

🤖 Generated with Claude Code

https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs

`/` is four lines that unconditionally redirect to `/diff`, with no
condition and no other caller, so the dashboard component was rendered by
nothing. Everything behind it was dead in the same way: the commit list,
the overview file list, `useCommits`, `useOverview`, their query modules,
their fetch wrappers, their types, and the `/api/overview` and
`/api/commits` routes serving them.

354 lines. Nothing else referenced any of it.

`packages/git` keeps `getRecentCommits`, `getStagedFiles` and
`getUnstagedFiles`. That is a library with its own exports rather than
unreachable UI, and this fork tracks what it can offer upstream — the
server just no longer imports them.

v0.9.18.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs
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