Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit c38a21867140d1971b44a8fbcfa113e23932c914
parent 0ffa42c2d5d8dad1a429928548f0b5bd49c215a3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 20:19:37 -0500

umtool: Insert a card after an entry names its index too (an id's variant twins) (redesign L6)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/inspector/TeaserInspector.tsx | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/umtool/components/projects/inspector/TeaserInspector.tsx b/umtool/components/projects/inspector/TeaserInspector.tsx @@ -68,7 +68,12 @@ export default function TeaserInspector({ project, block = null }: InspectorProp setSaid(null); setLines((ls) => ls.map((l, k) => (k === i ? { ...l, ...patch } : l))); }; - const posValue = () => (position === "end" ? "end" : position === "start" ? "start" : { after: position.slice("after:".length) }); + // "after:<id>@<at>": the entry's index names one of an id's twins (a variant's), as the writer's `at` does. + const posValue = () => { + if (position === "end" || position === "start") return position; + const m = /^after:(.*)@(\d+)$/.exec(position); + return m ? { after: m[1], at: Number(m[2]) } : { after: position.slice("after:".length) }; + }; const submit = async () => { setBusy(true); setSaid(null); @@ -110,7 +115,7 @@ export default function TeaserInspector({ project, block = null }: InspectorProp <option value="end">At the end (a closing card)</option> <option value="start">At the start (a cold open)</option> {view.entries.map((e) => ( - <option key={`${e.id}@${e.at}`} value={`after:${e.id}`}> + <option key={`${e.id}@${e.at}`} value={`after:${e.id}@${e.at}`}> After {e.id} ({e.type}{e.label ? `: ${String(e.label).slice(0, 40)}` : ""}) </option> ))}