From 3af9e7b30611b357d32ad028e651d13425c15e87 Mon Sep 17 00:00:00 2001 From: minimus7 Date: Wed, 11 Nov 2026 10:10:39 -0600 Subject: [PATCH] Budgets: the first list shows every spending category, each with an X to remove it It only showed categories you spend $10+ a month on. Now every spending category is listed, biggest first, so nothing is hidden. Co-Authored-By: Claude Opus 5.5 --- src/components/BudgetEditor.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/BudgetEditor.tsx b/src/components/BudgetEditor.tsx index 1d9117f..0c7a366 100644 --- a/src/components/BudgetEditor.tsx +++ b/src/components/BudgetEditor.tsx @@ -91,8 +91,9 @@ export function BudgetEditor({ basis, cats: all, initial, year, range, today, in apply({ [c.id]: c.suggested }, c.suggested ? `Added ${c.label} ยท ${money0(c.suggested)}` : undefined); } - // Fills main categories that have no budget yet; amounts you set stay. - const suggestion = cats.filter((c) => c.main && !(c.id in budgets)).sort((a, b) => b.suggested - a.suggested); + // The first-time list: every spending category with no budget yet, biggest first, so nothing is hidden and the X + // on each row takes off what you don't want. Amounts you set stay. + const suggestion = cats.filter((c) => !(c.id in budgets)).sort((a, b) => b.suggested - a.suggested || a.label.localeCompare(b.label)); // The Suggest sheet: budgets well off from real spending, plus main categories with none yet. const retuned = retune(cats, budgets); // Saves exactly what the suggestion list shows after any edits.