Campaign Editor UI — tracking (done + remaining) #159
Labels
No labels
bug
campaign-editor-ui
dependencies
design
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/chess-tactics#159
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracking issue for the campaign editor UI (
/campaigns-next). Context for the next agent.Files:
frontend/src/ui/CampaignEditor.tsx,frontend/src/ui/LevelInfoCompact.tsx, the.ce-*block infrontend/src/style.css(between.ce-screen {and the generic@media (prefers-reduced-motion)).Working agreement / lessons (read first)
Settings.tsx+.settings-*CSS) and copy it — it's the accepted reference. Rounds were lost inventing backgrounds/frames instead of matching Settings (e.g. panels arepanel.png 24 fill / 16px roundwith a dark fill from the frame art — no invented gradient/lighter variant; section heads are the gold#c9a877eyebrow + a fading gold gradient rule — never a bright cyan divider).border-image; never hand-roll bg/border/gradient/box-shadow as chrome.--ds-text-*/--ds-font-*only, no rawfont-size/font-family. Colors go through--ce-*tokens.npm run shothandles ambient (rain) pages now; for tiny elements use a high-DPR crop (frontend/tmp-shots/zoom.mjs <url> <css-sel> <out> 5).Done — merged (PR #154)
border-image;campaignEditorAssetsdeleted.Done — branch
claude/naughty-bhabha-a129a5(PR linked below)--ce-*tokens (ally/enemy, label, cyan-bright, slate, gold-bright, eyebrow) — killed 6 forked cyans / 4 golds / duplicated ally-enemy.border-image; skew gimmick + ~50 lines of dead.ce-brandCSS removed.row-activepalette swap (ADR-0018), replacing the interim cyan ring.panel.pngframe + plain ▲/▼/✕ glyphs; retired the mis-assembled kiticon-button.png/-active.png(manifest regenerated); trimmed deadCE_ICONS.Left to do (structural/UX — the user owns these; confirm before redesigning)
A multi-agent audit surfaced these; they verge on restructuring rather than pure compliance:
.ce-mid-actionsmove vs footer Delete Level (3× duplication); Save duplicated in topbar + footer. Keep one locus per action.settings-rowpattern) instead of the reinventeddlwith raw border-left dividers.clamp()spacing tokens Settings uses..ce-icon-buttonrule block (low).Deliberately NOT doing
field-select/field-inputrows) stays OUT — editing belongs in the level editor.Related bugs (separate — in the level editor
/edit, not this UI)/edittheme dropdown is dead (hardcoded "Grassland",onChangeno-op)./editbuildLevel()writeszones: []→ saving a level destroys its zones (data loss). A spawned task exists for this.Reference
frontend/public/assets/artwork/inspiration/ui-screen-concepts/02-campaign-editor.pngLanded two of the three remaining items via #171 (squash-merged):
✅ Stat strip → kit rows — Chapters/Levels/Difficulty are now
row.png-framed.ce-stat-rows (settings-row pattern, editor-scoped--ce-*tokens), replacing the<dl>+ rawborder-leftdividers. Visually confirmed.✅ Merge duplicate
.ce-icon-button— two back-to-back base blocks collapsed into one.⏹️ Spacing → tokens: closed without doing it. Investigation found the premise doesn't hold — the
--ds-space-*tokens are fixed px (notclamp()) and Settings itself doesn't consume them, so "normalize to the spacing tokens Settings uses" isn't a real target. Tokenizing the editor ahead of Settings would make it more tokenized than the reference (backwards); snapping off-scale values (6/7/9/10/14/18px) to the 6-step scale is an unmotivated visual change. A real spacing system should be a holistic Settings-first design-system pass, tracked separately if wanted.