1
0
Fork 0
polaris-task-force/tests
Z8MB1E f478f38938 fix(bot): route poll buttons to their interaction handler
The InteractionCreate dispatcher in index.ts forwarded only customIds starting
with `ptf-att:`, so poll buttons (`ptf-poll:`) were never acknowledged: Discord
answered every press with "This interaction failed" and the message looked
broken while the same vote worked on the web. The post-op rating button had the
same defect and had never worked.

The prefix list now lives with the handler (UNIT_BUTTON_PREFIXES /
isUnitButtonCustomId) and the dispatcher reads it, so a prefix the handler
answers to cannot be filtered out above it. A `ptf-` button nothing claims
replies with a toast and logs a warning instead of failing silently.

Regression test pins the predicate to the customIds buildPollRows actually
generates, so the two halves cannot drift apart again.
2026-12-02 10:02:39 -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 fix(bot): route poll buttons to their interaction handler 2026-12-02 10:02:39 -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