1
0
Fork 0
polaris-task-force/tests
Z8MB1E 1db89addf5 feat(npc-dialogue): hold the typing with an authored pause, and stop squashing long lines
Two things, both about the pace of a line arriving.

An author can now put a beat anywhere in a line with {1.2s} or {400ms}, clamped
to ten seconds. The marker renders nothing; the renderer records where it sat and
the pacing schedule charges that gap between the units either side. Pauses are
absolute, so matching a line to a voice clip stretches or squeezes the typed part
and leaves the authored beat alone. The editor's line help names the marker.

The speed complaint had a mechanical cause. Lines were capped at three seconds,
so anything past about 120 characters was silently compressed: 240 characters ran
at 13ms per character and 360 at 8, against a base of 30. Long lines deeper in a
conversation read as if the typing had sped up. The cap is now twenty seconds,
which only catches a wall of text, and the base unit went from 24ms to 30ms
(about 33 characters a second) because 24 measured as a blur in the app.

The duration rule moved into pacing.ts as lineDurationMs so it is testable
without a browser. One nearby bug fell out of the marker work: when a brace run
turned out not to be markup, the renderer had already spent budget on the text
inside it and then rendered the run literally, so those characters were counted
twice. It now restores what the failed attempt consumed.

Measured in the running app: a {1.2s} marker held the line 1237ms after the fourth
character and never appeared on screen; a 360 character line took 12.5s instead of
3s; a short line still lands at once. 253 tests across 24 files pass.
2026-12-01 13:00:50 -05:00
..
audit test(audit): support exact route filtering in the mobile audit 2026-10-13 10:38:45 -04:00
e2e feat(intelligence): add attendance-gated feature unlocks to mission pages 2026-11-21 02:30:48 -05:00
fixtures Revert "feat(minigames): make Bomperator own-seat movement server-authoritative" 2026-10-21 20:25:38 -04:00
helpers test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00
int feat(npc-dialogue): hold the typing with an authored pause, and stop squashing long lines 2026-12-01 13:00:50 -05:00
push-schema.ts test(int-suite): auto-accept drizzle push prompts in tests/push-schema.ts 2026-10-21 10:03:33 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts test(vitest): honor KEEP_TEST_DBS=0 as force-drop escape hatch 2026-10-21 13:04:15 -04:00
vitest-global.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-marker.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-reporter.ts test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00
vitest-teardown.ts test(vitest): honor KEEP_TEST_DBS=0 as force-drop escape hatch 2026-10-21 13:04:15 -04:00
vitest-worker-setup.ts test(vitest): isolate:false shared forks with per-pid template clones + memoized payload boot 2026-10-21 12:54:30 -04:00