[PR #5414] [MERGED] Adding 'De/Select All Entries inside Folder' Button during batch bditing in Lorebook Editor #6758

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

📋 Pull Request Information

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

Base: staging ← Head: LoreBookBatchEditFolders


📝 Commits (4)

📊 Changes

4 files changed (+59 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+19 -0)
📝 packages/client/src/components/lorebooks/LorebookFolderRow.tsx (+37 -2)
📝 packages/client/src/localization/locales/en.json (+2 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Closes #5413

Why this change

  • Before this, if you had many larger folders inside a giant Lorebook, there was no way to select only the entries inside a folder for batch editing (e.g giving all 'Characters' the same injection order). You had to manually select all of them, or select all and unselect undesired ones. Both of which were impractical.

What changed

  • Added a 'toggle all' button inside Folder Rows, in the style of the button already existing for selecting single entries.
    Hitting it once selects all entries inside the folder. Hitting it again deselects all entries in the folder. If you manually deselect an entry inside the folder, the 'toggle all' button goes back into 'Select All' functionality.

  • The function only targets direct children, with subfolders being unaffected.

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

  • Tested it out in my browser: selecting all, unselecting all, manually unselecting one before pressing the folder toggle again.
    Also looked at it on my phone, tested the same features, which is all seen in the attached files.

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)

Before change, mockup:
adsadasd

After:

https://github.com/user-attachments/assets/8901cc8f-c407-4408-9cc7-4a1c38d5e750

Mobile:
mobile folder select all

Extra mobile Testing:

https://github.com/user-attachments/assets/e50e8051-d3d2-4a7d-8b30-ebc1cb6b6b5c

Summary by CodeRabbit

  • New Features
    • Added batch-selection controls to lorebook folders.
    • Select or deselect all entries in a folder with one action.
    • Folder controls indicate whether all entries are currently selected.
  • Documentation
    • Added changelog coverage for folder batch editing.
  • Localization
    • Added English labels and tooltips for selection controls.

🔄 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/5414 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `LoreBookBatchEditFolders` --- ### 📝 Commits (4) - [`a41d0a7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a41d0a7acef6806842d023d290c34041f95dc643) changelog.md and removed "outlet name" addition, as mari assigned that to herself. - [`8401378`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8401378d4515ff828649d561ec3c3127ff9bfcf7) Merge branch 'staging' into LoreBookBatchEditFolders - [`ca6f901`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca6f901cb92763204acc2160c7104633a387aa56) addressed review findings - [`6de5359`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6de5359ecf02595cbbb0ab3c4d64cbea7d8168b9) Merge branch 'LoreBookBatchEditFolders' of https://github.com/bobneumann77-hub/Marinara-Engine into LoreBookBatchEditFolders ### 📊 Changes **4 files changed** (+59 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+19 -0) 📝 `packages/client/src/components/lorebooks/LorebookFolderRow.tsx` (+37 -2) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> Closes #5413 ## Why this change - Before this, if you had many larger folders inside a giant Lorebook, there was no way to select only the entries inside a folder for batch editing (e.g giving all 'Characters' the same injection order). You had to manually select all of them, or select all and unselect undesired ones. Both of which were impractical. ## What changed <!-- List the key changes in this PR --> - Added a 'toggle all' button inside Folder Rows, in the style of the button already existing for selecting single entries. Hitting it once selects all entries inside the folder. Hitting it again deselects all entries in the folder. If you manually deselect an entry inside the folder, the 'toggle all' button goes back into 'Select All' functionality. - The function only targets direct children, with subfolders being unaffected. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] 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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Tested it out in my browser: selecting all, unselecting all, manually unselecting one before pressing the folder toggle again. Also looked at it on my phone, tested the same features, which is all seen in the attached files. ## Docs and release impact - [ ] No docs changes needed - [x] 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) Before change, mockup: <img width="600" height="500" alt="adsadasd" src="https://github.com/user-attachments/assets/d26aff5a-8c19-4fd1-9f73-5fa194030d20" /> After: https://github.com/user-attachments/assets/8901cc8f-c407-4408-9cc7-4a1c38d5e750 Mobile: <img width="250" height="500" alt="mobile folder select all" src="https://github.com/user-attachments/assets/4f5d6b0b-a1a6-4363-90b6-6e46836cf2b8" /> Extra mobile Testing: https://github.com/user-attachments/assets/e50e8051-d3d2-4a7d-8b30-ebc1cb6b6b5c <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added batch-selection controls to lorebook folders. * Select or deselect all entries in a folder with one action. * Folder controls indicate whether all entries are currently selected. * **Documentation** * Added changelog coverage for folder batch editing. * **Localization** * Added English labels and tooltips for selection controls. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:26 +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#6758
No description provided.