[PR #86] [MERGED] Import, export, and library workflow expansion #4454

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/86
Author: @TheLonelyDevil9
Created: 4/14/2026
Status: ✅ Merged
Merged: 4/16/2026
Merged by: @SpicyMarinara

Base: codex/core-safety-and-ux ← Head: codex/import-export-and-library-workflows


📝 Commits (1)

  • e447114 import: expand bulk workflows and preserve source metadata

📊 Changes

28 files changed (+2469 additions, -640 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+83 -2)
📝 packages/client/src/components/modals/ImportCharacterModal.tsx (+148 -84)
📝 packages/client/src/components/modals/ImportLorebookModal.tsx (+82 -42)
📝 packages/client/src/components/modals/ImportPersonaModal.tsx (+86 -61)
📝 packages/client/src/components/modals/ImportPresetModal.tsx (+84 -42)
📝 packages/client/src/components/modals/STBulkImportModal.tsx (+339 -156)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+151 -6)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+147 -25)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+117 -2)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+111 -7)
📝 packages/client/src/lib/api-client.ts (+28 -0)
📝 packages/server/src/routes/backup.routes.ts (+44 -23)
📝 packages/server/src/routes/characters.routes.ts (+197 -5)
📝 packages/server/src/routes/chats.routes.ts (+17 -2)
📝 packages/server/src/routes/import.routes.ts (+152 -32)
📝 packages/server/src/routes/lorebooks.routes.ts (+50 -1)
📝 packages/server/src/routes/prompts.routes.ts (+54 -1)
➕ packages/server/src/services/import/import-timestamps.ts (+90 -0)
📝 packages/server/src/services/import/marinara.importer.ts (+77 -22)
📝 packages/server/src/services/import/st-bulk.importer.ts (+169 -51)

...and 8 more files

📄 Description

Summary

This stacked PR combines the import/export, selective bulk workflow, and metadata-preservation work into one coherent review slice.

What this fixes

  • adds batch character import plus multi-file import support across characters, presets, lorebooks, and personas
  • adds selective SillyTavern import by item with stable scan descriptors and built-in preset auto-uncheck when detection is confident
  • adds embedded lorebook import/reimport with stable character-side linkage to avoid duplicate lorebooks
  • adds bulk selection and ZIP export across characters, presets, lorebooks, and personas
  • replaces character preview descriptions with creator/version/card-spec metadata while keeping description searchable
  • preserves trustworthy source modification timestamps across imported characters, personas, lorebooks, presets, chats, backup/native imports, and ST chat messages

Why this is being submitted

  • these features all build on the same import/export and metadata plumbing and are safer to review together than as many tiny overlapping PRs
  • bundling them keeps the user-facing content-management workflow coherent: scan, selectively import, reimport embedded assets, bulk export, and sort correctly immediately after import
  • the combined PR still stays reviewable because it is largely constrained to import routes, storage timestamp plumbing, and the entity management panels/modals

Verification

  • pnpm -C packages/client exec tsc --noEmit
  • pnpm -C packages/server exec tsc --noEmit
  • pnpm -C packages/client run lint
  • pnpm -C packages/server run lint

Client lint still reports 5 pre-existing warnings outside this PR's touched scope in BotBrowserView.tsx, ChatSetupWizard.tsx, and QuickPersonaSwitcher.tsx.


🔄 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/86 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `codex/core-safety-and-ux` ← **Head:** `codex/import-export-and-library-workflows` --- ### 📝 Commits (1) - [`e447114`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e44711455d4fa277190ff8a01c0aaab016a4619b) import: expand bulk workflows and preserve source metadata ### 📊 Changes **28 files changed** (+2469 additions, -640 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+83 -2) 📝 `packages/client/src/components/modals/ImportCharacterModal.tsx` (+148 -84) 📝 `packages/client/src/components/modals/ImportLorebookModal.tsx` (+82 -42) 📝 `packages/client/src/components/modals/ImportPersonaModal.tsx` (+86 -61) 📝 `packages/client/src/components/modals/ImportPresetModal.tsx` (+84 -42) 📝 `packages/client/src/components/modals/STBulkImportModal.tsx` (+339 -156) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+151 -6) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+147 -25) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+117 -2) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+111 -7) 📝 `packages/client/src/lib/api-client.ts` (+28 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+44 -23) 📝 `packages/server/src/routes/characters.routes.ts` (+197 -5) 📝 `packages/server/src/routes/chats.routes.ts` (+17 -2) 📝 `packages/server/src/routes/import.routes.ts` (+152 -32) 📝 `packages/server/src/routes/lorebooks.routes.ts` (+50 -1) 📝 `packages/server/src/routes/prompts.routes.ts` (+54 -1) ➕ `packages/server/src/services/import/import-timestamps.ts` (+90 -0) 📝 `packages/server/src/services/import/marinara.importer.ts` (+77 -22) 📝 `packages/server/src/services/import/st-bulk.importer.ts` (+169 -51) _...and 8 more files_ </details> ### 📄 Description ## Summary This stacked PR combines the import/export, selective bulk workflow, and metadata-preservation work into one coherent review slice. ### What this fixes - adds batch character import plus multi-file import support across characters, presets, lorebooks, and personas - adds selective SillyTavern import by item with stable scan descriptors and built-in preset auto-uncheck when detection is confident - adds embedded lorebook import/reimport with stable character-side linkage to avoid duplicate lorebooks - adds bulk selection and ZIP export across characters, presets, lorebooks, and personas - replaces character preview descriptions with creator/version/card-spec metadata while keeping description searchable - preserves trustworthy source modification timestamps across imported characters, personas, lorebooks, presets, chats, backup/native imports, and ST chat messages ### Why this is being submitted - these features all build on the same import/export and metadata plumbing and are safer to review together than as many tiny overlapping PRs - bundling them keeps the user-facing content-management workflow coherent: scan, selectively import, reimport embedded assets, bulk export, and sort correctly immediately after import - the combined PR still stays reviewable because it is largely constrained to import routes, storage timestamp plumbing, and the entity management panels/modals ## Verification - `pnpm -C packages/client exec tsc --noEmit` - `pnpm -C packages/server exec tsc --noEmit` - `pnpm -C packages/client run lint` - `pnpm -C packages/server run lint` Client lint still reports 5 pre-existing warnings outside this PR's touched scope in `BotBrowserView.tsx`, `ChatSetupWizard.tsx`, and `QuickPersonaSwitcher.tsx`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:43 +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#4454
No description provided.