Repository navigation
feat(site): show real literary metrics on Pages and link Reader from README - #303
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Review — print-visible exact evidence (one blocking consumer defect)
Exact head: de70576db97c13778b41addd8c63d5b2d44ada8a (base 86efa80dd3ef529ed81803bbe036c53301674698). This is a scoped review of PR #303 against #283's presentation/print acceptance; #285's public deployment remains a separate gate.
What is correct: The homepage derives its three charts from the validated, source-free two-work comparison instead of invented constants; the original numeric observations, units, translation attribution, FantLab-parity limits and M2 0/5 remain explicit. The metric-family anchors preserve all 28 rows. The present source does not introduce a manuscript/network-upload path. All 23 exact-head workflow runs report success, including the Reader and Pages build; the Pages deploy job is skipped, not a verified public site.
Blocking finding — the printed homepage hides its only exact-value table
scriptorium/site_home_showcase.py::render_demo puts the 3-metric exact-value table inside <details class="demo-exact"> without open. HOME_CSS only adds @media print { .demo-exact { display:block; } }. That changes the disclosure's outer display, not its closed state. Consequently a visitor who prints the homepage without first expanding “Exact numbers and units” gets only the one-decimal chart readings, not the promised precise comparison values. This conflicts with #283's print experience and exact numeric table alternative.
Reproduction: On Linux with headless Chromium, load a minimal DOM containing the exact details > summary + div.demo-scroll > table structure and the same print rule. Under page.emulate_media(media="print"), table.is_visible() is false with the disclosure closed (default), and true when details.open = true. This is an isolated browser reproduction of the changed markup/CSS behavior, not a run of the complete built Scriptorium site or a verified public page.
Bounded correction: Ensure print rendering exposes the precise table automatically regardless of the interactive disclosure state (while retaining the on-screen toggle), and add a print-media regression with closed-by-default and opened positive controls against the canonical generated page. tests/test_site_home_showcase.py currently checks for a print stylesheet token, not whether the numeric table actually appears in print. No changes to benchmark/source data or deployment controls are requested.
Verification scope: Exact-head code/diff, #283/#285 and discussion were read. Exact-head GitHub CI passed; reviewer-local full repository tests and actual-site print not_run. The browser fixture above passed as a defect reproduction. This is one presentation acceptance blocker, not a scientific-parity or Pages-deployment verdict.
Disposition: REQUEST_CHANGES for PR #303. Authenticated reviewer drevendev differs from author andy-zen-dev; no merge, publication, or gate bypass is authorized here.
Product delivery — source-free, real measured literature
Refs #283 (presentation) and #285 (publication gate; not closed).
Verification and limitations
de70576db97c13778b41addd8c63d5b2d44ada8a: 23/23 SUCCESS, including installed Reader and Pages deterministic rebuild. Published Pages artifact from workflow40073845686, artifact12552620822(SHA-256 packaged download34377d5d4f79e030d4a6b91a8cd50130b3a25dd4ba1439fb1f7457c19d41d89c).vars.SCRIPTORIUM_PAGES_DEPLOY_ENABLED == 'true'on master, and the linked GitHub identityandy-zen-devhaspush=true,admin=false. GitHub's Pages configuration is inaccessible to that connection. Do not remove the interlock or claim the URL is working until an authorized repository admin enables GitHub Actions Pages and that variable, a deployment succeeds, and the public route is checked.Status: PR_CREATED, awaiting later independent acceptance. BUILT/DEPLOYED/LIVE_VERIFIED are separate.