Skip to content

feat(capabilities): weak tests first, hover cards and search in the capability view - #504

Draft
byronwall wants to merge 4 commits into
claude/capabilities-treemapfrom
claude/capabilities-10x
Draft

byronwall wants to merge 4 commits into
claude/capabilities-treemapfrom
claude/capabilities-10x

Conversation

@byronwall

@byronwall byronwall commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

The Capabilities view now answers "which capabilities have weak tests?" at a glance and discloses detail in steps. Only weak tests get color. Hovering shows a capability's promise. A click pins its files and tests. / searches everything.

What you'll see

  • Weak tests stand out: tested capabilities share one calm fill. Under 5 linked test lines per 100 LOC is amber, and no test is red, with a "thin" flag on the tile. Area headers count their weak capabilities.
  • The rail at rest gives a one-line summary, the Weakest tests list (worst first, with a small bar), then every area with its promise.
  • Hover a tile or an area label for a card with its area, promise, code size and test signal.
  • Click to pin: the promise in reading size, Code and Tests rows, then Start reading / Implementation / Tests. File names are in accent and folders muted; an only: name opens at its line.
  • Search and filter: / searches titles, promises, IDs and file paths; matches stay lit and Enter selects the first. No test and Thin tests toggles do the same by level. Esc steps back.
  • Unclaimed code by folder: the hatched box splits into folders, and its rail lists the top files in each.
  • Narrow windows: under 980 px the rail opens over the map only when something is selected.

Proof

Before After
before, at rest after, at rest

At rest, before and after, on Visual Notes: 4 fill colors and left accent borders before; after, only the 19 thin-test capabilities have color, and the rail ranks them.

after, a capability selected
ai-prompts pinned: its promise, signal rows and files.

hover card
The hover card on the same tile, before any click.

thin tests filter
Thin tests on: everything else fades back.

at 800 px
At 800 px the detail opens over the map.

an unclaimed folder
A folder tile in Unclaimed opens that folder's files.

client/e2e/capabilities.spec.ts now also checks the Weakest tests list, the No test filter, and / search with Enter. Full e2e: 43 passed before the review fixes; the capabilities specs (2 tests) pass after them, with 522 client unit tests. scripts/check.sh client passed.

Review

Codex reviewed layers 2 and 3 together (round 1: 4 P1s here, 5 findings in layer 2). Every finding is fixed in this layer's last commit, including the layer-2 ones, because the layers merge together:

  • Search matches areas with no code of their own, and the count, highlights and Enter use one result set.
  • A folder tile in Unclaimed opens that folder's files.
  • A parent's own tile says "own code", not "shared".
  • Choosing Treemap on a mapped repo is kept on reload.
  • Back and Forward restore the selected capability and zoom.
  • Under 980 px, an Overview button opens the rail and shows the check-error count.
  • Test lines are a union per file, so a nested case adds nothing, and the last line counts without a final newline. End-to-end means a file under e2e/, playwright/ or cypress/, not a .spec name.
  • A failed or stalled request (60 s) ends as "could not be read" instead of loading forever.

Round 2 passed (no P0 or P1 in scope). Its P2s are fixed too: only a confirmed missing map redirects an explicit Capabilities URL (a failed request shows the reason), Enter on a search result outside the zoomed area zooms out, and the map request is keyed on the repo root, not the filtered tree. Its one P1 on the base was that the Treemap choice lived in browser storage, not the URL; an explicit choice is now view=treemap in the URL (pinned in the location model), so a shared link keeps it. New e2e checks cover the narrow Overview, a failed request on explicit and default URLs, area search, folder selection, Back, and the kept Treemap choice.

Survey moves: no trace added or removed. The rewritten client/src/viz/capabilities/CapabilitiesView.tsx and model.ts drop 2 unproven-handoff and 9 disconnected stops from their sampled trace, and the new _test_evidence in server/app/services/capabilities/check.py turns one server trace from assumed to partial (external-code +6). No analysis code changed.

Limits

  • Dark mode is not checked: the screenshot tool's --dark does not switch Srcly's theme. Every color comes from the --plc-* tokens.
  • A long single word in a narrow tile can still wrap mid-word. The rest of the rough edges for the 100x pass are in its hand-off.

Stack: capabilities, layer 3 of 3

This slice: the 10x pass on the view: color by attention, hover cards, the ranked rail, search, filters, Unclaimed by folder, and the narrow overlay.
Why it is its own layer: layer 2 proves the view works on the check's data; this layer is a design pass you can judge on screenshots alone.
Full story: #502

🤖 Generated with Claude Code

byronwall and others added 2 commits November 29, 2026 00:03
…level unclaimed code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ection, kept Treemap choice, Back sync, test-line union

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
byronwall and others added 2 commits November 29, 2026 00:20
…ed request stays on Capabilities

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@byronwall byronwall changed the title claude/capabilities 10x feat(capabilities): weak tests first, hover cards and search in the capability view Nov 29, 2026

This branch has not been deployed

No deployments
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