From 42b1340324623bd83b5365f4b9d850906f224b5a Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 26 May 2026 21:00:12 -0400 Subject: [PATCH] =?UTF-8?q?fix(tag-prefix):=20drop=20artist/meta/rating=20?= =?UTF-8?q?from=20KNOWN=5FKINDS=20=E2=80=94=20artist=20tags=20retired=20in?= =?UTF-8?q?=20FC-2d-vii-c=20(provenance=20is=20its=20own=20axis),=20meta/r?= =?UTF-8?q?ating=20retired=20by=20operator=202026-05-26.=20User-typeable?= =?UTF-8?q?=20prefixes=20now=20just=20character/fandom/series.=20Frontend?= =?UTF-8?q?=20placeholder=20+=20icon=20map=20+=20client-side=20mirror=20up?= =?UTF-8?q?dated;=20new=20test=20confirms=20retired=20prefixes=20parse=20a?= =?UTF-8?q?s=20literal=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- backend/app/utils/tag_prefix.py | 13 +++++++----- .../src/components/modal/TagAutocomplete.vue | 7 +++---- tests/test_tag_prefix.py | 20 ++++++++++++++----- 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/backend/app/utils/tag_prefix.py b/backend/app/utils/tag_prefix.py index 67ad90b..ccdf38f 100644 --- a/backend/app/utils/tag_prefix.py +++ b/backend/app/utils/tag_prefix.py @@ -10,15 +10,18 @@ KNOWN_KINDS keeps its colon as literal text. from __future__ import annotations # Kinds the user can type as a prefix at the input boundary. -# `general` is intentionally excluded — it's the default for un-prefixed -# input. `archive` and `post` are system-managed and never user-typed. +# Exclusions: +# - `general` is the default for un-prefixed input (never typed as prefix) +# - `archive`, `post` are system-managed +# - `artist` was retired in FC-2d-vii-c — artists are first-class +# entities (Artist row + ImageRecord.artist_id), browsed via the +# provenance axis rather than as tags. See project_provenance_separation. +# - `meta`, `rating` retired as user-typeable per operator 2026-05-26 — +# content classification only needs character/fandom/series. KNOWN_KINDS: frozenset[str] = frozenset({ - "artist", "character", "fandom", "series", - "meta", - "rating", }) diff --git a/frontend/src/components/modal/TagAutocomplete.vue b/frontend/src/components/modal/TagAutocomplete.vue index 5516cc7..e074488 100644 --- a/frontend/src/components/modal/TagAutocomplete.vue +++ b/frontend/src/components/modal/TagAutocomplete.vue @@ -2,7 +2,7 @@