[PR #3752] [CLOSED] feat: Author's Notes — ordered, independently toggleable entries #6089

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3752
Author: @Trade-Mottoes
Created: 7/17/2026
Status: ❌ Closed

Base: main ← Head: feat/author-notes-entries


📝 Commits (1)

  • dcecd82 feat: Author's Notes — ordered, independently toggleable entries

📊 Changes

5 files changed (+240 additions, -33 deletions)

View changed files

📝 packages/client/src/components/chat/ChatRoleplayPanels.tsx (+167 -30)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -1)
📝 packages/server/src/routes/generate.routes.ts (+4 -2)
📝 packages/shared/src/index.ts (+1 -0)
➕ packages/shared/src/types/author-notes.ts (+66 -0)

📄 Description

Replaces the single Author's Notes textarea with an ordered list of entries, each of which can be toggled off without deleting it, reordered, or removed.

Rebuilt against current staging rather than rebased from the May fork of this feature. The old branch forked AuthorNotesPanel into a private file to keep the merge surface narrow; that froze it in May while upstream kept fixing the real one (per-chat save refs for #3079, the unmount-flush for outside-click dismissal, the shared popover style tokens). This version extends upstream's panel in place so those fixes keep flowing in.

A chat is "migrated" iff its metadata carries an authorNoteEntries array — not iff that array is non-empty. Branching on length instead means disabling or deleting every entry falls through to the legacy authorNotes string and silently re-injects it forever, which is what the old branch did.

Legacy notes are pipe-split for display only, and written back (clearing the legacy key) on the first real edit.

Linked issue

Closes #

Why this change

What changed

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

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)

UI evidence (if applicable)

Summary by CodeRabbit

  • New Features
    • Author’s Notes can now be managed as multiple separate entries.
    • Enable or disable notes, reorder them, edit their content, delete entries, and add new notes.
    • Displays how many enabled notes will be injected and at what depth.
  • Bug Fixes
    • Existing single-note content is preserved and migrated into the new editable format.
    • Author’s Notes detection and prompt injection now work consistently for both legacy and new note formats.

🔄 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/3752 **Author:** [@Trade-Mottoes](https://github.com/Trade-Mottoes) **Created:** 7/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/author-notes-entries` --- ### 📝 Commits (1) - [`dcecd82`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dcecd827666df7405c1e4a27656ec93676d52fc2) feat: Author's Notes — ordered, independently toggleable entries ### 📊 Changes **5 files changed** (+240 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatRoleplayPanels.tsx` (+167 -30) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+4 -2) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `packages/shared/src/types/author-notes.ts` (+66 -0) </details> ### 📄 Description Replaces the single Author's Notes textarea with an ordered list of entries, each of which can be toggled off without deleting it, reordered, or removed. Rebuilt against current staging rather than rebased from the May fork of this feature. The old branch forked AuthorNotesPanel into a private file to keep the merge surface narrow; that froze it in May while upstream kept fixing the real one (per-chat save refs for #3079, the unmount-flush for outside-click dismissal, the shared popover style tokens). This version extends upstream's panel in place so those fixes keep flowing in. A chat is "migrated" iff its metadata carries an authorNoteEntries array — not iff that array is non-empty. Branching on length instead means disabling or deleting every entry falls through to the legacy authorNotes string and silently re-injects it forever, which is what the old branch did. Legacy notes are pipe-split for display only, and written back (clearing the legacy key) on the first real edit. <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes # ## Why this change <!-- What user problem, bug, or goal does this solve? --> - ## What changed <!-- List the key changes in this PR --> - ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- 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. --> - ## 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) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Author’s Notes can now be managed as multiple separate entries. - Enable or disable notes, reorder them, edit their content, delete entries, and add new notes. - Displays how many enabled notes will be injected and at what depth. - **Bug Fixes** - Existing single-note content is preserved and migrated into the new editable format. - Author’s Notes detection and prompt injection now work consistently for both legacy and new note formats. <!-- 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:06:58 +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#6089
No description provided.