Restyle the rankings page as a ranking survey sheet (#67) #68

Merged
chris-kreidl merged 4 commits from 67-ui-design-pass into main 2026-11-13 18:41:41 +00:00
chris-kreidl commented 2026-11-13 17:40:22 +00:00 (Migrated from github.com)

🤖 Claude: Closes #67

A design pass over the rankings page with the impeccable design skill. Five directions were sketched with real rankings. Chris picked Investment Survey Sheet: a white sheet with black ink, hairline rules and one survey blue, with each rank shown as a heavy boxed numeral.

What changed

  • Top bar: the title and price date on the left. The four pipeline steps sit in one boxed strip. Each box shows:

    • the step name and its Run button;
    • the status and time, or live progress text while running;
    • a native progress bar along the bottom edge, which sweeps while there's no total yet.

    The running box fills blue, and a failed or interrupted step gets a red rule. Each box's tooltip holds the full start and finish times and the last message. Run the whole pipeline sits at the far right.

  • Notice band under the top bar, only when there's something to say: resume/start-over choices, refused starts, and "Lost the connection… retrying".

  • Filters in a left column. The table fills the rest of the page with a black sticky header and scrolls inside itself. Long company and sector names are cut off, with the full name in a tooltip.

  • Light and dark modes. Below 960px everything stacks, and the steps form a 2×2 grid.

  • PRODUCT.md, DESIGN.md, .impeccable/design.json and .impeccable/surfaces/web-index-html.md record the product and design decisions for later design work. Impeccable's scratch files are gitignored.

No behaviour changes: filtering, re-ranking, sorting, starting jobs, the resume prompt and live updates work as before. The jobs-panel tests now read the step boxes instead of table cells. shortTime (web/jobs.ts) is new, with a test.

Review

  • Impeccable's independent finish reviewer found two problems, and both are fixed:

    • the busy bar sat frozen while a step had no total yet;
    • the lost-connection message sat inside the top bar, so the page jumped when the connection dropped.

    Its final verdict was ship.

  • One optional follow-up it noted: while a step runs, its box grows by one line of progress text, so the page below shifts slightly when a run starts and ends. Pinning the boxes to a fixed height would stop that. I left it out to keep the scope tight.

Definition of Done

  • Acceptance criteria met and demonstrated:
    • Five directions proposed and one picked.
    • Applied to the table, filters and jobs panel in light and dark.
    • No behaviour changes.
    • Checked at 390px wide (no sideways page scroll) and with the keyboard: focus rings on every control, and sort headers are buttons.
  • bun test passes (329 tests); new logic has tests (shortTime).
  • bun check is clean, and bun fmt --check passes on the changed files.
  • Runs end to end on real data:
    • The page was served by bun web.ts against the local company_facts.db, with 1,391 companies shown at 1440px in light and dark and at 390px.
    • The running, queued, failed and notice states were checked with injected job states and with a stubbed event stream.
    • I didn't start a real pipeline run from the restyled page, because no job code changed.
  • Stand-ups posted on #51: I missed the one when this story started (again). The ready-for-review stand-up is posted with this PR.
  • Open product questions: none new. Sector company counts in the filter column (shown in the chosen sketch) were left out as new scope. File them as a story if you want them.

🤖 Generated with Claude Code

🤖 **Claude:** Closes #67 A design pass over the rankings page with the impeccable design skill. Five directions were sketched with real rankings. Chris picked **Investment Survey Sheet**: a white sheet with black ink, hairline rules and one survey blue, with each rank shown as a heavy boxed numeral. ### What changed - **Top bar:** the title and price date on the left. The four pipeline steps sit in one boxed strip. Each box shows: - the step name and its Run button; - the status and time, or live progress text while running; - a native progress bar along the bottom edge, which sweeps while there's no total yet. The running box fills blue, and a failed or interrupted step gets a red rule. Each box's tooltip holds the full start and finish times and the last message. **Run the whole pipeline** sits at the far right. - **Notice band** under the top bar, only when there's something to say: resume/start-over choices, refused starts, and "Lost the connection… retrying". - **Filters** in a left column. **The table** fills the rest of the page with a black sticky header and scrolls inside itself. Long company and sector names are cut off, with the full name in a tooltip. - Light and dark modes. Below 960px everything stacks, and the steps form a 2×2 grid. - `PRODUCT.md`, `DESIGN.md`, `.impeccable/design.json` and `.impeccable/surfaces/web-index-html.md` record the product and design decisions for later design work. Impeccable's scratch files are gitignored. **No behaviour changes:** filtering, re-ranking, sorting, starting jobs, the resume prompt and live updates work as before. The jobs-panel tests now read the step boxes instead of table cells. `shortTime` (`web/jobs.ts`) is new, with a test. ### Review - Impeccable's independent finish reviewer found two problems, and both are fixed: - the busy bar sat frozen while a step had no total yet; - the lost-connection message sat inside the top bar, so the page jumped when the connection dropped. Its final verdict was **ship**. - One optional follow-up it noted: while a step runs, its box grows by one line of progress text, so the page below shifts slightly when a run starts and ends. Pinning the boxes to a fixed height would stop that. I left it out to keep the scope tight. ### Definition of Done - [x] Acceptance criteria met and demonstrated: - Five directions proposed and one picked. - Applied to the table, filters and jobs panel in light and dark. - No behaviour changes. - Checked at 390px wide (no sideways page scroll) and with the keyboard: focus rings on every control, and sort headers are buttons. - [x] `bun test` passes (329 tests); new logic has tests (`shortTime`). - [x] `bun check` is clean, and `bun fmt --check` passes on the changed files. - [x] Runs end to end on real data: - The page was served by `bun web.ts` against the local `company_facts.db`, with 1,391 companies shown at 1440px in light and dark and at 390px. - The running, queued, failed and notice states were checked with injected job states and with a stubbed event stream. - I didn't start a real pipeline run from the restyled page, because no job code changed. - [ ] Stand-ups posted on #51: I missed the one when this story started (again). The ready-for-review stand-up is posted with this PR. - [x] Open product questions: none new. Sector company counts in the filter column (shown in the chosen sketch) were left out as new scope. File them as a story if you want them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude[bot] commented 2026-11-13 17:41:08 +00:00 (Migrated from github.com)

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

## Code review No issues found. Checked for bugs and CLAUDE.md compliance.
chris-kreidl commented 2026-11-13 17:53:50 +00:00 (Migrated from github.com)

🤖 Claude: Review changes pushed (3337641):

  • IBM Plex Sans across the page. It loads from Google Fonts for now (weights 400, 600 and 700). Plex's heaviest weight is 700, so the 800-weight headings, labels and rank numerals are now 700. If you keep it, I'd self-host the font files so the page doesn't fetch from Google every time it opens. Tell me whether you'd rather I add a package such as @fontsource/ibm-plex-sans or commit the font files to the repo.
  • Rank numerals: the 2px box is gone. Ranks stay bold in a fixed-width cell.
  • DESIGN.md and its sidecar are updated to match.
  • The sector filter change is filed as #69.
🤖 **Claude:** Review changes pushed (3337641): - **IBM Plex Sans** across the page. It loads from Google Fonts for now (weights 400, 600 and 700). Plex's heaviest weight is 700, so the 800-weight headings, labels and rank numerals are now 700. If you keep it, I'd self-host the font files so the page doesn't fetch from Google every time it opens. Tell me whether you'd rather I add a package such as `@fontsource/ibm-plex-sans` or commit the font files to the repo. - **Rank numerals:** the 2px box is gone. Ranks stay bold in a fixed-width cell. - DESIGN.md and its sidecar are updated to match. - The sector filter change is filed as #69.
chris-kreidl commented 2026-11-13 17:57:08 +00:00 (Migrated from github.com)

🤖 Claude: IBM Plex Sans now comes from @fontsource/ibm-plex-sans (5.3.0, approved on the PR). web/style.css imports its Latin 400/600/700 faces, and Bun inlines them into the CSS bundle (192 KB), so the page no longer loads anything from Google. Commit ccbf104.

🤖 **Claude:** IBM Plex Sans now comes from `@fontsource/ibm-plex-sans` (5.3.0, approved on the PR). `web/style.css` imports its Latin 400/600/700 faces, and Bun inlines them into the CSS bundle (192 KB), so the page no longer loads anything from Google. Commit ccbf104.
socket-security[bot] commented 2026-11-13 17:57:18 +00:00 (Migrated from github.com)

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​fontsource/​ibm-plex-sans@​5.3.0100100858690

View full report

**Review the following changes in direct dependencies.** Learn more about [Socket for GitHub](https://socket.dev?utm_medium=gh). <table> <thead> <tr> <th>Diff</th> <th width="200px">Package</th> <th align="center" width="100px">Supply Chain<br/>Security</th> <th align="center" width="100px">Vulnerability</th> <th align="center" width="100px">Quality</th> <th align="center" width="100px">Maintenance</th> <th align="center" width="100px">License</th> </tr> </thead> <tbody> <tr><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/diff-added.svg" title="Added" alt="Added" width="20" height="20"></a></td><td><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682">@​fontsource/​ibm-plex-sans@​5.3.0</a></td><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/score-100.svg" title="Supply Chain Security" width="40" height="40" alt="100"></a></td><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/score-100.svg" title="Vulnerability" width="40" height="40" alt="100"></a></td><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/score-85.svg" title="Quality" width="40" height="40" alt="85"></a></td><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/score-86.svg" title="Maintenance" width="40" height="40" alt="86"></a></td><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies&dependency_item_key=101927078682"><img src="https://github-app-statics.socket.dev/score-90.svg" title="License" width="40" height="40" alt="90"></a></td></tr> </tbody> </table> [View full report](https://socket.dev/dashboard/org/chris-kreidl/diff-scan/026337e8-f182-49bc-97b9-0b1d28d87103?tab=dependencies) <!-- overview-comment -->
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener!68
No description provided.