[PR #2037] [MERGED] Fix export toast feedback #5403

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2037
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2001-export-toast-feedback


📝 Commits (2)

  • d46c447 Fix export toast feedback
  • be7357e Refresh PR metadata for discovery check

📊 Changes

8 files changed (+71 additions, -15 deletions)

View changed files

📝 src/features/catalog/characters/components/CharacterEditorDialogs.tsx (+10 -5)
📝 src/features/catalog/chats/hooks/use-bulk-export-chats.ts (+10 -1)
📝 src/features/catalog/chats/hooks/use-chats.ts (+9 -0)
📝 src/features/catalog/lorebooks/components/editor/LorebookEditor.tsx (+3 -2)
📝 src/features/catalog/personas/components/editor/PersonaEditor.tsx (+5 -1)
📝 src/features/catalog/presets/components/PresetEditor.tsx (+6 -1)
📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+12 -5)
➕ src/features/shared/lib/export-feedback.ts (+16 -0)

📄 Description

Linked issue

Closes #2001

Why this change

  • Several export flows triggered downloads without durable in-app feedback, so users could miss whether an export completed when the browser download UI was hidden or delayed.
  • Bulk resource exports already showed toast feedback; this makes the issue-listed single-resource, chat transcript, bulk chat, and chat preset paths consistent with that pattern.

What changed

  • Added a small feature-layer export feedback helper that keeps sonner toast handling out of shared API wrappers.
  • Wrapped character, persona, lorebook, preset, chat transcript, bulk chat, and chat preset export paths with success/failure toast feedback.
  • Left export payload generation, filenames, storage commands, import behavior, and existing bulk resource export behavior unchanged.

Refactor impact

Primary owner:

Catalog and shared mode UI

Impact areas reviewed:

  • Catalog resource editor export actions
  • Chat files transcript export actions
  • Chat settings chat-preset and Memory Recall export feedback
  • Existing bulk character/persona/lorebook/preset export toasts
  • Feature/API boundary for download helpers

Boundary notes:

  • Toasts stay in src/features; src/shared/api remains UI-neutral.
  • The new helper imports the existing shared download payload helper but does not change payload conversion, native command routing, filenames, or storage behavior.
  • No React-free engine, Rust, import, provider, or remote-runtime code changed.

Pressure points touched:

  • Shared mode UI: ChatSettingsDrawer.tsx
  • Catalog resource editors and chat export hooks
  • Not touched: ModeSurface, GameSurface, src-tauri/src/lib.rs, import modules, storage commands, or export command implementations.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • node scratch/issue-2001-export-feedback-proof.mjs - passed locally; confirms issue-listed export files contain expected success/error toast feedback and no forbidden raw single-export triggerDownload patterns.
  • pnpm typecheck - passed locally.
  • git diff --check - passed locally.
  • pnpm check - passed locally: line endings, architecture, frontend, Rust, docs, discovery, and unused-code checks.
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json - passed locally.
  • Bunny review - passed for opening a draft PR with the visual-evidence limitation below.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix for feedback on existing export actions; no new discoverable feature or workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Docs/release notes:

  • No docs changes needed; this only adds toasts to existing export actions.

UI evidence

No before/after app screenshots attached yet. This issue was filed from source inspection, and local proof was static plus TypeScript/full repo checks. Keep this PR draft until a maintainer or follow-up browser pass spot-checks the affected export surfaces if visual evidence is required.


🔄 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/2037 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2001-export-toast-feedback` --- ### 📝 Commits (2) - [`d46c447`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d46c44730152b04de53df2ff52fc1c0f18146dc4) Fix export toast feedback - [`be7357e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be7357e16b193826f60bee4cacbfe383164a70bd) Refresh PR metadata for discovery check ### 📊 Changes **8 files changed** (+71 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/characters/components/CharacterEditorDialogs.tsx` (+10 -5) 📝 `src/features/catalog/chats/hooks/use-bulk-export-chats.ts` (+10 -1) 📝 `src/features/catalog/chats/hooks/use-chats.ts` (+9 -0) 📝 `src/features/catalog/lorebooks/components/editor/LorebookEditor.tsx` (+3 -2) 📝 `src/features/catalog/personas/components/editor/PersonaEditor.tsx` (+5 -1) 📝 `src/features/catalog/presets/components/PresetEditor.tsx` (+6 -1) 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+12 -5) ➕ `src/features/shared/lib/export-feedback.ts` (+16 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #2001 ## Why this change - Several export flows triggered downloads without durable in-app feedback, so users could miss whether an export completed when the browser download UI was hidden or delayed. - Bulk resource exports already showed toast feedback; this makes the issue-listed single-resource, chat transcript, bulk chat, and chat preset paths consistent with that pattern. ## What changed - Added a small feature-layer export feedback helper that keeps `sonner` toast handling out of shared API wrappers. - Wrapped character, persona, lorebook, preset, chat transcript, bulk chat, and chat preset export paths with success/failure toast feedback. - Left export payload generation, filenames, storage commands, import behavior, and existing bulk resource export behavior unchanged. ## Refactor impact Primary owner: Catalog and shared mode UI Impact areas reviewed: - Catalog resource editor export actions - Chat files transcript export actions - Chat settings chat-preset and Memory Recall export feedback - Existing bulk character/persona/lorebook/preset export toasts - Feature/API boundary for download helpers Boundary notes: - Toasts stay in `src/features`; `src/shared/api` remains UI-neutral. - The new helper imports the existing shared download payload helper but does not change payload conversion, native command routing, filenames, or storage behavior. - No React-free engine, Rust, import, provider, or remote-runtime code changed. Pressure points touched: - Shared mode UI: `ChatSettingsDrawer.tsx` - Catalog resource editors and chat export hooks - Not touched: `ModeSurface`, `GameSurface`, `src-tauri/src/lib.rs`, import modules, storage commands, or export command implementations. ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `node scratch/issue-2001-export-feedback-proof.mjs` - passed locally; confirms issue-listed export files contain expected success/error toast feedback and no forbidden raw single-export `triggerDownload` patterns. - `pnpm typecheck` - passed locally. - `git diff --check` - passed locally. - `pnpm check` - passed locally: line endings, architecture, frontend, Rust, docs, discovery, and unused-code checks. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` - passed locally. - Bunny review - passed for opening a draft PR with the visual-evidence limitation below. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix for feedback on existing export actions; no new discoverable feature or workflow. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims Docs/release notes: - No docs changes needed; this only adds toasts to existing export actions. ## UI evidence No before/after app screenshots attached yet. This issue was filed from source inspection, and local proof was static plus TypeScript/full repo checks. Keep this PR draft until a maintainer or follow-up browser pass spot-checks the affected export surfaces if visual evidence is required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:59 +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#5403
No description provided.