Skip to content

Lead the report with what to fix first - #88

Merged
Viraj5503 merged 20 commits into
mainfrom
refine-report-journey
Nov 29, 2026
Merged

Viraj5503 merged 20 commits into
mainfrom
refine-report-journey

Conversation

@Pranav-Mathad

Copy link
Copy Markdown
Owner

Reorders and tidies the web report so a first-time reader meets the verdict, then what to fix first, then the structure, the change over time and the limits. No pipeline, contract or bundle change.

This branch sits on top of port-reference-frontend, which is not on main yet, so the diff also shows its four commits (the new shell, screens and adapter). The last four commits are this change.

What changed

Top bar, tabs, landing

  • The top bar lists real repositories only. The synthetic fixtures stay linked from the landing page.
  • Tabs follow the reader's path: Overview, Findings, Decisions, Map, Size, Change, Trust.
  • The header no longer shows rules not measured on every page. The bundle has no rules hash, so the item now shows only when one is present.
  • The landing page states how the work is split: finding, counting and ranking are computed; the model writes prose in three places, each sentence checked and marked.

Overview

  • Order is now: verdict, a one-line strip of what the report rests on, what to fix first, the simulated fix batch, the main modules beside the map, decisions, what the team got right.
  • The fix-first list starts at about 770 px at 1440 wide (it was below a 25-row decisions list).
  • New strip: top 10 on an identical re-run, files read, AI calls and cost, limits stated. Same stored values as the Trust tab.
  • New list: the 8 largest production modules that have links on the map, with description, lines, links in and links out. Numbers match the map's axes.
  • Decisions are capped at 8 with a link to all; "got right" shows 3.

Findings and the finding page

  • The ranked list comes before the batch strip and the formula.
  • Each finding page has a fixed "Why it matters" sentence per finding type, marked computed. Each sentence was checked against how that type is detected.
  • The computed panel leads with the proposed fix.
  • Related findings show 6 with a "show all" toggle.
  • Template plurals are settled for display: "1 link(s)" reads "1 link", "3 link(s)" reads "3 links". Titles and summaries only; AI text, facts and evidence are untouched.

Change, Trust, Size, Decisions

  • "Sponsor date" reads "comparison date" in everything a reader sees.
  • Slots for values the bundle never carries (adoption evidence, the AI-marker series, the size-band comparison, the written-plan comparison, two linker-agreement columns, silent-miss share) no longer render as empty "not measured" boxes. Change and Trust each state the gap once in words. The rendering stays for a bundle that carries them.
  • References to spec sections are removed from text a reader sees.

What was run and seen

  • make check passes: ruff, 36 Python tests passed and 1 skipped, contracts check, typecheck, 4 web tests, build.
  • Every changed screen was opened on the running dev server for Artemis, Graylog, Shopware and the fixture, and screenshots at 1440 wide were read. The strip's numbers were compared with the Trust tab (Artemis: 10 of 10, 11,699 files, 163 calls, $2.283, 41 limits).
  • No page has horizontal overflow at 1440 or 420 wide on the Overview (measured scrollWidth).

Not checked or not done

  • The related-findings toggle was not clicked in a browser, only read in code.
  • The written-plan comparison under "new links" has rendering for a value no current bundle carries, so that path was not seen running.
  • Narrow widths were checked on the landing page, the fixture and the Overview only.
  • Some limit sentences on the Trust tab still say "sponsor date". They are stored text in the bundles, so changing them needs a pipeline wording change and rebuilt bundles.
  • No test was added or changed.

@Viraj5503
Viraj5503 merged commit adc6a47 into main Nov 29, 2026
2 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.

2 participants