Rankings table in the browser #16

Closed
opened 2026-11-06 01:19:32 +00:00 by chris-kreidl · 0 comments
chris-kreidl commented 2026-11-06 01:19:32 +00:00 (Migrated from github.com)

A Bun.serve page that shows the Magic Formula ranking as a table, with sector and market-cap filters.

Acceptance criteria

Proposed in M3 backlog refinement (#51). Decisions from that refinement are marked.

  • bun run web starts the server on 127.0.0.1 only, with no login. (Decided: this machine only.) The page is served with Bun's HTML imports.
  • The table lists the same companies, with the same ROTC, EY and combined ranks, as magic_formula_ranked.csv from the same database (a test checks this).
  • Columns: rank, overall rank, ticker, company, sector, market cap, ROTC, EY, ROTC rank, EY rank, latest 10-K filed. The table sorts by any column.
  • Filters: sector (choose one or more) and market cap (min and max).
  • Every filter re-ranks: ROTC, EY and combined ranks are recomputed over the companies shown. (Decided.)
  • Overall rank: each row also shows its combined rank in the full eligible list, which no filter changes. (Decided.)
  • Each ticker links to its Stock Analysis page (stockanalysis.com/stocks/<ticker>/), opening in a new tab. (Decided; replaces the company detail page, #17.) Tickers with a class suffix, such as BF-B, are checked to land on the right page.
  • The page says when prices were last updated (the latest successful enrich run).
  • Demonstrated on real data: the full eligible list loads and filters without noticeable delay.

Definition of Done

  • Acceptance criteria met and demonstrated
  • bun test passes; new logic has tests
  • bun check is clean and bun fmt --check passes
  • Runs end to end on real data (not just fixtures)
  • Committed with Closes #<this issue>
A `Bun.serve` page that shows the Magic Formula ranking as a table, with sector and market-cap filters. ### Acceptance criteria *Proposed in M3 backlog refinement (#51). Decisions from that refinement are marked.* - [ ] `bun run web` starts the server on `127.0.0.1` only, with no login. *(Decided: this machine only.)* The page is served with Bun's HTML imports. - [ ] The table lists the same companies, with the same ROTC, EY and combined ranks, as `magic_formula_ranked.csv` from the same database (a test checks this). - [ ] Columns: rank, overall rank, ticker, company, sector, market cap, ROTC, EY, ROTC rank, EY rank, latest 10-K filed. The table sorts by any column. - [ ] **Filters:** sector (choose one or more) and market cap (min and max). - [ ] **Every filter re-ranks:** ROTC, EY and combined ranks are recomputed over the companies shown. *(Decided.)* - [ ] **Overall rank:** each row also shows its combined rank in the full eligible list, which no filter changes. *(Decided.)* - [ ] Each ticker links to its Stock Analysis page (`stockanalysis.com/stocks/<ticker>/`), opening in a new tab. *(Decided; replaces the company detail page, #17.)* Tickers with a class suffix, such as BF-B, are checked to land on the right page. - [ ] The page says when prices were last updated (the latest successful enrich run). - [ ] Demonstrated on real data: the full eligible list loads and filters without noticeable delay. ### Definition of Done - [ ] Acceptance criteria met and demonstrated - [ ] `bun test` passes; new logic has tests - [ ] `bun check` is clean and `bun fmt --check` passes - [ ] Runs end to end on real data (not just fixtures) - [ ] Committed with `Closes #<this issue>`
Sign in to join this conversation.
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#16
No description provided.