refactor(tags): unify suggestion source — one canonical DB-tag dropdown (#154) #209
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unifies the tag-suggestion system and fixes the confidence-% flicker in the Explore + view-modal tag rail.
Every suggestion is a canonical DB tag now (tagging-v2 #114: heads + CCIP score existing concept tags). The pre-heads apparatus for model-predicted tags that didn't exist in the DB —
creates_new_tag/raw_name/via_alias, the/suggestions/aliasendpoint +add_alias_and_accept,AliasPickerDialog, and the store'saliasAccept/removeAlias— was dead and is removed.The % flicker fix: the type-to-add dropdown was two row sources (server autocomplete + the image's ML suggestions) merged with a dedup that dropped the %-bearing suggestion row when the debounced server hit landed. Now it's ONE list of DB-tag matches, each annotated with the model's confidence (joined by
canonical_tag_id) when the tag was scored for this image. No dedup, no flicker; picking a suggested tag still records acceptance viaTagPanel.findPending.Single fetch:
score_imagenow reportsabove_thresholdper row (vs the head's own suggest cut, separate from the inclusion floor), so the rail makes onemin=0request and derives the panel (above-threshold) + dropdown (all, text-filtered) client-side. The two/suggestionscalls collapse to one.Kept: manual "Create 'X' as " for novel typed names; the alias table + tag-side alias admin + auto-apply alias matching. Net −316 lines across 14 files (
AliasPickerDialog.vuedeleted).Commit:
a444cf8. CI green on dev tip (run 2110: lint + backend unit + integration + frontend build).Post-merge: curator
:latestredeploy picks it up (no migration).🤖 Generated with Claude Code
https://claude.ai/code/session_01CgZP9v2otxVJymiYsnVuMy