1
0
Fork 0
Commit graph

1280 commits

Author SHA1 Message Date
ccbbeaaa99 feat(npc-dialogue): slide the choice menu in instead of knocking the text up
The footer used to appear in one frame, so the fixed frame's log lost its height
at once and every line above jumped upward as the player was reading it. The
footer is now a grid row that grows from 0fr to 1fr over 300ms, with the log
giving up height in step, and the buttons stagger in behind it at 40ms each.
A ResizeObserver keeps the log pinned to the bottom while that happens, but only
when the player is already near the bottom.

Measured: 19 frames from 0 to 163px, log 529 to 366 in lockstep, dialog box
unchanged at 162px/576px. Under prefers-reduced-motion the computed
transition-property is none, so the menu lands at once.

The exit stays instant: a pick swaps the menu for the player's typing indicator.
2026-11-24 19:42:17 -05:00
cde1e2f5d1 feat(npc-dialogue): longer pauses and a frame that holds still
Pauses are longer and now literal: the schedule's own total is the target, so a
preset's milliseconds are what a player waits (155 after a comma, 370 at a
sentence end, 450 at a line break, 720 at a paragraph, 720 for the beat). The cap
moved to 3000ms and compresses the whole schedule rather than stealing time from
characters.

The dialog was sizing itself to its content and Radix centres it, so the choice
footer appearing made the whole window jump. It is now a fixed-height frame: the
log gives up height and scrolls, the footer scrolls inside its own band, and the
window's top edge and height are identical before and after the menu appears
(measured: 162px / 576px in both states). The log is bottom-anchored so a short
conversation sits above its choices instead of floating in empty space, and the
auto-scroll follows the footer appearing.
2026-11-24 19:35:51 -05:00
464ba2d5d4 feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound
The reveal was one linear clock, so every character cost the same and a comma
had nowhere to breathe. It now runs off a schedule: each visible unit costs
BASE_UNIT_MS plus a pause after it, longer at a sentence end and longest at a
line or paragraph break. Pauses never stack (a break after a full stop owns the
pause) and a comma inside a number is not a clause. The schedule is built in
relative units and scaled to the target duration, so a line paced to a recorded
clip keeps the rhythm instead of flattening it.

Between two spoken lines there is now a beat with the speaker's typing dots, and
clicking during it starts the next line at once. The opening line of a cascade
gets no beat.

The typing sound is synthesized (one tick per 55ms at most) from precomputed,
seeded tick times, so a re-render cannot re-roll the rhythm. It stays silent on a
line with a recorded clip, when the header mute is on, and under reduced motion.
It follows a new account preference, users.preferences.dialogue.typewriterSound,
separate from the voice switch, with a migration.

visibleLength is now defined as visibleText(text).length, so the schedule and the
renderer cannot disagree about how long a line is.
2026-11-24 19:20:11 -05:00
441c0dbac3 chore(admin): group AI Connections and AI Settings under an AI section
Both were buried in the Server group beside game server plumbing. The nav now
carries its own AI section, still superuser-gated by the same permissions, and
Server keeps its seven game/server collections.
2026-11-24 18:51:50 -05:00
4ce82a1f87 v0.18.0 - add voiced conversations, typing text, narrator passages, testing-only dialogue 2026-11-24 18:39:04 -05:00
9c27d48649 docs: add v0.18.0 changelog entry 2026-11-24 18:38:57 -05:00
1110315214 feat(npc-dialogue): testing-only conversations for superusers
An npc-dialogues document can be marked testing, which keeps it off the player
site while letting the superuser tier walk it live. Enforced in one module,
lib/npc-dialogue/visibility.ts: the offer skips the conversation, its new-message
badge never appears, and every node lookup re-checks visibility.

Those lookups now name their conversation. The client sends dialogue.id and the
server verifies it belongs to the NPC and is visible to the reader, so a player
cannot read a testing conversation's nodes by guessing an id. The old lookup
took limit: 1 on the NPC's conversations with no ordering, which with a testing
conversation present could read the wrong document and silently skip an effect.

Tester tier is system:admin-access, not every author: an officer who can edit
conversations still cannot reach a testing one on the player site. Only an
explicit true hides a conversation, so rows written before the flag stay live.
2026-11-24 18:29:20 -05:00
36f4bf5e1a fix(npc-dialogue): only dialogue lines type out
Every rendered line went through the reveal, so a choice lead-in typed before
its buttons appeared and event, narration and closing lines animated like
speech. Only node.type === 'dialogue' types now; the rest land whole.

The visible effect beyond the lead-in: choice footers no longer wait on the
lead-in, since the footer is gated on the streaming line finishing.
2026-11-24 18:16:06 -05:00
18ea696d1b feat(npc-dialogue): voice clips on dialogue lines
A line can now carry a recorded voice, played when it lands with the text
paced to the clip so speech and text finish together. Clips live in media and
flowData keeps only a pointer, so a deleted file goes quiet instead of
breaking the line; resolveVoiceClip turns it into a URL per read.

Authors get two sources in the node editor: a direct upload, and an accepted
voiceover take imported from the existing submission flow. Both convert to mono
MP3 through the voiceover transcoder, because browser recordings are WebM and
iOS will not always play them, and a failed transcode stores the original
rather than losing the take.

Players control it twice: users.preferences.dialogue.voice (default on) is the
durable choice, and the speaker button in the conversation header mutes for
that conversation. Autoplay is not guaranteed, so a rejected play() shows a
Play voice button on the line rather than failing silently.
2026-11-24 17:59:36 -05:00
66a4337ba5 feat(npc-dialogue): type conversation lines out, with unit and player control
Conversation lines appeared whole after a length-based pause with bouncing
dots. They now type themselves out, and the player can finish a line by
clicking it.

Control is two-tier: npc-dialogue-settings.presentation.typewriterDefault sets
the unit default, users.preferences.dialogue.typewriter (default/on/off) lets a
player override it either way. prefers-reduced-motion turns the animation off
regardless. Changing the unit setting does not bump the prompt revision, since
it is not prompt text.

The reveal truncates the rendered strings rather than the source, so a
half-typed line can never flash {amber} or an unclosed **. visibleLength()
gives pacing the same count, and the choice footer waits for the reveal to
land so nobody answers a line they have not seen.
2026-11-24 17:50:11 -05:00
b0457a17b3 feat(npc-dialogue): add a descriptive narrative presentation to event nodes
An event node's text could only render as the amber left-barred line. Some
beats are the narrator setting a scene rather than the contact speaking, and
that styling made them read as dialogue.

Event nodes now carry a presentation: the existing event line, or a centered
muted descriptive narrative with no speaker and no accent bar. Rendering only:
the walker, the effect and the tokens behave the same. The canvas card shows a
narrative tag so the two are distinguishable while authoring.
2026-11-24 17:36:04 -05:00
04bbc66edc feat(npc-dialogue): add defined checks to flag conditions
is_true/is_false test truthiness, so a flag explicitly set to false reads
the same as a flag that was never recorded. is_defined/is_undefined test
existence instead, which lets a branch fire on "has this happened yet".

A pending-activation flag counts as defined (recorded, not yet in effect)
and an expired personal entry now falls through to the global entry, which
is what readFlag's contract already promised.

NUMERIC_CONDITION_OPS becomes the shared list of ops that take an amount, so
the editor, the entryGate field and conditionSummary agree. Adding to
CONDITION_OPS also alters enum_npc_dialogues_entry_gate_op, so the migration
is an ALTER TYPE ADD VALUE, applied to dev.
2026-11-24 17:34:40 -05:00
9f8a0d87ea v0.17.0 - configurable NPC dialogue prompt and AI connections, generate dialogue branches 2026-11-24 15:58:43 -05:00
25a085dc44 docs: add v0.17.0 changelog entry 2026-11-24 15:58:35 -05:00
b2588f26bc docs(npc-dialogue): sync the contract with the start-node exception
Three one-line corrections after the last review, all in text this range
introduced:

- the AI Drafting tab no longer claims the preview is the literal prompt,
  which the shared footer now qualifies;
- the return table and the area guide record that a choice marked as the
  start gets no return, since nothing may point at the start;
- the fragment note names the start rule for a start choice instead of
  claiming the step had nothing after it. A start dialogue with no
  successor still reports the missing successor, which is the actionable
  reason there.
2026-11-24 15:05:19 -05:00
5ccb25e643 fix(ai): bound the structured path too, and stop the dialog overpromising
The timeout from the previous commit only covered the plain-text fetch, so
the default drafting path was still unbounded: `streamObject` for
json_schema had no abort signal, which is what `generateDialogueDraft` and
the probe's structured half use. A provider that answers the plain probe
and then stalls could still hold the Generate modal and the Test button
open, while the docs claimed every request was bounded. Both
`streamObject` calls (the shared structured path and Compose's fallback)
now carry the same ceiling.

Dialog copy told the author the branch continues into the successor even
after they cleared the return box, which is when it does not. It now says
that step becomes unreachable until wired by hand. When the node cannot
take a return at all the checkbox used to vanish without explanation; the
reason is now stated where the toggle would be.

A choice node marked as the start could receive the return hop, drawing an
edge into the start node that `connectHop` and the drop handler both
refuse. It no longer returns, and its open end stays free like the other
cases.

Also: the two misplaced doc comments now sit above the declarations they
describe, and the whole-conversation caveat moved into the shared preview
component so the global settings tab carries it too.
2026-11-24 15:00:30 -05:00
7adfcde72d fix(npc-dialogue): keep the conversation reachable when a branch attaches
Review findings, all in code this range introduced.

Attaching a branch to a node that already had a next step replaced that
hop, and "come back where it attached" pointed the branch back at the
caller, which loops: the caller then leads into the branch it just
returned from. Everything downstream was orphaned. The branch now
continues into the step that hop used to point at, so attaching inserts
in front of it instead of deleting it. Rejoining a condition is refused
outright, because re-entering re-evaluates the same flags and retakes the
same branch. Return candidates are limited to node types that read
`next`: a choice or condition open end would have received a hop no
walker follows.

The dialog says which of the three applies, and only offers the toggle
when a return exists, so an untouched default is not sent and reported
back as a refusal.

Condition true/false dots were drawn on the input handle: the hit-area
class sets left and right on the handle itself, which over-constrains
React Flow's `right: 0`, so both dots drifted to the card's left edge.
They now take the hit area as a child, like the other handles.

Refusals are honest: `connectHop` reports `changed: false` for a write it
did not make (it used to report true and return a new array), the editor
explains instead of rewriting an identical graph, and a refused
tail-drag keeps the original hop rather than deleting it first.

A passing connection test now really is invalidated when the
configuration changes. That ran in `afterChange`, whose return value is
only the operation's response, so the stored row kept showing a stale
pass while the test asserted the response. It moved to `beforeChange`,
counts only fields actually submitted (so the Test button's own result
write does not invalidate itself), and the test reads the row back.

Also: the fragment prompt no longer teaches `isStart: true` through the
worked example or asks for "the whole conversation" on retry; requests
carry a ten minute ceiling so an unreachable-but-accepting host cannot
hang Generate, Compose or the Test button; the API key description no
longer claims at-rest encryption, which does not exist; the per-dialogue
voice override gets the same dash and length cleaning as the global it
outranks; and the unused `describeAttachmentPoint` is gone, with the
attachment output now included in the hint the model receives.
2026-11-24 14:47:08 -05:00
375d04d644 feat(npc-dialogue): generate a branch instead of replacing the conversation
Generate could only hand back a whole graph, so using it inside a
conversation meant losing what was already there. It now offers three
placements, and the branch one is the default whenever a node is selected.

Select a node, press Generate, and the model writes the next beat as a
branch that is wired in from that node's output: a new choice button, a
condition's free branch, or the node's continuation. A "come back" toggle
points the branch's open end back at where it attached, which is what
turns a generated tangent into a side question that returns to the menu.
Empty canvas keeps the old behaviour: a whole conversation, no selector.

The splice lives in `fragmentInsert.ts`, pure and under test. It remaps
every id (a collision would silently repoint the author's hops), strips
any start flag, requires an open end so the branch can be continued, and
places the branch beside its attachment while nudging clear of individual
cards. Attaching under a choice node derives the new button's text from
the branch's first line, since a blank button fails validation; attaching
under an end node inserts the branch unwired and says why rather than
discarding it.

The prompt splits its structure contract by scope (full demands one start
node, fragment demands none and one open end) while FIELDS, STATE and
OUTPUT stay shared, so the schema contract cannot fork. PROMPT_VERSION is
bumped to npc-gen-v2.
2026-11-24 14:18:56 -05:00
ad63217e44 fix(npc-dialogue): make canvas wiring actually work
Three defects in the flow editor, all of which made it look like drag
and drop was simply broken:

- Reconnection was a silent no-op. React Flow enables it by default, so
  the drag drew a line and then threw the drop away with no handler: the
  edge snapped back. Reconnects now write the hop, and a drop over a node
  card (which arrives with no resolved connection) retargets, carrying
  the existing choice text, tooltip, once flag and gate instead of
  blanking the button.
- A refused drop said nothing. Dropping on the start node looked like the
  canvas had frozen; it now explains why nothing can point there.
- Handle dots were unmissable at 100% zoom and unusable zoomed out. A
  child element widens the press target, generously horizontally where
  the only neighbour is empty canvas and barely vertically because choice
  rows stack a few pixels apart when zoomed out.

Dropping a condition branch on the card filled true and false with the
same node, which made the condition pointless; it now takes the first
free branch.

Connection writing moved into `connectHop` in the lib so the rules are
unit-tested rather than exercised only by hand.
2026-11-24 13:58:32 -05:00
31e6cd6509 fix(ai): make the connection key enterable and the probe legible
Three defects found by driving the real admin panel, none of which a
typecheck or a unit test would have caught:

- The API key could not be entered at all. Field-level read access denies
  the value, and Payload does not render a field you cannot read, so the
  input was absent while the collection said it existed. The input is now
  a `ui` component that writes the hidden value through useField, which
  keeps the key server-only and gives it a working control.
- The probe panel and key input used frontend/ zinc styling, which reads
  as an accidental dark block on the admin panel's light theme. They now
  use the admin bundle's own --theme-elevation variables.
- An unreachable host reported "fetch failed" with no cause. Node hides
  the connect error inside `cause`, and that string ("connect
  ECONNREFUSED 10.0.0.5:8888") is the only part an admin can act on, so
  it is now included.

Also labels the acronym fields ("Base URL", "Model ID", "Has API key")
and covers the unreachable-host path in the generate-modes spec.
2026-11-24 13:28:58 -05:00
3896071632 fix(ai): keep the Compose seed helper off the connection selector
The plugin's generateText runs while seeding field prompt instructions,
which can happen during boot. Resolving a connection there calls
getPayload, which would wait on the boot it is inside. Seeding is a
one-off admin concern, so it stays on the env default.
2026-11-24 13:05:29 -05:00
7abca7185c feat(ai): add admin-configurable model connections
Every AI surface talked to the Unsloth box through env vars, so swapping
provider or model meant editing .env and restarting. A connection is now
a stored record: base URL, model id, key, structured-output mode, and a
reasoning toggle.

Three surfaces with their own selector (Compose, dialogue draft, line
rewrite), because they want different things from a model: a draft needs
strict schema adherence while a line rewrite only needs prose. Blank
means the env defaults, so an empty global behaves exactly as before.

The API key is write-only: field read access denies everyone, so it never
reaches the admin form, REST, GraphQL, or a populated relationship. Blank
submission means "unchanged" and `clearApiKey` is the only delete, which
avoids the masked-field-round-trips-empty bug. Backups still contain it;
a blank connection key falls back to UNSLOTH_API_KEY for that reason.

Structured output is no longer assumed to be json_schema. Some
OpenAI-compatible providers reject it, so a connection selects
json_schema, json_object or prompt, and the weaker modes serialise the
schema into the prompt and parse the reply. The Test button runs a plain
probe and a structured probe, because a provider that refuses json_schema
passes the first and fails every draft.

Compose keeps a single fixed dropdown entry: plugin config is built at
boot and cannot list database rows, so the handler resolves the selected
connection per request instead.

Draft provenance records the connection label, so a stored conversation
still names the provider that produced it.
2026-11-24 13:04:39 -05:00
de27a53044 feat(npc-dialogue): make the AI prompt voice configurable
The system prompt was a single constant, so tuning how drafted dialogue
sounds meant editing code and redeploying. Split it into the half that is
copy and the half that is a contract.

VOICE and optional HOUSE RULES are now editable from a new
`npc-dialogue-settings` global, and per conversation through an
`voiceOverride` field on `npc-dialogues`. Precedence is dialogue, then
global, then the built-in default, resolved by the pure `resolveVoice`.
STRUCTURE, FIELDS, STATE, OUTPUT and the worked example stay in
`LOCKED_RULES`: the draft validator enforces the same rules, so an edit
there would make every draft fail for reasons an author cannot trace.

Both surfaces render the assembled prompt through the same pure
composer the server calls, so the preview cannot drift from what the
model receives. The global normalises dashes on save, bumps `revision`
only on a real text change, and keeps 20 versions for rollback.

Provenance gains `promptSource` and `promptRevision` so a stored draft
still names the voice that shaped it. A draft that fails twice while a
custom voice is active now says so, instead of looking like a model bug.

`composeDialogueSystemPrompt()` with no arguments reproduces the old
prompt byte for byte, pinned by a golden fixture.
2026-11-24 12:53:33 -05:00
532a9a6459 v0.16.9 - restyle tech tree note nodes 2026-11-24 11:28:28 -05:00
d9ed16d430 docs: add v0.16.9 changelog entry
Nothing in this release is reachable by a regular user: the note-card restyle only changes a staff authoring surface, and no note is published on the member tree yet. Uses the standard filler line.
2026-11-24 11:10:16 -05:00
16a5a288d9 chore(tech-tree): restyle note nodes as distinct memo cards
A note was still a rectangle with a strip and a footer, so it read as another technology with an amber accent. Give it its own silhouette instead: warm paper fill, chunky dashed border, a vertical NOTE rail in place of the classification strip, a folded top-right corner, no corner brackets and no readout footer, with the published/internal state moved into the body.

The differences that matter at fit-view zoom are the fill and the dashed edge, since the text is illegible there and colour is all that separates the two node kinds. Documents the contract in the tech-tree AGENTS.md so it does not get harmonised back to tech-card chrome.
2026-11-24 11:09:54 -05:00
7003a321f9 v0.16.8 - add tech tree notes, fix awards without a tier 2026-11-24 10:05:57 -05:00
441dd1e535 docs: add v0.16.8 changelog entry 2026-11-24 09:55:53 -05:00
74b116b9cf fix(awards): save awards without an advancement tier
The beforeChange hook compared advancement values against undefined, but the admin form always submits the group, so an award outside a lineup arrived as { seriesKey: null, tier: null }. Null counted as set, which tripped the duplicate tier check for standalone ribbons and the ribbons-only guard for medals and commendations.

Normalize null, empty, and non-finite values to "not set" before validating. Non-ribbon awards clear leftover lineup values on a type change instead of throwing on a hidden field, and partial API updates that omit advancement keep the stored lineup.
2026-11-24 08:03:30 -05:00
48556c3688 feat(tech-tree): add note nodes with optional frontend visibility
Planners can now drop annotation cards on the Tech Tree canvas without inventing fake technologies. Notes live in their own tech-tree-notes collection (title, body, treePosition) and carry no prerequisites, costs, approval workflow or research state, so the layout engine, edge builder and research rules never see them.

showOnFrontend defaults to false, making notes a backend authoring aid; ticking it publishes the amber card read-only to the member tech tree, which queries showOnFrontend = true.

Canvas work: amber NoteNode card with no connection handles, NoteDialog for create/edit/delete, a New Note toolbar button (technologies:create gated), viewport-centre placement, and namespaced note-<id> React Flow ids so note and technology ids can never collide. Note drags, Save positions and Auto-arrange reuse the single-statement bulk /api/tech-tree/positions write by sending collection: "tech-tree-notes"; no PATCH-per-note path was added.

Also fixes the note card body being clipped by the inherited line-height: the classification strip and footer now have fixed heights with leading-none, and the body takes the remaining flex space instead of line-clamp.

Tests: tech-tree-notes.int.spec.ts (defaults, required title, publication filter, in-place edits, note layout and id namespacing) plus note coverage in tech-tree-positions.int.spec.ts. Migration 20261123_073019_add_tech_tree_notes must be run on prod after deploy.
2026-11-23 03:11:36 -05:00
4e9b2d494f v0.16.7 - fix dialogue draft dialog styling 2026-11-22 23:37:53 -05:00
8299058cb4 docs: add v0.16.7 changelog entry 2026-11-22 23:37:50 -05:00
916040eb70 fix(npc-dialogue): style the draft dialog for the admin panel
The admin bundle never loads src/app/(frontend)/styles.css, so the shadcn
theme variables (--background, --popover, --border-input) do not exist inside
a custom admin field. The brief dialog rendered transparent, and its portaled
Radix Select could not take pointer events, so the dropdowns were keyboard
only.

- describe every surface explicitly in zinc, as NodeEditDialog already does
- replace the four Radix Selects with native selects, which need no theme
  scope and work with mouse and keyboard
- scroll the form body at 62vh instead of letting it collide with the footer
- note the rule in src/lib/npc-dialogue/AGENTS.md and correct the root
  AGENTS.md shadcn sentence, which claimed the admin panel handles styling
2026-11-22 23:34:12 -05:00
8ad7c412e4 v0.16.6 - cut render fan-out and per-render queries 2026-11-22 22:41:32 -05:00
d71a28f3ec docs: add v0.16.6 changelog entry 2026-11-22 22:41:28 -05:00
a0f767cc13 perf: cut queries per render and refreshes per realtime event
Under 10-12 concurrent users the app queued behind itself: every SSE
game-event/profile-update made each client run router.refresh(), i.e. a
full layout + page render at ~15-25 queries, and a mission completion
emitted one XP event per attendee row. Measured against production, no
single query is slow and the DB is small, so this targets render count
and per-render query count instead of indexes.

Fewer renders per event:
- GameTickRealtime: 250ms coalescing window -> 1s, hidden tabs skip the
  render and refresh once when shown again.
- Delete OperationsRealtimeRefresher (5 routes) and the duplicate
  useGameTick refreshers in ProductionPanel/SlotsPanel; the global
  subscriber already refreshes those routes.
- Presence heartbeats no longer broadcast (was O(N^2) per channel every
  15s for a lastSeen no surface renders).
- NavCore links opt out of prefetch: the layout is force-dynamic with no
  loading.tsx, so ~35 prefetched links per tab were 35 server renders.

Fewer queries per render:
- Qualification flags go through one cached, single-flight profile read
  instead of one query per auth check; invalidated on profile writes.
- Dedupe DIVISION_ADMIN_QUALIFICATIONS (5 identical lookups -> 1).
- Anchor the permission cache on globalThis so route bundles share it.
- Minigame registry: real TTL cache plus invalidation on write.
- New cachedConfig TTL cache for the shims/game-rules globals, with
  invalidation hooks; bank-account existence check stops hydrating.
- pg pool max 10 -> 20 (node-postgres default throttled concurrent
  renders).

Hot-path per-item work:
- Contribution grant sweep: one status write per batch, one bucket write
  and one name lookup per user, one existence query per source
  collection instead of ~5 queries per entry.
- Notifications bell: coalesced refetch, hidden-tab skip; mark-all-read
  filters by the actor instead of scanning 100 foreign unread rows.
- Polling loops (shipments, ledger, mission reminders, chip bank) pause
  while the tab is hidden.
2026-11-22 22:39:10 -05:00
9149b3926f docs: add POLARIS operations timeline with campaign spine and branch stubs 2026-11-22 18:44:10 -05:00
a5f2959b27 v0.16.5 - add attendance unlock timeline, list thresholds in Discord roll call 2026-11-21 02:35:47 -05:00
c595781790 docs: add v0.16.5 changelog entry 2026-11-21 02:35:33 -05:00
4022e5b5f1 feat(intelligence): add attendance-gated feature unlocks to mission pages
Missions gain an attendanceUnlocks tier list (admin tab plus side-op dialog),
rendered as a timeline under the attendance card: reached tiers light up in
their accent, unreached tiers stay muted with an X TO GO tag.

- shared derivation, validation and side-op parser in lib/intelligence
- thresholds sorted on save, duplicates rejected, above-max allowed
- one compact field in the Discord roll-call; attendance hash now includes
  tiers, embed schema version 4
- int tests and an e2e render check at two attendance levels
2026-11-21 02:30:48 -05:00
429d2028d0 v0.16.4 - add unlimited arsenal stock, fix the claimed op notice 2026-11-20 20:14:55 -05:00
86b1c9ae61 docs: add v0.16.4 changelog entry 2026-11-20 20:13:18 -05:00
b90247a288 fix(bot): rewrite the Friday notice in the claimed state
The claim path appended a credit line to the invitation, so a claimed notice
still said the slot was open, that nobody had picked it up, and that Jason
would host if nobody did.

- renderClaimedNotice(): the whole body for the claimed state, role ping
  dropped since there is nothing left to ask for
- compare the live message against the rendered body each poll, so a message
  left contradictory by an older build heals on the next tick
- a cancelled claim still restores the full invitation, ping included
- cover both bodies and the claim parser in the notice integration test
2026-11-20 20:11:53 -05:00
5418d6563e feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
716c87bb87 v0.16.3 - fix relation meters, rating prompts, op notice date 2026-11-20 18:01:20 -05:00
56b53f207d docs: add v0.16.3 changelog entry 2026-11-20 17:27:13 -05:00
4fba0b03c7 fix(bot): show the Friday op slot date in Eastern time
Discord renders <t:epoch:D> in each viewer's timezone, so the slot's Friday
00:00 Eastern epoch read as Thursday for members west of Eastern. Render the
date as a pinned Eastern label instead.

- add fridayDateLabel(): the upcoming Friday in America/New_York
- noticeToken() now returns that label, keeping dedup stable per Friday
- legacyNoticeToken() still matches older <t:epoch:D> notices and the service
  rewrites them in place, so a deploy does not duplicate or leave one behind
- only match the bot's own messages, since a plain-date token could otherwise
  hit a member's message (which the bot cannot edit)
- document the timezone rule in the bot AGENTS.md
2026-11-20 17:25:04 -05:00
9288d1498e refactor(intelligence): reword missing rating blurbs, replace "self rating" text with Alert, improve layout on campaign card 2026-11-20 16:37:12 -05:00
7428efe6aa fix(intelligence): grow negative relation meters left of zero
The two meters on a faction dossier shared a centered track, but a negative
score grew to the right and a positive one to the left, so the side a bar sat
on said the opposite of what it meant. Negative now extends left of the zero
line and positive right.

The labels also read badly side by side: "They see us" and "We see them" each
start with the party being looked at, which invites reading them the wrong way
round. "How they see us" and "How we see them" name the direction first.
2026-11-20 03:03:29 -05:00
fc6fec4a45 v0.16.2 - add faction relations graph view 2026-11-18 16:41:11 -05:00