[PR #1973] [MERGED] Fix character quote formatting #5369

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1973
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1959-character-quote-format


📝 Commits (3)

  • a696a08 Fix character quote formatting
  • 2f5a38c Merge remote-tracking branch 'origin/refactor' into fix/issue-1959-character-quote-format
  • 84a607b Address quote formatting review

📊 Changes

2 files changed (+65 additions, -9 deletions)

View changed files

📝 src/features/catalog/characters/components/CharacterEditor.tsx (+19 -9)
📝 src/features/catalog/characters/lib/character-editor-model.ts (+46 -0)

📄 Description

Linked issue

Closes #1959

Why this change

  • The refactor character editor was storing edited character-card text directly, so configured quote-style normalization no longer applied to edited card prose fields.
  • Legacy character editing normalized the same prose fields through the quote formatter, so this restores that authoring behavior for the catalog editor.

What changed

  • Added character-editor formatting helpers that apply the existing shared quote formatter to conversational character-card prose fields.
  • Wired the character editor field and extension setters to format configured prose fields before saving form data.
  • Kept metadata, prompt/control fields, tags, avatar crop, and other non-prose extension data raw.

Refactor impact

Primary owner:

  • Catalog resources / character editor

Impact areas reviewed:

  • Character editor field update path
  • Character editor extension update path
  • Shared quote formatter usage

Boundary notes:

  • The change stays in src/features/catalog/characters and calls the existing shared quote formatter.
  • No src/engine, shared API, remote runtime, or Tauri/Rust behavior changed.

Pressure points touched:

  • None of the named pressure points were touched.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm exec tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --skipLibCheck scratch/repro-1959-character-quote-format.ts
    • Before fix: failed with missing formatter exports.
    • After fix: passed.
  • pnpm exec vitest run --config scratch/vitest.issue-1959.config.ts
    • Passed: 1 file, 3 tests.
    • Covered configured quote formatting for conversational prose fields, alternate greetings, nested description extension content, straight conversion, and negative controls for prompt/control fields, name/tags/avatar crop, and depth prompt text.
  • pnpm typecheck
    • Passed.
  • git diff --check
    • Passed.
  • pnpm check
    • Passed: line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused-code check.
  • Manual UI/browser verification was not run because the core claim is saved form-data quote normalization, covered by the scratch model/setter proof.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix only; no new discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A. This fixes character editor form-data normalization rather than visible layout or rendering. Local scratch proof is recorded in scratch/bugfix-verification.json.


🔄 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/1973 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1959-character-quote-format` --- ### 📝 Commits (3) - [`a696a08`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a696a083ce68c8a3db5468621e7280c6e52d8c07) Fix character quote formatting - [`2f5a38c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2f5a38c5c7e390b7fcba015a9c1629cfb228fc2a) Merge remote-tracking branch 'origin/refactor' into fix/issue-1959-character-quote-format - [`84a607b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/84a607b7ca0ded80e7134a30664c4e39c4646cda) Address quote formatting review ### 📊 Changes **2 files changed** (+65 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/characters/components/CharacterEditor.tsx` (+19 -9) 📝 `src/features/catalog/characters/lib/character-editor-model.ts` (+46 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1959 ## Why this change - The refactor character editor was storing edited character-card text directly, so configured quote-style normalization no longer applied to edited card prose fields. - Legacy character editing normalized the same prose fields through the quote formatter, so this restores that authoring behavior for the catalog editor. ## What changed - Added character-editor formatting helpers that apply the existing shared quote formatter to conversational character-card prose fields. - Wired the character editor field and extension setters to format configured prose fields before saving form data. - Kept metadata, prompt/control fields, tags, avatar crop, and other non-prose extension data raw. ## Refactor impact Primary owner: - Catalog resources / character editor Impact areas reviewed: - Character editor field update path - Character editor extension update path - Shared quote formatter usage Boundary notes: - The change stays in `src/features/catalog/characters` and calls the existing shared quote formatter. - No `src/engine`, shared API, remote runtime, or Tauri/Rust behavior changed. Pressure points touched: - None of the named pressure points were touched. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm exec tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --skipLibCheck scratch/repro-1959-character-quote-format.ts` - Before fix: failed with missing formatter exports. - After fix: passed. - `pnpm exec vitest run --config scratch/vitest.issue-1959.config.ts` - Passed: 1 file, 3 tests. - Covered configured quote formatting for conversational prose fields, alternate greetings, nested description extension content, straight conversion, and negative controls for prompt/control fields, name/tags/avatar crop, and depth prompt text. - `pnpm typecheck` - Passed. - `git diff --check` - Passed. - `pnpm check` - Passed: line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused-code check. - Manual UI/browser verification was not run because the core claim is saved form-data quote normalization, covered by the scratch model/setter proof. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix only; no new discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A. This fixes character editor form-data normalization rather than visible layout or rendering. Local scratch proof is recorded in `scratch/bugfix-verification.json`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:40 +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#5369
No description provided.