Skip to content

feat(files): browsable Files page, table restyle, dark-mode polish#591

Merged
RaghavChamadiya merged 1 commit into
mainfrom
feat/darker-dark-mode
Jun 25, 2026
Merged

feat(files): browsable Files page, table restyle, dark-mode polish#591
RaghavChamadiya merged 1 commit into
mainfrom
feat/darker-dark-mode

Conversation

@RaghavChamadiya

Copy link
Copy Markdown
Member

Files page

A canonical, browsable Files surface so you can find and jump to any file.

  • Navigable treemap hero sized by importance (pagerank) or LOC, colored by
    health or language, with folder drill-down and breadcrumb. Renders only the
    current folder's direct children, so it stays fast on large repos.
  • Virtualized file table with fuzzy path filter, sortable columns
    (importance, health, churn, LOC, coverage, name), language and test filters,
    and a folder-scoping toggle that follows the treemap drill.
  • Command palette jump-to-file (lazy-fetched, cached, ranked) and a Files
    entry in the sidebar.
  • Backend GET /api/repos/{id}/files returns slim per-file rows joined from
    batched reads (graph nodes, degree metrics, health metrics, git metadata),
    with importance and churn percentiles computed once. No N+1.

Table restyle

A consistent, cleaner look across every table.

  • Floating uppercase headers under a single rule, faint --color-table-divider
    row hairlines, square corners, comfier density, and underline-on-hover for
    primary link cells.
  • Applied to the shared ResponsiveTable primitive, markdown and prose tables,
    and the per-area data tables (blast-radius, git, security, symbols, coverage,
    dead-code, health).

Dark mode

  • Darker dark-mode adjustments to the brand palette, sigma graph colors, and
    global tokens.

Checks

  • ui and web type-checks pass
  • UI design gates pass (no raw hex, 74 contrast pairs, 0 failures)
  • Backend router imports; ruff clean

Files page:
- New /repos/[id]/files index with a navigable treemap hero (size by
  importance or LOC, color by health or language, folder drill-down) plus a
  virtualized, sortable, filterable file table that links to the per-file page
- Jump-to-file in the command palette (lazy, cached, ranked) and a Files
  sidebar entry
- Backend GET /api/repos/{id}/files returns slim per-file rows (importance,
  health, churn, coverage, language) joined from batched reads with
  percentiles computed once

Tables:
- Shared transparent restyle: floating uppercase headers under a single rule,
  faint --color-table-divider row hairlines, square corners, comfier density,
  underline-on-hover for primary cells
- Applied to the ResponsiveTable primitive, markdown and prose tables, and the
  per-area data tables (blast-radius, git, security, symbols, coverage,
  dead-code, health)

Dark mode:
- Darker dark-mode adjustments to the brand palette, sigma graph colors, and
  global tokens
@repowise-bot

repowise-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

✅ Health: 7.6 (unchanged)
5 files moved · 5 hotspots · 5 hidden couplings · 2 with fix history · 1 dead-code finding

🚨 Change risk: high (riskier than 82% of this repo's commits · raw 9.6/10)
This change's risk is driven by:

  • more lines added than baseline
  • more scattered than baseline

🩹 Review priority (files here with the most recent bug-fix history — defects cluster, so review these first)

🧪 No test files were touched in this PR — consider adding coverage for the files above.

File Score Δ Why
.../search/command-palette.tsx 7.5 → 6.2 ▼ -1.3 🔻 introduced complex method, large method
.../files/index.ts 9.7 → 9.3 ▼ -0.3 score drifted on re-parse — no PR-attributable biomarkers
.../security/findings-table.tsx 8.1 → 7.9 ▼ -0.2 score drifted on re-parse — no PR-attributable biomarkers
.../files/file-health-tab.tsx 9.7 → 9.5 ▼ -0.2 score drifted on re-parse — no PR-attributable biomarkers
.../git/hotspot-table.tsx 7.8 → 7.7 ▼ -0.2 score drifted on re-parse — no PR-attributable biomarkers

💡 .../search/command-palette.tsx: Reduce cyclomatic complexity. Decompose the function along its conditional axes; if it dispatches on a type tag, replace the if/elif ladder with polymorphism or a lookup table.

🔥 Hotspots touched (5)
  • .../symbols/symbol-table.tsx — 5 commits/90d, 3 dependents · primary owner: Raghav Chamadiya (93%)
  • .../wiki/wiki-mdx-components.tsx — 2 commits/90d, 1 dependents · primary owner: Raghav Chamadiya (93%)
  • .../coverage/freshness-table.tsx — 3 commits/90d, 0 dependents · primary owner: Raghav Chamadiya (93%)
2 more
  • .../files/file-health-tab.tsx — 4 commits/90d, 2 dependents · primary owner: Swati Ahuja (82%)
  • .../dead-code/findings-table.tsx — 1 commits/90d, 2 dependents · primary owner: Raghav Chamadiya (70%)
🔗 Hidden coupling (3 files)
  • .../layout/nav-items.ts co-changes with these files (not in this PR):
    • packages/ui/package.json (4× — 🟢 routine)
    • .../server/app.py (3× — 🟢 routine)
  • .../git/hotspot-table.tsx co-changes with .../risk/hotspots-tab.tsx (3× — 🟢 routine) — not in this PR.
  • .../files/file-health-tab.tsx co-changes with these files (not in this PR):
    • docs/CODE_HEALTH.md (2× — 🟢 routine)
    • .../src/health.ts (2× — 🟢 routine)
💀 Dead code (1 finding)
  • 💀 .../routers/files.py (file-level) (confidence 0.40)

📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-06-24 17:52 UTC
Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot

@RaghavChamadiya RaghavChamadiya merged commit a05c83f into main Jun 25, 2026
6 checks passed
@RaghavChamadiya RaghavChamadiya deleted the feat/darker-dark-mode branch June 25, 2026 05:45
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.

2 participants