From 67bc23c64e1065f395c0a26372c2757eaea0e123 Mon Sep 17 00:00:00 2001 From: Bonna Moon Date: Mon, 29 Jun 2026 18:12:05 -0500 Subject: [PATCH] =?UTF-8?q?v0.19.2=20=E2=80=94=20Combobox:=20always=20show?= =?UTF-8?q?=20"Add=20new=E2=80=A6"=20when=20allowCustom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously the "Add" option only appeared after typing a non-matching query, which wasn't discoverable. Now the combobox always shows "Add new…" at the bottom when allowCustom=true; clicking it focuses the search input so you can type the new name. Co-Authored-By: Claude Sonnet 4.6 --- src/components/ui/combobox.tsx | 35 +++++++++++++++++++++++----------- src/lib/changelog.ts | 7 +++++++ src/lib/version.ts | 2 +- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/components/ui/combobox.tsx b/src/components/ui/combobox.tsx index 55e26c3..3b3458a 100644 --- a/src/components/ui/combobox.tsx +++ b/src/components/ui/combobox.tsx @@ -110,20 +110,33 @@ export function Combobox({ options, value, onChange, placeholder = "Select…", ))} - {filtered.length === 0 && !showAdd && ( + {filtered.length === 0 && !allowCustom && (

{emptyText}

)} - {/* Add custom option */} - {showAdd && ( - + {/* Add custom option — shows as "Add '[query]'" when typing, or "+ New" hint when idle */} + {allowCustom && ( +
+ {showAdd ? ( + + ) : ( + + )} +
)} diff --git a/src/lib/changelog.ts b/src/lib/changelog.ts index c27e0c9..9914388 100644 --- a/src/lib/changelog.ts +++ b/src/lib/changelog.ts @@ -8,6 +8,13 @@ export type ChangelogEntry = { }; export const CHANGELOG: ChangelogEntry[] = [ + { + version: "0.19.2", + date: "2026-06-29", + changes: [ + "Pantry: \"Add new…\" now shows at the bottom of the Category and Subcategory dropdowns at all times — click it, type the new name, and it becomes the \"Add [name]\" option.", + ], + }, { version: "0.19.1", date: "2026-06-29", diff --git a/src/lib/version.ts b/src/lib/version.ts index bbd3986..7abd81f 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1,2 +1,2 @@ // Bump on every user-visible release. Changelog entries live in `src/lib/changelog.ts`. -export const APP_VERSION = "0.19.1"; +export const APP_VERSION = "0.19.2";