Skip to content

Static session sheet: export the Play tab as an offline HTML page (4.8, D105) - #190

Merged
firegiant9000 merged 16 commits into
mainfrom
w4-static-sheet
Nov 19, 2026
Merged

firegiant9000 merged 16 commits into
mainfrom
w4-static-sheet

Conversation

@firegiant9000

Copy link
Copy Markdown
Owner

Post-audit item 4.8 (D105): export the Play tab as one offline HTML page a player can open on a phone or tablet at the table.

What it does

  • A third format in the export panel (renamed "Export to another tool or device"): Sheet for a phone or tablet (HTML page, no internet needed). It goes through the existing export pipeline (preview, share preflight, native Save dialog / DevHost download), as target html-sheet.
  • The page has no scripts, no links and no outside requests. It covers core stats, attacks and spells, resources and features, and session notes (personal purpose only; share never includes notes).
  • Pools and slots are native checkboxes, pre-ticked from play state. Ticks are not saved; the export warns about that. Pools above 20 show a number field.
  • Light and dark follow the device setting; print shows summaries only.

Safety

  • Every string is HTML-encoded. A hand-written validator rejects any script, embed, form, image, event handler, outside URL or malformed tag before the file is offered.
  • A Content-Security-Policy meta tag allows only the page's one hashed style (defence in depth).
  • The output scan for local paths and the Windows user name covers the page, the sheet data and the raw note text.

Docs

  • New docs/features/static-session-sheet.md
  • D105 in LIVING_SPECS (row + change history)
  • export-adapters link
  • CHANGELOG (Unreleased → Added)

Gate (local, at 1e6b723)

Step Result
1–2 ci, lint ok
3 UI tests 2049/2066; the 17 failures are known local load timeouts, and all 16 files pass alone (365/365)
4 UI build ok
5 .NET build 0 warnings
6 .NET tests 6338 passed, 14 skipped
7 e2e 80/82; core + builder pass alone (20/20)
a11y 30/32. The new static-sheet test passes in light and dark. screens "builder, each step" fails locally on the base commit too (it stalls on the gear step); CI was green on the base, so this is a local issue, not this branch.

Owed by Arlo:

  • gate 8 (smoke) and 9 (single-instance)
  • open tests/AppService.Tests/Golden/multiclass-caster.tomestack-sheet.html in a browser for a look
  • a check on a real phone and with a screen reader
  • merge

@firegiant9000
firegiant9000 merged commit 33b793e into main Nov 19, 2026
5 checks passed
@firegiant9000
firegiant9000 deleted the w4-static-sheet branch November 19, 2026 17:46
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.

1 participant