[PR #6779] [MERGED] feat: compare duplicate characters and edit tags in bulk #7327

Closed
opened 2026-10-23 04:18:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6779
Author: @SirAdoni
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: contrib/6698-character-tools


📝 Commits (10+)

  • ec3f9ed feat: compare duplicate characters and edit tags in bulk
  • b9c5a88 Merge staging and preserve character comparison navigation
  • 2081576 Merge staging inventory update into character tools
  • b2b539d Merge commit '3355c32277' into contrib/6698-character-tools
  • 6b6c4b9 fix: preserve character selections during bulk tag edits
  • dfcfc73 Merge remote-tracking branch 'origin/staging' into codex/assigned-6779
  • 6417afc fix: reuse scalar Windows readiness checks from PR 6778
  • 5af688d fix: retain failed bulk tag selections for retry
  • 28c62dc fix: allow time for repeated server shutdown regression boots
  • ac0aa15 fix: bound terminal regression runner for sequential boots

📊 Changes

17 files changed (+1744 additions, -20 deletions)

View changed files

📝 CHANGELOG.md (+15 -0)
➕ e2e/character-library-tools.e2e.ts (+241 -0)
➕ packages/client/src/components/characters/CharacterBulkTagsModal.tsx (+273 -0)
➕ packages/client/src/components/characters/CharacterDuplicatesModal.tsx (+244 -0)
📝 packages/client/src/components/layout/AppShell.tsx (+65 -0)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+46 -10)
📝 packages/client/src/hooks/use-characters.ts (+62 -0)
📝 packages/client/src/localization/locales/en.json (+62 -0)
📝 packages/client/src/stores/ui.store.ts (+5 -0)
📝 packages/server/src/routes/characters.routes.ts (+107 -0)
📝 packages/shared/src/index.ts (+2 -0)
➕ packages/shared/src/utils/character-duplicates.ts (+190 -0)
➕ packages/shared/src/utils/character-tag-edits.ts (+115 -0)
➕ scripts/regressions/character-bulk-tags.regression.ts (+186 -0)
➕ scripts/regressions/character-duplicates.regression.ts (+78 -0)
➕ scripts/regressions/regression-timeout-policy.regression.mjs (+34 -0)
📝 scripts/run-regressions.mjs (+19 -10)

📄 Description

Linked issue

Closes #6807. Partial implementation of #6698; the umbrella issue remains open.

Why this change

Character collections need duplicate comparison and bulk tags that include every selected card, even when filters hide it.

What changed

  • Add duplicate comparison and bulk tag editing to the existing character library.
  • Use the existing compact catalog for hidden selections, and keep failed per-card updates atomic while continuing other selected cards.

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

pnpm check; focused duplicate/bulk-tag regressions; three desktop/mobile Chromium/WebKit browser cases; seven shell smoke cases and two desktop theme checks passed.

Independent review reproduced and fixed hidden-selection and partial-failure defects. See the current maintainer verification below for review and validation evidence.

Manual verification

Manually verify duplicate comparison and bulk tags across filters/pages, including one failed card and retry.

Automated browser evidence does not claim physical-device or manual container verification. Human checklist states are preserved.

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
  • Version/release files updated (only if this PR includes a version bump)

Added an Unreleased changelog entry. No release metadata or user-facing docs changed.

UI evidence

Browser evidence (download the HTML to view the embedded screenshots). Captions distinguish before/after captures from current feature screenshots.

Summary by CodeRabbit

  • New Features
    • Find and compare potentially duplicate characters in the character library.
    • Add, remove, or rename tags across multiple characters, with a preview of affected cards.
  • Improvements
    • Bulk tag edits can continue after individual batches fail; failed cards remain selected for retry.
  • Bug Fixes
    • Regression checks now work when launched through absolute or symlinked paths.
    • Extended the shutdown regression’s overall time allowance without changing per-case deadlines.

Maintainer verification

Published 66a815175 preserves the author's justified 270-second aggregate signal-test limit and fixes two confirmed problems. Bulk-tag HTTP failures now retain earlier successes, continue later batches, and keep only rejected card IDs for retry using the existing result shape. The runner canonicalizes its entry path so absolute paths through symlink directories execute instead of silently returning success; importing it from stdin remains safe.

A before-fix runner proof reproduced the silent skip. Retained subprocess coverage verifies nonempty canonical/symlink execution and safe import. Real browser coverage exercises successful 5000 cards, rejected 5000 cards, a successful final card, then a retry containing only the rejected IDs. Exact-head pnpm check, feature browsers 6/6, smoke 7/7, runner-entry and actual signal-shutdown regressions pass. Independent code review found no substantive issue.

The combined integration c5410d2c2 passes pnpm check, four focused regressions, and all nine affected browser cases across desktop Chromium, mobile Chromium and mobile WebKit. The final combined local CodeRabbit delta completed with zero findings across nine files.

Current-head hosted CodeRabbit and GitHub checks remain merge gates. Human validation checkboxes are unchanged.
Published 27c646d5a merges staging982cbb901. Only adjacent changelog additions required resolution; both were retained. All 14 feature-only files and 26 incoming staging-only files are unchanged from their respective parents, and shared AppShell, English catalog and exports match the automatic merge. Fresh pnpm check and the bulk-tag regression pass. Prior combined three-browser evidence covers the unchanged implementation.

Local build and container verification

Tested commit: 9c1c4a3b43. Full local pnpm check passed. The full Docker image built successfully and ran with synthetic data; HTTP readiness and embedded build commit were verified. These results do not claim completion of the remaining manual and UI edge-case checklist.

Interactive browser walkthroughs of the feature were completed against the running production container using synthetic fixtures, supported by focused automated browser checks. This was agent-operated browser interaction, not physical-device testing. The broader theme, empty-state and error-path checklist remains separate.

Completed UI verification

At 9c1c4a3b43, focused browser checks passed 6/6 across desktop Chromium, mobile Chromium and mobile WebKit, covering duplicate comparison, bulk tags and retrying only failed cards. Two supplemental empty-catalog checks passed and were visually inspected in light desktop and dark 390px-wide views: Search characters was visible, loading had completed and there was no horizontal document overflow. Production-container interaction verified comparison and persisted bulk-tag changes. These were agent-operated synthetic browser checks; no physical-device or real-provider testing is claimed.


🔄 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/6779 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `contrib/6698-character-tools` --- ### 📝 Commits (10+) - [`ec3f9ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ec3f9ed9cacf7108bf1eb51802b3ff7610a2da58) feat: compare duplicate characters and edit tags in bulk - [`b9c5a88`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b9c5a88d83a5201f2021cd60461fe10130413e0d) Merge staging and preserve character comparison navigation - [`2081576`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2081576fa6db80e93ad70631b1f295860d5eb782) Merge staging inventory update into character tools - [`b2b539d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b2b539d15ca9ba495a5517e20d2c970f992c670e) Merge commit '3355c32277f71d2d4aa2e4f84d4901c098047dec' into contrib/6698-character-tools - [`6b6c4b9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b6c4b926ee09c7c4edf6d3ba2b8fd7880f26a0d) fix: preserve character selections during bulk tag edits - [`dfcfc73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dfcfc7302775616947d813bc3f014c671c3ce8aa) Merge remote-tracking branch 'origin/staging' into codex/assigned-6779 - [`6417afc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6417afc012802bf9a9e8426cf19f45810015808e) fix: reuse scalar Windows readiness checks from PR 6778 - [`5af688d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5af688da4b540f517d8128f84fb8967ba179293d) fix: retain failed bulk tag selections for retry - [`28c62dc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/28c62dc564086bf3aa944cace8110356008e6102) fix: allow time for repeated server shutdown regression boots - [`ac0aa15`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ac0aa15c1c1e30f6788c04833ca723edac52f930) fix: bound terminal regression runner for sequential boots ### 📊 Changes **17 files changed** (+1744 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+15 -0) ➕ `e2e/character-library-tools.e2e.ts` (+241 -0) ➕ `packages/client/src/components/characters/CharacterBulkTagsModal.tsx` (+273 -0) ➕ `packages/client/src/components/characters/CharacterDuplicatesModal.tsx` (+244 -0) 📝 `packages/client/src/components/layout/AppShell.tsx` (+65 -0) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+46 -10) 📝 `packages/client/src/hooks/use-characters.ts` (+62 -0) 📝 `packages/client/src/localization/locales/en.json` (+62 -0) 📝 `packages/client/src/stores/ui.store.ts` (+5 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+107 -0) 📝 `packages/shared/src/index.ts` (+2 -0) ➕ `packages/shared/src/utils/character-duplicates.ts` (+190 -0) ➕ `packages/shared/src/utils/character-tag-edits.ts` (+115 -0) ➕ `scripts/regressions/character-bulk-tags.regression.ts` (+186 -0) ➕ `scripts/regressions/character-duplicates.regression.ts` (+78 -0) ➕ `scripts/regressions/regression-timeout-policy.regression.mjs` (+34 -0) 📝 `scripts/run-regressions.mjs` (+19 -10) </details> ### 📄 Description ## Linked issue Closes #6807. Partial implementation of #6698; the umbrella issue remains open. ## Why this change Character collections need duplicate comparison and bulk tags that include every selected card, even when filters hide it. ## What changed - Add duplicate comparison and bulk tag editing to the existing character library. - Use the existing compact catalog for hidden selections, and keep failed per-card updates atomic while continuing other selected cards. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] 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` pnpm check; focused duplicate/bulk-tag regressions; three desktop/mobile Chromium/WebKit browser cases; seven shell smoke cases and two desktop theme checks passed. Independent review reproduced and fixed hidden-selection and partial-failure defects. See the current maintainer verification below for review and validation evidence. ### Manual verification Manually verify duplicate comparison and bulk tags across filters/pages, including one failed card and retry. Automated browser evidence does not claim physical-device or manual container verification. Human checklist states are preserved. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) Added an Unreleased changelog entry. No release metadata or user-facing docs changed. ## UI evidence [Browser evidence](https://gist.github.com/SpicyMarinara/d9e0eaedb27491d62e933689f88bb9ff) (download the HTML to view the embedded screenshots). Captions distinguish before/after captures from current feature screenshots. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Find and compare potentially duplicate characters in the character library. * Add, remove, or rename tags across multiple characters, with a preview of affected cards. * **Improvements** * Bulk tag edits can continue after individual batches fail; failed cards remain selected for retry. * **Bug Fixes** * Regression checks now work when launched through absolute or symlinked paths. * Extended the shutdown regression’s overall time allowance without changing per-case deadlines. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- maintainer-final-review --> ### Maintainer verification Published 66a815175 preserves the author's justified 270-second aggregate signal-test limit and fixes two confirmed problems. Bulk-tag HTTP failures now retain earlier successes, continue later batches, and keep only rejected card IDs for retry using the existing result shape. The runner canonicalizes its entry path so absolute paths through symlink directories execute instead of silently returning success; importing it from stdin remains safe. A before-fix runner proof reproduced the silent skip. Retained subprocess coverage verifies nonempty canonical/symlink execution and safe import. Real browser coverage exercises successful 5000 cards, rejected 5000 cards, a successful final card, then a retry containing only the rejected IDs. Exact-head pnpm check, feature browsers 6/6, smoke 7/7, runner-entry and actual signal-shutdown regressions pass. Independent code review found no substantive issue. The combined integration c5410d2c2 passes pnpm check, four focused regressions, and all nine affected browser cases across desktop Chromium, mobile Chromium and mobile WebKit. The final combined local CodeRabbit delta completed with zero findings across nine files. Current-head hosted CodeRabbit and GitHub checks remain merge gates. Human validation checkboxes are unchanged. Published 27c646d5a merges staging982cbb901. Only adjacent changelog additions required resolution; both were retained. All 14 feature-only files and 26 incoming staging-only files are unchanged from their respective parents, and shared AppShell, English catalog and exports match the automatic merge. Fresh pnpm check and the bulk-tag regression pass. Prior combined three-browser evidence covers the unchanged implementation. <!-- /maintainer-final-review --> <!-- local-validation-20260928 --> ### Local build and container verification Tested commit: 9c1c4a3b432a909627d0e4052fc06dccce0eae38. Full local pnpm check passed. The full Docker image built successfully and ran with synthetic data; HTTP readiness and embedded build commit were verified. These results do not claim completion of the remaining manual and UI edge-case checklist. <!-- /local-validation-20260928 --> <!-- interactive-validation-20260928 --> Interactive browser walkthroughs of the feature were completed against the running production container using synthetic fixtures, supported by focused automated browser checks. This was agent-operated browser interaction, not physical-device testing. The broader theme, empty-state and error-path checklist remains separate. <!-- /interactive-validation-20260928 --> ### Completed UI verification At 9c1c4a3b432a909627d0e4052fc06dccce0eae38, focused browser checks passed 6/6 across desktop Chromium, mobile Chromium and mobile WebKit, covering duplicate comparison, bulk tags and retrying only failed cards. Two supplemental empty-catalog checks passed and were visually inspected in light desktop and dark 390px-wide views: Search characters was visible, loading had completed and there was no horizontal document overflow. Production-container interaction verified comparison and persisted bulk-tag changes. These were agent-operated synthetic browser checks; no physical-device or real-provider testing is claimed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:41 +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#7327
No description provided.