1
0
Fork 0
polaris-task-force/tests
Z8MB1E 4ed5b4ee79 feat(npc-dialogue): choose the conversation typing pace in the admin panel
The pace was a code constant, so changing it meant a build and a deploy. It is
now a select on the NPC Dialogue Prompt global (Presentation, "Typing pace") with
three presets, and a change applies to the next conversation opened.

Each preset moves the character cost and the punctuation pauses together, because
a slow character rate with brisk pauses reads as broken rather than deliberate:
subtle 22ms a character (about 45 a second), natural 30ms (about 33), pronounced
42ms (about 24). natural stays the default. The per-unit cost moved into
PauseProfile, and BASE_UNIT_MS is now derived from natural, so the existing
schedule tests keep their meaning.

loadDialogueSettings reads presentation.pacing through normalizePacingPreset: an
unrecognised stored value (an older row, a newer admin, a typo) falls back to
natural instead of leaving the conversation with no pacing at all. The contact
page reads the global once for both presentation defaults and passes the preset to
NpcConversation, which uses it for the reveal schedule and the beat between lines.

Measured in the running app on one fixed 71 character line: subtle 2377ms, natural
2880ms, pronounced 3627ms, and the admin select renders with Natural selected.
Migration 20261201_180344 applied to dev. 220 npc-dialogue tests pass.
2026-12-01 13:09:17 -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): choose the conversation typing pace in the admin panel 2026-12-01 13:09:17 -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