[PR #7428] [MERGED] feat(characters): autocomplete existing tags #7729

Closed
opened 2026-10-24 04:06:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7428
Author: @minikkeuen
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/character-tag-autocomplete


📝 Commits (5)

  • 7630bda feat(characters): autocomplete existing tags
  • 205d61e docs(changelog): mention character tag autocomplete
  • 4bd696e Merge origin/staging into feat/character-tag-autocomplete
  • f413567 fix(characters): address tag autocomplete review
  • 33b864c fix(characters): name the tag combobox for screen readers

📊 Changes

2 files changed (+171 additions, -16 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+136 -15)
📝 scripts/regressions/character-bulk-tags.regression.ts (+35 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7427

Why this change

  • Adding tags to a character currently requires manually typing tag names, even when those tags already exist in the character library.
  • This makes existing tags harder to discover and can lead to inconsistent naming or duplicate tags.
  • Autocomplete makes it easier to find and reuse existing tags directly from the Character Editor.

What changed

  • Added autocomplete suggestions to the tag input in Character Editor → Metadata.
  • Suggestions are filtered as the user types and sorted by usage frequency.
  • Displays the number of characters using each suggested tag.
  • Excludes tags already assigned to the current character.
  • Supports keyboard navigation (Arrow Up/Down, Enter, Escape).
  • Preserves manual tag creation and the existing character save behavior.
  • Reuses the existing character catalog and tag handling logic without database or API changes.
  • Updated CHANGELOG.md under [Unreleased].

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Additional validation:

  • pnpm build passes locally

Manual verification notes

  • Opened the Character Editor and checked the tag autocomplete UI in the Metadata tab.
  • Confirmed that the autocomplete dropdown displays correctly and can be used without visible issues.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Character tag autocomplete in the Metadata tab

Summary by CodeRabbit

  • New Features
    • Added tag suggestions in the character editor, ranked by catalog frequency and filtered against existing tags and the current draft.
    • Suggestions support mouse and keyboard selection, with controls to navigate or dismiss the list.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7428 **Author:** [@minikkeuen](https://github.com/minikkeuen) **Created:** 10/11/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/character-tag-autocomplete` --- ### 📝 Commits (5) - [`7630bda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7630bda0331d0b3abbe41635d061beb1b390f097) feat(characters): autocomplete existing tags - [`205d61e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/205d61e1bbca611ef65d9b20f1080d0033335b34) docs(changelog): mention character tag autocomplete - [`4bd696e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4bd696e724668d5021891d70f20467885665e4d8) Merge origin/staging into feat/character-tag-autocomplete - [`f413567`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f413567afc5962aedcbc5f31557a043004bb09d4) fix(characters): address tag autocomplete review - [`33b864c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/33b864cbee81c8db1ecb2a6fe5f5aed5051e2699) fix(characters): name the tag combobox for screen readers ### 📊 Changes **2 files changed** (+171 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+136 -15) 📝 `scripts/regressions/character-bulk-tags.regression.ts` (+35 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #7427 ## Why this change - Adding tags to a character currently requires manually typing tag names, even when those tags already exist in the character library. - This makes existing tags harder to discover and can lead to inconsistent naming or duplicate tags. - Autocomplete makes it easier to find and reuse existing tags directly from the Character Editor. ## What changed - Added autocomplete suggestions to the tag input in Character Editor → Metadata. - Suggestions are filtered as the user types and sorted by usage frequency. - Displays the number of characters using each suggested tag. - Excludes tags already assigned to the current character. - Supports keyboard navigation (Arrow Up/Down, Enter, Escape). - Preserves manual tag creation and the existing character save behavior. - Reuses the existing character catalog and tag handling logic without database or API changes. - Updated `CHANGELOG.md` under `[Unreleased]`. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` Additional validation: - [x] `pnpm build` passes locally ### Manual verification notes - Opened the Character Editor and checked the tag autocomplete UI in the Metadata tab. - Confirmed that the autocomplete dropdown displays correctly and can be used without visible issues. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <img width="614" height="332" alt="Character tag autocomplete in the Metadata tab" src="https://github.com/user-attachments/assets/86ecfe84-3251-4945-99b4-a49ce0f898b1" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added tag suggestions in the character editor, ranked by catalog frequency and filtered against existing tags and the current draft. * Suggestions support mouse and keyboard selection, with controls to navigate or dismiss the list. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7729
No description provided.