character-fandom tag association system

Link character tags to fandom tags via fandom_id FK with auto-apply
behavior. Adding character:Saber (Fate) auto-creates fandom:Fate and
applies it to the image. Renaming a fandom cascades to all linked
characters. Includes set-fandom endpoint for retroactive association
and fandom selector dropdown in the tag editor UI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 19:53:02 -05:00
parent 3a30b876a2
commit bf20eeab5c
6 changed files with 362 additions and 18 deletions
+14
View File
@@ -135,6 +135,20 @@
</select>
</div>
<div class="form-group" id="fandomGroup" style="display: none;">
<label class="form-label" for="editTagFandom">Fandom</label>
<div style="position: relative;">
<input type="text"
id="editTagFandom"
class="form-input"
placeholder="Type to search fandoms..."
autocomplete="off">
<input type="hidden" id="editTagFandomId">
<div id="fandomAutocomplete" class="tag-autocomplete" style="display: none;"></div>
</div>
<small class="form-hint">Select an existing fandom or type a new one. Leave empty to remove fandom.</small>
</div>
<div class="form-actions">
<button type="submit" class="btn primary-btn">Save Changes</button>
<button type="button" id="tagDeleteBtn" class="btn danger-btn">Delete Tag</button>