Skip to content

Make the one-screen BQNF overview the Studio front page - #27

Merged
dbccpage merged 1 commit into
mainfrom
claude/project-thread-iim5ta
Nov 5, 2026
Merged

dbccpage merged 1 commit into
mainfrom
claude/project-thread-iim5ta

Conversation

@dbccpage

@dbccpage dbccpage commented Nov 5, 2026

Copy link
Copy Markdown
Owner

This makes the one-screen BQNF overview Jeremy approved the front page at /. It uses the same pattern as the SmplCache front page:

  • What's on it: four changes to a small sales table, with id first. The stored SUM and MAX sit next to the table's real answer.
  • Comparison: what a SQL Server indexed view (which can't contain MAX), a Postgres materialized view (stale until REFRESH) and BQNF each do with every change.
  • The hook: deleting the current MAX. With the extra state (each region's amounts, sorted), BQNF fixes it in place. With that state switched off, it rescans only the affected group.
  • Source of the values: they match the repo's own BQNF simulator, the financial_ledger preset. With use_cochain on it routes Repair, and with it off it routes Recompute.

The full Studio moves to /studio/, and /studio redirects there with a 308. The overview's header links to the Studio, and the Studio's header links back.

Changes:

  • web/templates/overview.html: the overview, served as plain HTML through FileResponse, not Jinja.
  • web/app.py: adds the /, /studio and /studio/ routes.
  • web/templates/index.html: adds an "Overview" link to the header.
  • Tests: web/test_api_smoke.py and tests/test_web_api.py now check the overview at / and the Studio at /studio/.
  • scripts/browser_smoke.cjs: opens /studio/ and checks that both pages are served exactly as committed.

Checks:

  • pytest tests web/test_api_smoke.py: 232 passed.
  • I opened the overview once in Chromium under local uvicorn. It showed no console errors and no horizontal overflow at 1280px.
  • The browser smoke script fails here on 21 checks. The same 21 fail on main in this sandbox, because the Tailwind CDN is blocked here. CI runs it for real.

Generated by Claude Code

/ now shows BQNF on one screen: four changes to a small sales table
(id first), the stored SUM and MAX next to the table's real answer, and
what a SQL Server indexed view, a Postgres materialized view and BQNF
each do with the change. The full Studio moves to /studio/ (/studio
redirects). The browser smoke test now opens /studio/ and also checks
that the overview is served as committed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0194kAmZqD922d7DPkm5UTas
@dbccpage
dbccpage marked this pull request as ready for review November 5, 2026 08:43
@dbccpage
dbccpage merged commit fa91166 into main Nov 5, 2026
6 checks passed
@dbccpage
dbccpage deleted the claude/project-thread-iim5ta branch November 5, 2026 08:44
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