[PR #712] [MERGED] Add tag import controls and bulk tag removal #4739

Closed
opened 2026-10-22 04:10:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/712
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte

Base: main ← Head: feat/issue-694-tag-import-controls


📝 Commits (2)

  • 475a7df Add tag import controls and bulk tag removal
  • be81ed5 Address tag import review feedback

📊 Changes

13 files changed (+328 additions, -13 deletions)

View changed files

➕ docs/pr-evidence/issue-694/bot-browser-tag-options.png (+0 -0)
➕ docs/pr-evidence/issue-694/bulk-import-tag-options.png (+0 -0)
➕ docs/pr-evidence/issue-694/character-editor-tags-after.png (+0 -0)
➕ docs/pr-evidence/issue-694/character-editor-tags-before.png (+0 -0)
➕ docs/pr-evidence/issue-694/import-character-modal.png (+0 -0)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+45 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+23 -4)
📝 packages/client/src/components/modals/BotBrowserModal.tsx (+45 -1)
📝 packages/client/src/components/modals/ImportCharacterModal.tsx (+47 -0)
📝 packages/client/src/components/modals/STBulkImportModal.tsx (+49 -2)
📝 packages/server/src/routes/import.routes.ts (+59 -3)
📝 packages/server/src/services/import/st-bulk.importer.ts (+17 -3)
📝 packages/server/src/services/import/st-character.importer.ts (+43 -0)

📄 Description

Linked issue

Closes #694

Why this change

Imported character cards from Chub, Janitor, or similar sources can bring in many origin-site tags. Users need a way to choose whether those tags come into Marinara, and a faster way to clear tags from an existing character card.

What changed

  • Added tag import modes for SillyTavern character import: all tags, no tags, or existing Marinara tags only.
  • Wired tag import mode through direct character import, bot browser import, and SillyTavern bulk import.
  • Added a Remove All action to the character editor tag section.
  • Added UI evidence screenshots for the import modal, bot browser, bulk import preview, and tag removal flow.

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

Manual verification notes

Codex-run verification:

  • pnpm --filter @marinara-engine/client exec tsc -b passed.
  • pnpm check passed.
  • git diff --check passed with only normal CRLF warnings.
  • node scratch/verify-issue-694-tag-import.mjs passed.
  • Headless Chrome/CDP manual verification covered:
    • Import Character modal tag options.
    • Active Bot Browser detail tag options.
    • SillyTavern bulk import preview tag options after a real server scan of a scratch ST-style folder.
    • Character editor Remove All clearing seeded character tags.

Human follow-up recommended:

  • Manually verify the tag import controls in the desktop app before checking the validation boxes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or version changes are included. This is scoped to import behavior and character tag editing.

UI evidence (if applicable)

Import Character modal:

Import Character modal tag controls

Bot Browser tag controls:

Bot Browser tag controls

Bulk import tag controls:

Bulk import tag controls

Character editor before removing tags:

Character editor before Remove All

Character editor after removing tags:

Character editor after Remove All

Summary by CodeRabbit

  • New Features
    • Added configurable tag import mode for character imports (all / none / existing) across single, batch, and bulk import flows.
    • Added an "Imported tags" selector in import dialogs and a "Remove All" button in the character editor for bulk tag removal.
    • Tag import mode is included in import requests so selections persist across workflows.

Review Change Stack


🔄 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/712 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `feat/issue-694-tag-import-controls` --- ### 📝 Commits (2) - [`475a7df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/475a7df2406a4e14559c31bce9b32c1046cbc532) Add tag import controls and bulk tag removal - [`be81ed5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be81ed5550462f4916ff10e315ed786e441bc9e9) Address tag import review feedback ### 📊 Changes **13 files changed** (+328 additions, -13 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-694/bot-browser-tag-options.png` (+0 -0) ➕ `docs/pr-evidence/issue-694/bulk-import-tag-options.png` (+0 -0) ➕ `docs/pr-evidence/issue-694/character-editor-tags-after.png` (+0 -0) ➕ `docs/pr-evidence/issue-694/character-editor-tags-before.png` (+0 -0) ➕ `docs/pr-evidence/issue-694/import-character-modal.png` (+0 -0) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+45 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+23 -4) 📝 `packages/client/src/components/modals/BotBrowserModal.tsx` (+45 -1) 📝 `packages/client/src/components/modals/ImportCharacterModal.tsx` (+47 -0) 📝 `packages/client/src/components/modals/STBulkImportModal.tsx` (+49 -2) 📝 `packages/server/src/routes/import.routes.ts` (+59 -3) 📝 `packages/server/src/services/import/st-bulk.importer.ts` (+17 -3) 📝 `packages/server/src/services/import/st-character.importer.ts` (+43 -0) </details> ### 📄 Description ## Linked issue Closes #694 ## Why this change Imported character cards from Chub, Janitor, or similar sources can bring in many origin-site tags. Users need a way to choose whether those tags come into Marinara, and a faster way to clear tags from an existing character card. ## What changed - Added tag import modes for SillyTavern character import: all tags, no tags, or existing Marinara tags only. - Wired tag import mode through direct character import, bot browser import, and SillyTavern bulk import. - Added a `Remove All` action to the character editor tag section. - Added UI evidence screenshots for the import modal, bot browser, bulk import preview, and tag removal flow. ## 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` ### Manual verification notes Codex-run verification: - `pnpm --filter @marinara-engine/client exec tsc -b` passed. - `pnpm check` passed. - `git diff --check` passed with only normal CRLF warnings. - `node scratch/verify-issue-694-tag-import.mjs` passed. - Headless Chrome/CDP manual verification covered: - Import Character modal tag options. - Active Bot Browser detail tag options. - SillyTavern bulk import preview tag options after a real server scan of a scratch ST-style folder. - Character editor `Remove All` clearing seeded character tags. Human follow-up recommended: - Manually verify the tag import controls in the desktop app before checking the validation boxes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or version changes are included. This is scoped to import behavior and character tag editing. ## UI evidence (if applicable) Import Character modal: ![Import Character modal tag controls](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/475a7df2406a4e14559c31bce9b32c1046cbc532/docs/pr-evidence/issue-694/import-character-modal.png) Bot Browser tag controls: ![Bot Browser tag controls](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/475a7df2406a4e14559c31bce9b32c1046cbc532/docs/pr-evidence/issue-694/bot-browser-tag-options.png) Bulk import tag controls: ![Bulk import tag controls](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/475a7df2406a4e14559c31bce9b32c1046cbc532/docs/pr-evidence/issue-694/bulk-import-tag-options.png) Character editor before removing tags: ![Character editor before Remove All](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/475a7df2406a4e14559c31bce9b32c1046cbc532/docs/pr-evidence/issue-694/character-editor-tags-before.png) Character editor after removing tags: ![Character editor after Remove All](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/475a7df2406a4e14559c31bce9b32c1046cbc532/docs/pr-evidence/issue-694/character-editor-tags-after.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added configurable tag import mode for character imports (all / none / existing) across single, batch, and bulk import flows. * Added an "Imported tags" selector in import dialogs and a "Remove All" button in the character editor for bulk tag removal. * Tag import mode is included in import requests so selections persist across workflows. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/712) <!-- 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-22 04:10:14 +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#4739
No description provided.