[PR #3362] [CLOSED] fix(lorebooks): drop the embedded-unlink toast clarifier #5902

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3362
Author: @kolacheee
Created: 7/8/2026
Status: ❌ Closed

Base: staging ← Head: fix/embedded-unlink-toast


📝 Commits (1)

  • 2d805bd fix(lorebooks): drop the embedded-unlink toast clarifier (#3359)

📊 Changes

1 file changed (+1 additions, -6 deletions)

View changed files

📝 packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx (+1 -6)

📄 Description

Linked issue

Follow-up to #3360 (merged) / #3359. No new issue — this is a one-line copy tweak whose commit was authored on the #3360 branch but didn't land, because the PR was merged before the push arrived.

Why this change

After #3360 landed, the 🗑️ on an embedded lorebook's row shows a verbose toast: "Unlinked <name>. It's still embedded in the card — use Remove from card to unbake the embedded copy." That clarifier predates the Remove from card action; now that Remove from card exists (also shipped in #3360), the per-click message is just noise. Revert it to the plain "Removed <name>." toast used for every other row.

What changed

  • packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx — unassignLorebook now toasts Removed <name>. for all rows (dropped the embedded-only "Unlinked… still embedded…" branch and its unused isEmbedded local). The hover tooltip on the embedded row still notes it only unlinks and points to Remove from card, so the distinction stays discoverable without the per-click message.

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

  • Client build (tsc) and ESLint pass: pnpm --filter @marinara-engine/client build, pnpm --filter @marinara-engine/client lint.
  • Manually verify: unlink (🗑️) an embedded lorebook's row → the toast reads "Removed <name>." (no "Unlinked… still embedded" text). Hovering the 🗑️ still shows the tooltip explaining it only unlinks and the embedded copy stays.

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)

Toast-copy-only change; no docs or version impact.

UI evidence (if applicable)

N/A — toast text only.


🔄 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/3362 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/8/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `fix/embedded-unlink-toast` --- ### 📝 Commits (1) - [`2d805bd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d805bdee50346afe7303a588487aa86f71ce571) fix(lorebooks): drop the embedded-unlink toast clarifier (#3359) ### 📊 Changes **1 file changed** (+1 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx` (+1 -6) </details> ### 📄 Description ## Linked issue Follow-up to #3360 (merged) / #3359. No new issue — this is a one-line copy tweak whose commit was authored on the #3360 branch but didn't land, because the PR was merged before the push arrived. ## Why this change After #3360 landed, the 🗑️ on an embedded lorebook's row shows a verbose toast: *"Unlinked &lt;name&gt;. It's still embedded in the card — use Remove from card to unbake the embedded copy."* That clarifier predates the **Remove from card** action; now that Remove from card exists (also shipped in #3360), the per-click message is just noise. Revert it to the plain *"Removed &lt;name&gt;."* toast used for every other row. ## What changed - `packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx` — `unassignLorebook` now toasts `Removed <name>.` for all rows (dropped the embedded-only "Unlinked… still embedded…" branch and its unused `isEmbedded` local). The hover tooltip on the embedded row still notes it only unlinks and points to Remove from card, so the distinction stays discoverable without the per-click message. ## 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 - Client build (tsc) and ESLint pass: `pnpm --filter @marinara-engine/client build`, `pnpm --filter @marinara-engine/client lint`. - Manually verify: unlink (🗑️) an **embedded** lorebook's row → the toast reads *"Removed &lt;name&gt;."* (no "Unlinked… still embedded" text). Hovering the 🗑️ still shows the tooltip explaining it only unlinks and the embedded copy stays. ## 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) Toast-copy-only change; no docs or version impact. ## UI evidence (if applicable) N/A — toast text only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:04: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#5902
No description provided.