1
0
Fork 0
polaris-task-force/src/lib
Z8MB1E de765fe725 feat(npc-dialogue): play an unsaved draft in the editor
Authoring meant saving, leaving the admin, and finding the contact on the player
site to see whether a branch worked. A Play button in the canvas toolbar now
walks the draft exactly as it stands, without saving it.

The walker is not the runtime component: that resolves text and choices through
server actions keyed on a saved dialogue id, and teaching all four a draft mode
would be a much larger change. preview.ts answers what is local (choice order,
branch targets, effect descriptions) and the server answers the one thing it
cannot, flag values, through a new previewDialogueCondition action gated on
npc-dialogues:update. It calls the same evaluateCondition the player runtime
uses, so a preview cannot disagree with the outcome.

Effects are described, never applied. Choices the author's own flags would hide
are shown as hidden rather than silently dropped.

Verified on a temp document with an event effect and a condition node: the event
step showed 'Would set flag preview_probe_flag to true' with a dry-run note, the
condition answered false for a missing flag, the walk followed the false branch to
its END node, and player_flags gained no row (5 before, 5 after).

Bare admin buttons render with the UA's white background, so each one carries an
explicit background; 9 pure tests cover the walker's reading of the graph.
2026-11-24 20:41:19 -05:00
..
ai fix(ai): bound the structured path too, and stop the dialog overpromising 2026-11-24 15:00:30 -05:00
analytics docs(analytics): add event taxonomy README and analytics domain guide 2026-10-14 12:13:01 -04:00
announcements docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
arma-bridge feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
arma-import feat(arma): dedupe vehicle templates by name and mod with cleanup CLI 2026-10-22 13:18:11 -04:00
arma-markers feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
attendance feat(missions): role sign-ups with FCFS waitlist and rich-text role descriptions 2026-09-30 14:50:26 -04:00
awards feat(awards): brass-emboss ribbon devices, swap arrow for valor V 2026-10-27 01:47:10 -04:00
banking docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
base feat(interior): upgrade completion, tech/labor gates, and module bonuses 2026-10-20 15:44:36 -04:00
client-analytics docs(analytics): add event taxonomy README and analytics domain guide 2026-10-14 12:13:01 -04:00
command-chain feat(missions): add command chain editor and MissionCommandLinks collection 2026-11-02 09:59:55 -05:00
contributions perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
dashboard feat(dashboard): customizable dashboard with personal widgets 2026-09-10 20:03:27 -04:00
economy feat(event-log): hide routine tick events behind a toggle 2026-10-19 20:03:51 -04:00
evaluations feat(evaluations): allow equal-rank command-link reviews via mission chain 2026-11-02 10:00:02 -05:00
garage feat(garage): add vehicle bay schema fields, geometry helpers, and backfill 2026-10-13 16:02:58 -04:00
intelligence feat(intelligence): add attendance-gated feature unlocks to mission pages 2026-11-21 02:30:48 -05:00
interior docs: add superstructure interior domain guide and index entry 2026-10-20 20:08:25 -04:00
journals feat(journals): hint when a draft will earn XP 2026-10-13 15:20:59 -04:00
lexical fix(rich-text): render full lexical formatting incl. colours across all fields 2026-11-18 13:10:26 -05:00
locker chore(locker): commit pending stock handling refinements 2026-10-25 21:23:40 -04:00
map feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
market docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
minigames perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
missionRatings fix(mission-ratings): block mission authors from rating their own mission 2026-11-01 15:21:53 -05:00
notifications perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
npc-dialogue feat(npc-dialogue): play an unsaved draft in the editor 2026-11-24 20:41:19 -05:00
npcs feat(npc): add weighted activity, level, and dialogue conversations 2026-10-05 12:51:59 -04:00
operations feat(operations): gate logistics extractions behind an officer review screen 2026-10-26 22:20:14 -04:00
profile feat(profile): add rich-text dossier excerpt editors 2026-09-06 05:32:23 -04:00
projects feat(projects): enforce permissions and improve search 2026-08-21 00:26:33 -04:00
promotions feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
realtime perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
respawn-tickets feat(respawn-tickets): settle attendance-based respawn tickets per mission 2026-09-14 15:37:05 -04:00
session feat(session): add pre-expiry warning banner with extend button 2026-09-23 15:02:10 -04:00
shims feat(shims): add targeted client-side injections 2026-08-26 00:53:31 -04:00
shipping feat(vehicles): add per-vehicle disallowed-cargo blacklist enforced at shipment 2026-10-26 22:17:21 -04:00
sidebar feat(sidebar): pin Platform section to top during reorder 2026-10-12 14:02:21 -04:00
story chore(chronicle): rename Story Beats to Chronicle Entries 2026-10-09 13:48:14 -04:00
surveys feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00
tech feat(tech): member-facing tech research system and tech tree 2026-10-19 17:28:26 -04:00
tech-tree feat(tech-tree): add note nodes with optional frontend visibility 2026-11-23 03:11:36 -05:00
tickets feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
tours feat(wiki): redesign index with URL-shared filters, category portals, featured strip 2026-10-09 17:56:09 -04:00
transfers feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
vehicles feat(logistics): restyle vehicle catalog cards in tactical dossier style 2026-10-26 22:20:54 -04:00
voiceover fix(voiceover): scope script submission counts per script 2026-10-09 13:13:19 -04:00
wiki feat(wiki): replace textarea overlay with a CodeMirror markdown editor 2026-11-18 15:12:22 -05:00
AGENTS.md refactor(intelligence): drop the factions.relationships array in favour of the ledger 2026-11-18 14:13:29 -05:00
config-cache.ts perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
distance.ts feat(logistics): add shipments collection with dispatch, transit, and arrival processing 2026-08-02 02:03:50 -04:00
flow-edge-routing.ts refactor(flow): share the edge shape builder between both flow canvases 2026-10-06 14:47:14 -04:00
impersonation.ts feat(impersonation): implement user impersonation functionality and UI 2026-08-21 01:41:14 -04:00
logistics.ts feat(logistics): timestamp shipment lifecycle with client relay 2026-09-20 02:43:29 -04:00
modlistPreset.ts fix(missions): only accept Arma 3 Launcher preset exports as mod lists 2026-10-08 13:25:08 -04:00
redaction.ts feat(missions): add redacted objective toggle 2026-08-25 12:27:52 -04:00
shipping.ts feat(map): road-network routing for shipments with transport modes 2026-09-16 23:14:01 -04:00
storageRules.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
utils.ts style(ui): format shadcn/ui primitives and utility hooks 2026-08-16 23:27:51 -04:00
versionInfo.ts feat(version): add build metadata fields 2026-08-27 18:36:11 -04:00