Skip to content

feat: show existing look-alike boxes and items while naming a new one - #80

Merged
nemsys merged 4 commits into
mainfrom
feature/duplicate-name-hints
Oct 18, 2026
Merged

nemsys merged 4 commits into
mainfrom
feature/duplicate-name-hints

Conversation

@nemsys

@nemsys nemsys commented Oct 18, 2026

Copy link
Copy Markdown
Member

The add-box and add-item forms now list existing entries with a similar name under the name field (new shared NameInputWithMatches component, Fuse on name, threshold 0.3, from 2 characters, up to 5 rows), so duplicates are flagged rather than blocked; picking a row closes the form and opens the existing box (via #box/, so Back returns to the list) or the existing item's edit modal. The form's own button still creates. Verified: npm run build passes; eslint on the changed files reports no new problems (the remaining errors in App.jsx and AddItemModal.jsx already exist on main). Not tested in a browser or on a device.

Assisted-by: claude-sonnet-5-5

Shared by the add-box and add-item forms so both warn about duplicates
the same way, with the combobox mechanics BoxPicker already uses.

Model: claude-opus-5-5 (effort=high)
Assisted-by: claude-opus-5-5
"Зимно яке" typed again used to become a second record; now the existing
one is listed under the name and opens in its edit form, where it can be
moved, instead.

Model: claude-opus-5-5 (effort=high)
Assisted-by: claude-opus-5-5
A box that already exists under a similar name is listed under the field
and opens directly, so the same box is not created twice.

Model: claude-opus-5-5 (effort=high)
Assisted-by: claude-opus-5-5
Model: claude-opus-5-5 (effort=high)
Assisted-by: claude-opus-5-5
@nemsys
nemsys merged commit 6382c7e into main Oct 18, 2026
1 check passed
@nemsys
nemsys deleted the feature/duplicate-name-hints branch October 18, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant