The Operations // Last Mission widget carried a header row whose left side
repeated the mission code name already shown on the card below, and after
that duplication was removed the row held only a lone right-aligned
"View all" link floating in an empty band. Remove the row entirely: the
frame strip names the section and the mission card carries its own
"View details" affordance.
Full 390x844 pass on a fresh dev server: 68/68 routes ok, zero findings in
every violation class (overflow, grid, hoverOnly, tapTarget), leaving only
the review tiers (611 marginal, 6 WCAG-exempt inline links, 1 informational
hidden-on-mobile) plus the banking hydration fix.
CurrencyAmount returned a div, but callers place it inside p and span
(wallet hero balance, account cards, unit funds), which is invalid nesting:
the browser's parser closes the p early, so server and client markup differ
and React reports a hydration error on the banking pages. An inline-flex
span renders identically in all four call sites and is valid in each.
Raw element boxes overstated violations, so the check now measures what a
user actually taps, and reports the tiers separately (violation under
24px, marginal 24-39px, inline-exempt):
- effective target is the wrapping label, or label[for] for small
checkables only. Verified in the browser that clicking a label toggles
its Radix Switch (label rows are 84px tall); a Select's 14px caption
label is not charged because its 36px trigger is the real target
- stretched-link cards (after:absolute inset-0) are measured on the
positioned ancestor, not the 18px anchor inside
- sr-only proxy controls (under 8px) and input[type=range] are excluded
(a slider's thumb is the target, not the 4px track)
- display:inline anchors in prose get the WCAG 2.5.8 inline exception and
are reported as tapTargetInlineText
- refreshed baseline: 0 violations, 573 marginal, 6 inline, 1 hidden
Session A measured 159 targets under the WCAG 2.5.8 minimum on 42 routes;
this brings that to zero. Mostly one-line spacing changes: small caption
labels and text links were 14-21px tall because shadcn Label/Button use
leading-none and bare text links carry no vertical padding.
- shared Dialog close button: p-1 with right-3/top-3 so the 24px hit box
keeps the icon where it was
- tour card: Skip all tours (13 routes), All boards on standings cards (6)
- detail pages: 27 Back links, journals All journals, wiki category
links, voiceover card titles, factions batch link
- dashboard: 7 View all / View full record links
- account preferences: mute rows min-h-6, radio and tours labels, plus
contacts filter labels and the campaigns show-completed label
- ribbon studio: mirror label and stripe/module remove buttons
- helpdesk ticket titles, radio tick-sound label
The harness was measuring against a viewport Chromium had already widened:
with isMobile true it grows the layout viewport to fit overflowing content,
so scrollWidth > innerWidth could never fire and real overflows were masked.
hasTouch alone gives (pointer: coarse) while keeping the 390px viewport
fixed, which is what surfaced the remaining resources overflow.
- grid class: flag only grids that overflow a non-scrolling container;
drop the narrow-track rule (it flagged intentional icon columns) and
skip min-w-max boards, which scroll by design
- structures detail now resolves from game-structures (the page's
collection), so the previous phantom 404 is gone
- refreshed baseline: overflow, grid and hoverOnly all at zero
Mobile audit (390x844) found overflow on 6 routes; all now clean.
- Tabs: TabsList is inline-flex and widened the page when several tabs
were present (roster doc 639px, helpdesk 510px). It now scrolls
(max-w-full + overflow-x-auto); TabsContent gets min-w-0 and the roster
Tabs min-w-0 so the org tree's own scroller can clip instead of the
page growing
- Item: ItemHeader/ItemFooter had flex-basis 100% with min-width auto, so
a long title forced the card wider instead of shrinking. Shared min-w-0
- ResourceCard: the description rendered twice (once inside ItemContent,
once as ItemDescription) and both fought for one flex line, crushing
the content column to 27px. Single description, full-width rows,
truncating title (min-w-0 + items-stretch so nowrap spans can clip),
shrink-0 badges
- awards/design: stripe row wraps instead of exceeding the viewport
- leaderboards: flappy table and the shared StandingsTable scroll
horizontally rather than widening the page
- blackjack: explicit grid-cols-1 (minmax(0,1fr)) so the arena's implicit
track cannot outgrow the viewport
- campaigns: card readout was revealed only on hover, unreachable on
touch; now always visible on coarse pointers and hover-revealed only
on pointer-fine
Pass 2 Session A: scripted Playwright audit over all frontend routes at
mobile viewport, classifying overflow, dialog, grid, hoverOnly,
hiddenMobile, tapTarget (<24px WCAG violation) and tapTargetMarginal
(24-39px review tier) findings.
- resolves dynamic route ids from REST, skips unresolvable ones instead
of navigating literal bracket URLs
- blocks the realtime SSE stream, uses domcontentloaded, retries 5xx and
errors once, and aborts if the dev server dies mid-run
- AUDIT_ROUTE_FILTER for targeted re-audits (writes filtered files so
the baseline report is never clobbered)
- markdown report clusters findings into cross-route pattern groups;
Sessions B-D fix per class and re-run this as the regression gate
- includes the initial baseline report (159 tap violations, 24 overflow
findings on 6 routes, 4 cramped grids, 1 hover-only, 1 hidden-on-mobile)
- Replace hand-rolled buttons with @payloadcms/ui Button (secondary dry
run, primary apply) since the admin bundle has no Tailwind for shadcn
- Real spacing values throughout: Payload defines no --spacing-* vars,
so gaps used to collapse to zero; use px literals and var(--base)
- Framed panels with theme-elevation borders, uppercase table headers,
stats strip with collapsed line boxes so small caps sit evenly inside
the card padding
- award-rules collection: metric/operator/value threshold rules linked to
awards, with auto-retire-lower-tiers and once-per-series flags, active
toggle, and award-rules:* permissions
- src/lib/awards/metrics.ts: pure metric resolvers (years of service from
dossier.enlistmentDate with account-age fallback, account age, missions
attended, total XP) plus operator comparison, unit tested
- evaluateAwardRules() sweeper: idempotent, dry-run capable; grants land as
profile rows with awardedBy null so the existing afterChange hook sends
award:granted notifications; upgrades replace the lower series tier in
place preserving the original date; emits award:rule-granted events
- award-tick payload bin for daily evaluation + admin Award Automation
view with Evaluate now (dry run) preview and Apply grants
- seedYearsOfServiceRules.ts wires the four years-of-service ribbons into
one advancement series and creates their rules (idempotent, dev seeded)
- migration add_award_rules_automation (table + awards event target enum)
- New Journals collection (Chronicle group): title, Lexical body, status
draft/published, optional in-world date and mission link; authors read,
edit, and delete their own entries at any status while every logged-in
user reads published ones; journals:* staff permissions bypass ownership
and gate the admin page (registered in the permission registry)
- /journals list with compose dialog and /journals/[id] reader reusing the
Chronicle typography; edit/delete controls for authors and staff; drafts
carry the DraftBadge and stay invisible to everyone but their author
- Server actions create/update/delete with ownership checks, publish-time
journal:created and journal:deleted feed events (journals added to the
GameEventLogs target collection enum via migration)
- Sidebar entry under Chronicle, command palette destination, admin panel
icon; excerpt extractor as a pure module (src/lib/journals/excerpt.ts)
- Access-control integration spec covers draft privacy, publish visibility,
non-author write blocking, and staff override (5 tests)
- normalizeSidebarOrder moves pinned sections (Platform) to the front, so
even hand-crafted stored orders cannot displace it; enforced server-side
in updateSidebarOrder via the same helper
- Customize mode renders Platform statically with a pin marker instead of
a drag grip; only the remaining sections are sortable
- Spec updated: user order preserved after the pinned head, new pinning test
- preferences.display.sidebarOrder json field on Users + named migration
add_sidebar_order_preference + regenerated types
- New pure helper src/lib/sidebar/order.ts (section ids, labels, default
order, normalizeSidebarOrder) modeled on lib/dashboard/layout.ts, with
tests/int/sidebar-order.int.spec.ts covering fallback/dupes/missing ids
- AppSidebar renders sections from the normalized order; feature-flagged-off
sections skip their slot and keep stored positions
- Customize mode: dnd-kit sortable grips on group headers, save-on-drop via
new updateSidebarOrder action, Reset clears the preference, Done exits;
hidden while the sidebar is collapsed
- updateSidebarOrder sanitizes server-side and rewrites full preferences
- Fix sibling clobbering: saveDashboardLayout now preserves sidebarOrder,
and updatePreferences now preserves both sidebarOrder and dashboard.layout
- New shared slug-to-icon map (collection-icons.ts) covering all collections,
globals, plugin collections, and the custom tech-tree entry, with fallbacks
- TechTreeNavClient renders a lucide icon before every nav link label
- Custom 'collections' dashboard widget replaces Payload's stock CollectionCards
grid with an icon-bearing variant (same permission filtering, group headers,
create shortcuts, and global lock indicators)
Adds a discord-presence Payload Global as the single source of truth for the bot's Discord activity. Two writers update it and either takes effect live: the admin CMS page and the /discord-presence command (view/edit/clear, guild-only, gated by new discord:rp:read and discord:rp:update permissions). A poll loop reconciles Discord's live presence from the Global so CMS edits propagate without a restart; disabled or blank presence sets the bot idle.
Completes the terminology pass: the "How to place" help block and the
engine's user-facing error strings ("Missing structure", "Structures cannot
overlap", "Placement is closed", "The opponent has not placed their
structures") now match the place/structure/target vocabulary used elsewhere
in the duel. Also splits a comment that had been merged onto the scoreOf
declaration. Strings only; no behavior change.
- Intro, metadata, placement card, error strings, and lobby phase label now
use place/target/structure instead of emplace/bracket
- Leave the "How to emplace" help block unchanged for now
- Refresh the registry blurb and add a data migration to update the seeded
minigames description
- Add 11 destinations that exist in the app but were absent from the palette:
World Map, Event Log, Operations, Ops Ledger, Reservations, Supply Boxes,
Promotions, Leaderboard, Minigame Leaderboards, Chronicle, Surveys
- Show G N / G A shortcut labels for Notifications and Admin (chords were
already wired in KeyboardShortcutsProvider but unlabelled)
- Add a Toggle Mini XP Display action mirroring the sidebar control
- Add an Open Unassigned Tickets queue shortcut and point Create Support
Ticket at the compose deep link
- Teach /helpdesk to open the create dialog via ?compose=1 and to preselect
a filter tab via ?view=unassigned
The L now pivots on its elbow (corner) cell instead of being re-laid-out in
its bounding box, so rotating keeps that one cell in place instead of
shifting the whole piece. Orientation 0 is the L look with the elbow at the
bottom-left and arms up and to the right.
Cells are the anchor plus two arm vectors rotated in quarter-turns, so the
anchor is always occupied. The editor recovers a stored emplacement's
(anchor, rotation) by matching its cells against every candidate, and the
engine test asserts the anchor cell is present in all four orientations.
The Ammo Depot is now a 3-cell L (a 2x2 box minus one corner) instead of a
2-cell line. Emplacement orientation becomes quarter-turns (0-3) so the L
can turn through all four; lines still use 0/1, the square ignores it.
The editor seeds an emplacement's rotation by matching its stored cells
against each orientation, the rotate toggle shows "Rotate 90°" for the L,
and the engine/rotation tests cover the four L orientations.
Sound is synthesized with the Web Audio API (no new assets): a launch
thump on fire, noise-burst impacts (splash for a miss, a bigger double
boom for a destroyed emplacement), a chime when the turn passes to you,
and victory/defeat fanfares. A mute button and volume slider live in the
match header; the setting persists per browser
(polaris:call-for-fire-versus-sound).
Adds a one-shot explosion VFX on hit and destroyed cells on both boards
(larger burst for a destroyed emplacement), suppressed under
prefers-reduced-motion. Only shots that arrive while watching animate, so
loading a match does not replay every past hit.
Ring the selected emplacement's grid cells and document the controls in
the editor help text. Rotate a placed emplacement in place by
double-clicking it or by pressing the Horizontal/Vertical toggle (the
toggle also sets the orientation for a new placement, and is disabled for
the fixed 2x2 Command Post).
Fix: moving an emplacement after rotating it kept the default orientation
instead of the rotated one, so the rotation was lost on the next click.
placeAt now preserves the emplacement's stored orientation when moving it.
Clicking a grid cell always placed the currently selected emplacement
there and silently deleted whatever it overlapped, so clicking an
earlier emplacement (after selection auto-advanced) clobbered it. Now
clicking a placed emplacement selects it so it can be moved, and placing
onto an occupied cell is refused with a message instead of deleting the
other emplacement. Adds the pick-up hint to the editor copy.
The placement and battle grids inherited a 32px line-height, so any cell
holding the emplacement glyph grew taller than its square width (29x34),
making the row gaps look inconsistent once emplacements were placed. Set
leading-none on the grids so cells stay square.
Add a shape to emplacements ("line" | "square") and lay out the Command
Post as a 2x2 block (size 4) instead of a 3-cell line. cellsForFob resolves
cells per definition; the placement editor, preview, and tests use it.
Give each emplacement type its own color (Command Post amber, Ammo Depot
rose, Radar Site sky, FOB violet) so it is obvious what is placed where:
the picker chips carry a matching swatch, placement cells and the
in-battle "your fire bases" board use the type color, and struck enemy
cells use the struck type's color. The shot view now carries the struck
assetId so the enemy sector can be colored too.
Cap the board at a compact width (max-w-sm) instead of stretching to fill
the panel, so the 10x10 grid no longer dominates the screen.
Head-to-head artillery duel in a new "multiplayer" registry category
(out of periods). Each operator hides a fire-base fleet on a 10x10 grid,
then takes turns calling fire: the first mission is a grid designation,
every later shot adjusts from that operator's last impact using the
single-player range/deflection controls. First to reduce every enemy
emplacement wins; a cap decides on emplacements then cells.
Pure engine in src/lib/minigames/call-for-fire-versus (engine, views,
types, constants) is client-safe and unit-tested. The server-only
registry mirrors the blackjack table pattern (globalThis-anchored Map,
lobby, per-turn timeout, expiry sweep, single-instance only); its views
are built per viewer so the opponent's fleet layout never leaves the
server. The client polls the match snapshot (the in-memory SSE bus is
unreliable across dev module copies). Rewards on completion update the
callForFireVersus profile group, pay XP and chips, and emit
minigame:call-for-fire-versus.
Wires the game into the registry (new multiplayer category + enum
migration), the sidebar grouping, the command palette, and the profile
XP aggregation. The registry row seed is split into its own migration
because Postgres forbids using a freshly added enum value in the same
transaction.
Verified: 21 new tests (engine + registry) plus the wider minigame suite
pass; tsc clean; a live two-player award run confirmed XP, chips, and
the event.
- Optional `estimatedReleaseDate` (date and time) on the minigames registry,
with a named migration and regenerated types.
- Sidebar: an `upcoming` game renders greyed out and non-interactive, with a
tooltip carrying the estimate and a live countdown. It is a hoverable row
rather than a disabled menu item, because a disabled Radix item sets
`pointer-events: none` and would swallow the tooltip.
- Page gate: each minigame page checks its registry status and renders
`MinigameComingSoon` instead of the arena while the game is upcoming, so a
typed URL cannot reach unfinished gameplay. The date is display only: the
game goes live when an admin flips `status` to active.
- Leaderboards exclude upcoming games, so they get neither a tab nor a board.
- Pure `countdown.ts` formatter plus a client ticker that computes the
remaining time only after mount, avoiding an SSR hydration mismatch.
Note: `registry.ts`, `payload-types.ts` and `migrations/index.ts` also carry
the Call for Fire registry row and its generated types. That feature was
committed as 6d6a5fb and announced a separate commit for those files; they are
included here because they are entangled with these edits in the same files.
Tests: pure countdown unit tests, registry/gate/leaderboard integration tests,
and an e2e that seeds an upcoming row, hovers the disabled sidebar entry to
assert the tooltip, and checks the coming-soon gate.
Adds the callForFire row to BUILTIN_MINIGAMES (core, period-scored,
order 6; poker/blackjack shift to 7/8), adds it to CORE_MINIGAME_KEYS
period-scoring fallback, and maps the key to the callForFire profile
group. Regenerates payload-types and the generated db schema, and
registers the add_call_for_fire_minigame migration.
Bracket hidden artillery targets across patrol/checkpoint/compound
difficulties. Pure rules in src/lib/minigames/call-for-fire.ts (compass
bearing observer reports, ADD/DROP + RIGHT/LEFT corrections, scoring,
distance-to-target accuracy, injected rng) with a 23-case spec.
Wires the game into the minigame ecosystem: submit action validates the
run, updates the profile callForFire group, pays out XP and chips, emits
minigame:call-for-fire, and records the period ledger entry (accuracy is
distance-to-target on a win, null on a loss). Adds the game page with
period standings and an all-time board, a command palette entry, the
Target icon, and the profiles XP aggregation.
The registry row and regenerated payload types land with the minigame
registry changes in a separate commit.
Phase 8 of the minigame periods feature:
- e2e smoke: the unified leaderboards page shows the period boards, the Core
game tabs and the achievements section; switching to All-Time reveals the
cardtable games; a game page shows its anchored period standings card.
(Passes with the bundled Chromium via E2E_BROWSER_PATH; Vivaldi crashes under
automation, as the root guide warns.)
- Integration coverage already added alongside each phase: entry recording,
the close pipeline and awards, month/year windows, the registry, the read
model and the in-app notifications, plus a pure bot renderer test.
- Document the periods, achievements and registry invariants in the minigames
AGENTS guide.