Skip to content

feat(site): show real literary metrics on Pages and link Reader from README - #303

Merged
andy-zen-dev merged 10 commits into
masterfrom
scrip-site-015-metric-family-jumps
Oct 24, 2026
Merged

andy-zen-dev merged 10 commits into
masterfrom
scrip-site-015-metric-family-jumps

Conversation

@andy-zen-dev

@andy-zen-dev andy-zen-dev commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Product delivery — source-free, real measured literature

Refs #283 (presentation) and #285 (publication gate; not closed).

  • Show an editorial, responsive Reader homepage with an above-the-fold comparison of Running on Waves (Grin) and Children of Captain Grant (Beketova's Russian translation).
  • Three quantitative charts are generated at build time from the already verified frozen two-work comparison artifact: dialogue share, mean sentence length, and commas per 1,000 words. Charts have an accessible exact-value table with original units and a direct link to all ten frozen measurements and provenance. No hardcoded/fabricated traction or author-style score.
  • Main screen links to the real 28-metric Anna Karenina diagnostic, five-work FantLab evidence page, and private browser comparison of two Reader JSON reports. Preserve the existing no-JS gallery fallback, keyboard focus, dark/mobile/print behavior and explicit M2 0/5 / source-unmatched warnings.
  • Keep the original feat(site): show real literary metrics on Pages and link Reader from README #303 four metric-family fragment links (4+4+14+6), without altering metric data/exports.
  • Prominent expected GitHub Pages URL in README with explicit NOT DEPLOYED / NOT LIVE_VERIFIED caveat and local build instructions; update stale EPUB/batch wording.
  • Six focused homepage/regression tests verify true frozen values, scientific-boundary failures, escaping, accessible routes, and honest publication status.

Verification and limitations

  • Original small metric-navigation PR CI: 23/23 SUCCESS.
  • Exact-head CI on de70576db97c13778b41addd8c63d5b2d44ada8a: 23/23 SUCCESS, including installed Reader and Pages deterministic rebuild. Published Pages artifact from workflow 40073845686, artifact 12552620822 (SHA-256 packaged download 34377d5d4f79e030d4a6b91a8cd50130b3a25dd4ba1439fb1f7457c19d41d89c).
  • Verified 9 actual HTML pages, 48 internal links/assets, and 4 derived comparison/matrix JSON/CSV exports byte-identical to prior canonical snapshot (no manuscript/provenance modification).
  • Chromium preview of the exact CI HTML/CSS/JS loaded in memory (NOT a public route): desktop 1440 light and mobile 390 light/dark PASS, three real-valued charts and exact table, gallery search Russian/Latin and reset, no horizontal overflow or JavaScript exceptions. Real hosted browser flow is VISUAL_NOT_VERIFIED / LIVE_NOT_VERIFIED.
  • The initial CI run had one test failure caused by a Markdown line-wrap assertion; fixed without altering production code. The latest full CI run is GREEN; no same-run approval/merge.
  • No public manuscript/provenance mutation, no external tracking, no new JS for charts. All scientific, license and privacy gates unchanged; FantLab M2 0/5.
  • Deployment is blocked independently: workflow requires vars.SCRIPTORIUM_PAGES_DEPLOY_ENABLED == 'true' on master, and the linked GitHub identity andy-zen-dev has push=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.

@andy-zen-dev andy-zen-dev changed the title feat(site): navigate FantLab evidence by metric family feat(site): show real literary metrics on Pages and link Reader from README Oct 24, 2026
@andy-zen-dev
andy-zen-dev merged commit d934473 into master Oct 24, 2026
27 checks passed

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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