[PR #5090] [MERGED] Show and copy lorebook and entry IDs #6624

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5090
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/5085-lorebook-id-copy


📝 Commits (5)

  • 994b1e4 feat: expose lorebook IDs for copying
  • c0c603f Merge remote-tracking branch 'origin/staging' into feat/5085-lorebook-id-copy
  • 5e9604e Merge branch 'staging' into feat/5085-lorebook-id-copy
  • 90e8fab Merge remote-tracking branch 'origin/staging' into feat/5085-lorebook-id-copy
  • 6ad65f0 Merge branch 'staging' into feat/5085-lorebook-id-copy

📊 Changes

5 files changed (+105 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+46 -0)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+25 -1)
📝 packages/client/src/components/lorebooks/LorebookEntryRow.tsx (+25 -1)
📝 packages/client/src/localization/locales/en.json (+8 -0)

📄 Description

Linked issue

Closes #5085

Why this change

  • Lorebook and entry IDs are useful for macros, debugging, and integrations, but unlike character and persona IDs they were hidden from the editor and had to be recovered indirectly.

What changed

  • Show the lorebook ID with a copy action in Lorebook Overview.
  • Show each entry ID with a copy action in its expanded drawer.
  • Use the existing editor control styling, resilient clipboard helper, localized labels, and success/error feedback.
  • Cover visibility and copying on desktop and mobile.

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

Automated evidence:

  • pnpm check
  • pnpm localization:check
  • pnpm lint
  • pnpm exec playwright test -c playwright.config.ts --grep "Lorebook and entry IDs are visible and copyable" (desktop and mobile assertions passed; the isolated watcher required explicit cleanup after Playwright finished)

Manual verification notes

  • Manually verify the ID rows in Lorebook Overview and an expanded entry in both light and dark themes.
  • Manually verify Copy writes the expected UUID in the packaged app shell.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Automated desktop and mobile browser coverage is included; manual visual-theme verification remains listed above.

🔄 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/5090 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/5085-lorebook-id-copy` --- ### 📝 Commits (5) - [`994b1e4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/994b1e402ea5077b5a21098e94998e7ff63b22e2) feat: expose lorebook IDs for copying - [`c0c603f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c0c603f268421178ecc565a485c6076e0af4fc27) Merge remote-tracking branch 'origin/staging' into feat/5085-lorebook-id-copy - [`5e9604e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e9604ee4134d4625038070302a55ce03cba3d6e) Merge branch 'staging' into feat/5085-lorebook-id-copy - [`90e8fab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/90e8fab8e890069f171d7c653f48ad2c221976cc) Merge remote-tracking branch 'origin/staging' into feat/5085-lorebook-id-copy - [`6ad65f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6ad65f09974f858b81a3b60f706a852af04d9aad) Merge branch 'staging' into feat/5085-lorebook-id-copy ### 📊 Changes **5 files changed** (+105 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+46 -0) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+25 -1) 📝 `packages/client/src/components/lorebooks/LorebookEntryRow.tsx` (+25 -1) 📝 `packages/client/src/localization/locales/en.json` (+8 -0) </details> ### 📄 Description ## Linked issue Closes #5085 ## Why this change - Lorebook and entry IDs are useful for macros, debugging, and integrations, but unlike character and persona IDs they were hidden from the editor and had to be recovered indirectly. ## What changed - Show the lorebook ID with a copy action in Lorebook Overview. - Show each entry ID with a copy action in its expanded drawer. - Use the existing editor control styling, resilient clipboard helper, localized labels, and success/error feedback. - Cover visibility and copying on desktop and mobile. ## 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` Automated evidence: - `pnpm check` - `pnpm localization:check` - `pnpm lint` - `pnpm exec playwright test -c playwright.config.ts --grep "Lorebook and entry IDs are visible and copyable"` (desktop and mobile assertions passed; the isolated watcher required explicit cleanup after Playwright finished) ### Manual verification notes - Manually verify the ID rows in Lorebook Overview and an expanded entry in both light and dark themes. - Manually verify Copy writes the expected UUID in the packaged app shell. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Automated desktop and mobile browser coverage is included; manual visual-theme verification remains listed above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:09 +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#6624
No description provided.