From d64cf3514e5ff1ddb1c7f3ddac9a769db3e7dde0 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 17 Nov 2026 23:12:38 +0100 Subject: Phase 5: campaign meta, notes, special rules (M5) Web: - Note rows: create/edit menu (text, 12-swatch palette, player/monster link with per-standee selection, delete) with the reference's create-vs-edit commit semantics; row rendering with target-derived gradient colour, link indent + connector, standee N:/All: prefixes, tap-to-edit; whole-list drag-to-reorder (reorderList); quick per-figure note (setFigureNote) from the status menu - Special monsters: Ice Wraith "Switch Form" (deck == "Ice Wraith" gate), summon mark toggle (round-green/summon standee artwork, standee-nr badges, per-owner grayscale), character summon boxes + AddSummonMenu (class summons gated by level and standee cap, item summons from summons.json) - Ally deck show/hide in the main menu (shouldShowAlliesDeck gate); settings "clear unlocked" + Special Unlocks menu - AddSectionMenu parity: search filter, findNrFromScenarioName numeric ordering, added sections greyed + no-op, #Random Dungeon label - gameData.ts: SummonModel, ClassData.summons, summons() fetch Server: - unlock_special_command_test (last command without a test; ally-deck hide and remove-sanctuary were already covered) PLAN.md: Phase 5 boxes checked, M5 progress-log entry --- web/src/lib/ui/NoteRow.svelte | 187 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 152 insertions(+), 35 deletions(-) (limited to 'web/src/lib/ui/NoteRow.svelte') diff --git a/web/src/lib/ui/NoteRow.svelte b/web/src/lib/ui/NoteRow.svelte index 34af63e..f237c13 100644 --- a/web/src/lib/ui/NoteRow.svelte +++ b/web/src/lib/ui/NoteRow.svelte @@ -1,57 +1,174 @@ -
-
- {#if editing} - { - if (e.key === 'Enter') commit(); - }} - /> - {:else} - - {/if} -
+
onEdit(item)} + onkeydown={(e) => { + if (e.key === 'Enter' || e.key === ' ') onEdit(item); + }} + style="margin-left: {linked ? 27 : 3}px; margin-right: 3px; + background: linear-gradient(180deg, {gradTop} 0%, {gradBottom} 100%); + border: 1.3px solid {borderCss}; + color: {fg}" +> + {linked ? '›' : '✎'} + {#if linked && targetIsMonster && target} + + {item.standeeNr > 0 ? item.standeeNr + ':' : t('noteRowAll') + ':'} + + {/if} + + {empty ? t('noteRowHint') : item.text} +
+ + -- cgit v1.3.1