[PR #2160] [MERGED] feat(story-writer): quick replies and a compact chapter bar (0.2.0) #2155

Closed
opened 2026-11-07 22:42:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2160
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/story-writer-quick-replies


📝 Commits (5)

  • 88c56f0 feat(story-writer): quick replies and a compact chapter bar (0.2.0)
  • ccd50fb fix(story-writer): review fixes for quick replies (0.2.0)
  • 01c2f21 Merge branch 'staging' into feat/story-writer-quick-replies
  • 89c80c3 fix(story-writer): a wheel that counts lines scrolls the quick replies as far (0.2.0)
  • baaea31 Merge branch 'staging' into feat/story-writer-quick-replies

📊 Changes

32 files changed (+1338 additions, -669 deletions)

View changed files

➕ artifacts/story-writer-0.2.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/story-writer/CHANGELOG.md (+7 -0)
📝 packages/story-writer/README.md (+23 -7)
📝 packages/story-writer/client.js (+443 -415)
📝 packages/story-writer/manifest.json (+5 -5)
📝 packages/story-writer/server.mjs (+1 -1)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/ActionBar.tsx (+51 -1)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/StoryReader.tsx (+52 -32)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/StorySidebar.tsx (+16 -4)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/StoryWriterView.tsx (+38 -22)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/reader-layout.ts (+2 -8)
➕ packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/QuickRepliesSection.tsx (+117 -0)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/ToolsSection.tsx (+3 -29)
📝 packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/fields.tsx (+39 -0)

...and 12 more files

📄 Description

Pull request

Linked issue

Closes #2159
Refs Pasta-Devs/Marinara-Engine#8934

Why this change

A Story Writer player kept typing an instruction for the AI to continue from, then deleting it after each generation. They asked for Quick Replies that can be toggled, a compact toolbar, and a chapter bar that takes less room so the book is bigger. In the thread, the maintainer said guided generation is the Author's Note and "the rest can be added and changed".

What changed

Package: story-writer 0.2.0. No Engine change; capability API stays 1.386.

  • Quick replies:
    • One list for every story, saved in preferences: up to 24 replies, each an optional label plus an instruction.
    • They're edited in a new Quick replies sidebar section with a Show quick replies toggle. The list starts empty.
    • A click writes the next chapter, or continues a draft, with that instruction instead of the continue message.
    • A new chapter stores the reply as its request; continuing a draft sends it once.
    • A reply's text also feeds the lorebook scan.
    • For people who don't use quick replies, prompts and scans are byte-identical to 0.1.1.
  • Rewrite resends the request the chapter was written from, so a quick reply isn't lost on a rewrite. For older chapters that's the continue message as it was then.
  • Compact chapter bar: it moved above the book on desktop, tablet, phone upright and phone sideways, and got smaller (with a short form on phones). The book gains about 30–48 px of height. One CSS variable drives both the bar's height and the space the book makes for it.
  • The quick bar sits beside the actions on wide screens and above them on narrow ones. On a phone turned sideways it's at the bottom centre. Its chips ellipsize in CSS, so full names stay accessible, and a mouse wheel scrolls the row.
  • Guided generation: the corner sticky note is still the one-click way into the Author's Note; there's no second opener.
  • README and CHANGELOG are updated. The bundle, manifest, artifacts/story-writer-0.2.0.zip and the catalogs are rebuilt, and the older zips are kept.

Package and security impact

  • Affected package IDs: story-writer
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: two optional preference fields with defaults; books keep their data.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agents:

  • Story Writer regressions: markdown 8/8, prompt 24/24, reader-layout 5/5, store 10/10.
    • The prompt tests cover request order, rewrite, the lorebook scan, and byte-identical prompts when no reply is used.
  • tests/package-story-writer.e2e.ts: desktop-chromium and mobile-chromium passed. They include the landscape block, adding a reply, writing with it, the quick bar's placement against the book and the action bar, and wheel scrolling.
  • Typecheck, npm run check (0 errors), locale-key and catalog validation, and git diff --check: pass.

Still to verify by hand:

  • Manually verify on an iPhone, upright and sideways, and in desktop Chrome, that the book is visibly larger and the chapter bar doesn't overlap the corner note.
  • Manually verify that quick-reply chips can be reached by touch and Tab, and that a chip writes the next chapter following its instruction.
  • Manually verify that Show quick replies off gives the room back.

Documentation impact

  • Updated this README catalog and package guidance

🤖 Generated with Claude Code


🔄 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-Agents/pull/2160 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/story-writer-quick-replies` --- ### 📝 Commits (5) - [`88c56f0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/88c56f0ad6f45a97a639d6bfe282bc480ef08c46) feat(story-writer): quick replies and a compact chapter bar (0.2.0) - [`ccd50fb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ccd50fbd486d62f906640c9f339c15e2fde118e5) fix(story-writer): review fixes for quick replies (0.2.0) - [`01c2f21`](https://github.com/Pasta-Devs/Marinara-Agents/commit/01c2f21bbeb926d4b4ea0b1d961f61ed1855bc7f) Merge branch 'staging' into feat/story-writer-quick-replies - [`89c80c3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/89c80c356d23c009463376848c5ad4b1758b65bd) fix(story-writer): a wheel that counts lines scrolls the quick replies as far (0.2.0) - [`baaea31`](https://github.com/Pasta-Devs/Marinara-Agents/commit/baaea319698597a838a5f1cae13606b05151410f) Merge branch 'staging' into feat/story-writer-quick-replies ### 📊 Changes **32 files changed** (+1338 additions, -669 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/story-writer-0.2.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/story-writer/CHANGELOG.md` (+7 -0) 📝 `packages/story-writer/README.md` (+23 -7) 📝 `packages/story-writer/client.js` (+443 -415) 📝 `packages/story-writer/manifest.json` (+5 -5) 📝 `packages/story-writer/server.mjs` (+1 -1) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/ActionBar.tsx` (+51 -1) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/StoryReader.tsx` (+52 -32) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/StorySidebar.tsx` (+16 -4) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/StoryWriterView.tsx` (+38 -22) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/reader-layout.ts` (+2 -8) ➕ `packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/QuickRepliesSection.tsx` (+117 -0) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/ToolsSection.tsx` (+3 -29) 📝 `packages/story-writer/src/engine/packages/client/src/components/story-writer/sidebar/fields.tsx` (+39 -0) _...and 12 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #2159 Refs Pasta-Devs/Marinara-Engine#8934 ## Why this change A Story Writer player kept typing an instruction for the AI to continue from, then deleting it after each generation. They asked for Quick Replies that can be toggled, a compact toolbar, and a chapter bar that takes less room so the book is bigger. In the thread, the maintainer said guided generation is the Author's Note and "the rest can be added and changed". ## What changed Package: `story-writer` 0.2.0. No Engine change; capability API stays 1.386. - **Quick replies:** - One list for every story, saved in preferences: up to 24 replies, each an optional label plus an instruction. - They're edited in a new **Quick replies** sidebar section with a **Show quick replies** toggle. The list starts empty. - A click writes the next chapter, or continues a draft, with that instruction instead of the continue message. - A new chapter stores the reply as its request; continuing a draft sends it once. - A reply's text also feeds the lorebook scan. - For people who don't use quick replies, prompts and scans are byte-identical to 0.1.1. - **Rewrite** resends the request the chapter was written from, so a quick reply isn't lost on a rewrite. For older chapters that's the continue message as it was then. - **Compact chapter bar:** it moved above the book on desktop, tablet, phone upright and phone sideways, and got smaller (with a short form on phones). The book gains about 30–48 px of height. One CSS variable drives both the bar's height and the space the book makes for it. - The quick bar sits beside the actions on wide screens and above them on narrow ones. On a phone turned sideways it's at the bottom centre. Its chips ellipsize in CSS, so full names stay accessible, and a mouse wheel scrolls the row. - **Guided generation:** the corner sticky note is still the one-click way into the Author's Note; there's no second opener. - README and CHANGELOG are updated. The bundle, manifest, `artifacts/story-writer-0.2.0.zip` and the catalogs are rebuilt, and the older zips are kept. ## Package and security impact - Affected package IDs: `story-writer` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: two optional preference fields with defaults; books keep their data. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agents: - Story Writer regressions: markdown 8/8, prompt 24/24, reader-layout 5/5, store 10/10. - The prompt tests cover request order, rewrite, the lorebook scan, and byte-identical prompts when no reply is used. - `tests/package-story-writer.e2e.ts`: desktop-chromium and mobile-chromium passed. They include the landscape block, adding a reply, writing with it, the quick bar's placement against the book and the action bar, and wheel scrolling. - Typecheck, `npm run check` (0 errors), locale-key and catalog validation, and `git diff --check`: pass. Still to verify by hand: - Manually verify on an iPhone, upright and sideways, and in desktop Chrome, that the book is visibly larger and the chapter bar doesn't overlap the corner note. - Manually verify that quick-reply chips can be reached by touch and Tab, and that a chip writes the next chapter following its instruction. - Manually verify that **Show quick replies** off gives the room back. ## Documentation impact - [x] Updated this README catalog and package guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi changed title from [PR #2160] feat(story-writer): quick replies and a compact chapter bar (0.2.0) to [PR #2160] [MERGED] feat(story-writer): quick replies and a compact chapter bar (0.2.0) 2026-11-07 23:44:41 +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-Agents#2155
No description provided.