From 7081e1139db3746224487affd6c2735c5ecdfefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Fri, 4 Sep 2026 15:11:06 +0100 Subject: [PATCH] the frontend has been failing to build since the cover was removed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removing `chooseCover` cut the wrong span and left an orphan `});` behind. Bun's parser refused the file, `rebuildFrontend()` failed at every boot, and the server went on serving the last bundle that built — 14:23. Every plugin change after that reached the disk, was merged, was restarted, and never reached a browser. Which is why the template preview looked unfixed twice: the fix was live on the server and absent from the page. The symptom of a failed frontend build is not an error anywhere a person looks — it is the previous build, working perfectly, being wrong. Also fixes a choice with `kind: null` — one that is not built yet — being filtered out by a list that only knows about the kinds that are. Co-Authored-By: Claude Opus 5 (1M context) --- web/sections/AddComponentDialog.tsx | 4 +++- web/sections/CollectionsPanel.tsx | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/sections/AddComponentDialog.tsx b/web/sections/AddComponentDialog.tsx index 0c3f72d..20cc6c4 100644 --- a/web/sections/AddComponentDialog.tsx +++ b/web/sections/AddComponentDialog.tsx @@ -130,7 +130,9 @@ export const AddComponentDialog = ({
- {CHOICES.filter((choice) => template || !SUBJECT_KINDS.includes(choice.kind)).map( + {/* `kind === null` is a choice that is not built yet — never a subject block, and it must not + be filtered out by a list that only knows about the ones that are. */} + {CHOICES.filter((choice) => template || choice.kind === null || !SUBJECT_KINDS.includes(choice.kind)).map( ({ kind, label, hint, Icon }) => (