1
0
Fork 0
polaris-task-force/src/app/(frontend)/personnel/contacts
Z8MB1E c05ef12110 feat(polls): raise a unit poll from an NPC dialogue event node
A fifth effect type, `poll`, alongside notify/emit/reward/flag. The node holds
only the authoring config; the poll itself is a document created on first
trigger, so the conversation cannot rewrite a live poll.

- Node editor: question, context, options (keys derived from the labels, so two
  options that read the same still get distinct keys), duration, multi-select,
  anonymity, role eligibility, weight tiers and the result flag. Role pickers
  are native checkboxes: the admin bundle never loads the frontend stylesheet,
  so portaled selects render unstyled and only respond to the keyboard.
- The effect is idempotent by construction: a player who reaches the node twice
  gets the same poll back, and the action returns its id.
- The conversation keeps a link to the poll it raised, so the player does not
  have to hunt for it in the notification inbox.
- Drafts can never emit a poll: the generation schema only allows none/flag/
  notify, and the validator rejects anything else.
2026-12-01 14:17:40 -05:00
..
[id] feat(polls): raise a unit poll from an NPC dialogue event node 2026-12-01 14:17:40 -05:00
page.tsx feat(npc-dialogue): mark contacts whose conversation has unread content 2026-11-24 20:26:47 -05:00