1
0
Fork 0
polaris-task-force/src/components/frontend/personnel
Z8MB1E c299acbe4f feat(npc-dialogue): condition groups and ternary text tokens
Conditions become a discriminated union: the existing flag leaf plus a
single-level group combining leaves with AND / OR / NOR. The evaluator
recurses one level, and every flat-assuming site (choice gating, graph
validation, editor, canvas previews) is group-aware; DB entry gates stay
flat by design. The node editor gains a shared condition builder with a
combinator dropdown and repeatable rows for both branch nodes and gated
choices.

Display strings also gain ternaries: {{ key ? yes : no }}, {{ !key ? .. }},
and numeric compares like {{ rep >= 5 ? .. }}. A brace-depth scanner
rewrites ternaries over bounded passes so branches may nest flag tokens
and even nested ternaries, then plain interpolation runs its single
never-rescanned pass. Ternary keys join collectNodeTokens so the server
reads exactly the flags a node needs.
2026-10-14 16:21:16 -04:00
..
DialogueAttachments.tsx feat(npc-dialogue): attach files to conversation lines 2026-10-14 16:05:15 -04:00
initials.ts feat(personnel): add NPC portraits and rich bio, redesign contact cards 2026-10-05 03:22:11 -04:00
NpcActivityLine.tsx feat(npc): complete dialogue feature and fix migration snapshot base 2026-10-05 16:02:53 -04:00
NpcCard.tsx feat(npc): add weighted activity, level, and dialogue conversations 2026-10-05 12:51:59 -04:00
NpcConversation.tsx feat(npc-dialogue): condition groups and ternary text tokens 2026-10-14 16:21:16 -04:00
NpcDirectory.tsx fix(mobile): meet the 24px tap-target floor across the app 2026-10-12 22:17:51 -04:00
NpcProfile.tsx fix(personnel): mobile layout for conversations 2026-10-06 17:21:26 -04:00
NpcStatusChips.tsx feat(npc): add weighted activity, level, and dialogue conversations 2026-10-05 12:51:59 -04:00