[PR #364] [MERGED] feat: Compressed Lorebooks #4580

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/364
Author: @kolacheee
Created: 5/3/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @SpicyMarinara

Base: main ← Head: main


📝 Commits (3)

  • b265893 Add files via upload
  • 3532946 Merge pull request #1 from kolacheee/kolacheee-compressed-lorebooks
  • a39d04e Merge branch 'main' into main

📊 Changes

3 files changed (+2049 additions, -0 deletions)

View changed files

➕ LorebookEditor.tsx (+1019 -0)
➕ LorebookEntryRow.tsx (+742 -0)
➕ LorebookFormFields.tsx (+288 -0)

📄 Description

Linked issue

Closes #366

Why this change

Lorebook authors with many entries need a denser editing flow. The existing entry editor makes small changes like order, trigger mode, probability, and enable/disable require opening a larger editing view, which slows down work on large lorebooks.

What changed

  • Replaces the lorebook entry editor with compact rows and inline controls for common metadata.
  • Adds an expandable inline drawer for heavier entry fields while keeping the entry list visible.
  • Extracts shared lorebook form field controls for reuse between the overview/editor row surfaces.
  • Fixes the submitted PR file placement so the new components live under packages/client/src/components/lorebooks/ instead of the repository root.
  • Clamps inline numeric commits to their configured min/max bounds.
  • Adds a changelog entry for the compact lorebook editor.

Validation

  • Ran pnpm --filter @marinara-engine/client lint (passes with existing unrelated warnings in CyoaChoices.tsx and GameNarration.tsx)
  • Ran pnpm --filter @marinara-engine/client build
  • Ran pnpm --filter @marinara-engine/server lint
  • Checked the PR failure logs and confirmed the failing pass was the PR template check, not a code check
  • Applied the unresolved CodeRabbit numeric min/max recommendation

UI evidence

Original PR screenshots show the intended compact row, light mode, dark mode, and mobile layouts. This merge keeps that UI but moves it into the active lorebook component path so the application actually uses it.


🔄 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/364 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 5/3/2026 **Status:** ✅ Merged **Merged:** 5/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`b265893`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b265893d22fa44bba6456dba89e30b5b924d1c5a) Add files via upload - [`3532946`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3532946690d1c3f6ab82257e2ec68029a107b2c0) Merge pull request #1 from kolacheee/kolacheee-compressed-lorebooks - [`a39d04e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a39d04e8aababb408a20abdf39d775dd20769bc4) Merge branch 'main' into main ### 📊 Changes **3 files changed** (+2049 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `LorebookEditor.tsx` (+1019 -0) ➕ `LorebookEntryRow.tsx` (+742 -0) ➕ `LorebookFormFields.tsx` (+288 -0) </details> ### 📄 Description ## Linked issue Closes #366 ## Why this change Lorebook authors with many entries need a denser editing flow. The existing entry editor makes small changes like order, trigger mode, probability, and enable/disable require opening a larger editing view, which slows down work on large lorebooks. ## What changed - Replaces the lorebook entry editor with compact rows and inline controls for common metadata. - Adds an expandable inline drawer for heavier entry fields while keeping the entry list visible. - Extracts shared lorebook form field controls for reuse between the overview/editor row surfaces. - Fixes the submitted PR file placement so the new components live under `packages/client/src/components/lorebooks/` instead of the repository root. - Clamps inline numeric commits to their configured min/max bounds. - Adds a changelog entry for the compact lorebook editor. ## Validation - [x] Ran `pnpm --filter @marinara-engine/client lint` (passes with existing unrelated warnings in `CyoaChoices.tsx` and `GameNarration.tsx`) - [x] Ran `pnpm --filter @marinara-engine/client build` - [x] Ran `pnpm --filter @marinara-engine/server lint` - [x] Checked the PR failure logs and confirmed the failing pass was the PR template check, not a code check - [x] Applied the unresolved CodeRabbit numeric min/max recommendation ## UI evidence Original PR screenshots show the intended compact row, light mode, dark mode, and mobile layouts. This merge keeps that UI but moves it into the active lorebook component path so the application actually uses it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:53 +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#4580
No description provided.