[PR #8572] [MERGED] feat(mari): in-field review on single-line editor fields #8682

Closed
opened 2026-11-07 17:38:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8572
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/mari-review-small-fields


📝 Commits (1)

  • 2c80ace feat(mari): in-field review on single-line editor fields

📊 Changes

7 files changed (+133 additions, -73 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+28 -22)
📝 packages/client/src/components/characters/MariFieldReview.tsx (+4 -2)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+11 -10)
📝 packages/client/src/components/lorebooks/LorebookEntryRow.tsx (+19 -13)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+32 -24)
📝 packages/client/src/lib/mari-editor-fields.ts (+9 -2)
📝 scripts/regressions/mari-editor-fields.regression.ts (+30 -0)

📄 Description

Linked issue

No issue: planned work, part of the Professor Mari companion (#8418).

Why this change

Prof. Mari's in-field review (diff, Keep / Not this one / Edit / Undo) only covered multi-line text fields. When she changed a name or creator, the change showed only on her card, not in the field.

What changed

  • reviewOrder lists now include single-line fields: character name, creator and character_version; persona name, comment, phoneticName and creator; lorebook name; entry name. Tags and keys stay card-only.
  • Character and Persona inputs are wrapped in MariFieldReview.
  • Lorebook name and entry name anchors moved to a wrapper div.
  • Focus after Keep / Edit finds a textarea or an input.
  • The review box calls preventDefault on clicks, so a click inside a field's label does not press the first button.
  • Regression mari-editor-fields covers the new ordering.

Known pre-existing staging issues, not fixed here: the Metadata grid overflows at 390 px; a label click opens the help tooltip; the waiting copy says "outside this character" in the persona and lorebook editors.

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

Agent-run (not manual): client tsc, ESLint, Prettier, localization:check, regression mari-editor-fields, seeded Playwright 17/17 at 1440 and 390. Not run with a real model.

To verify manually:

  1. Manually verify "Not this one" on a name field.
  2. Manually verify textarea fields still review as before.
  3. Manually verify entry-name review at 390 px (the field is narrow, about 130 px).

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

Screenshots are local; attach on request.


🔄 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/8572 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/mari-review-small-fields` --- ### 📝 Commits (1) - [`2c80ace`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2c80aced17855536b0a0d86705f3b70b91cca883) feat(mari): in-field review on single-line editor fields ### 📊 Changes **7 files changed** (+133 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+28 -22) 📝 `packages/client/src/components/characters/MariFieldReview.tsx` (+4 -2) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+11 -10) 📝 `packages/client/src/components/lorebooks/LorebookEntryRow.tsx` (+19 -13) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+32 -24) 📝 `packages/client/src/lib/mari-editor-fields.ts` (+9 -2) 📝 `scripts/regressions/mari-editor-fields.regression.ts` (+30 -0) </details> ### 📄 Description ## Linked issue No issue: planned work, part of the Professor Mari companion (#8418). ## Why this change Prof. Mari's in-field review (diff, Keep / Not this one / Edit / Undo) only covered multi-line text fields. When she changed a name or creator, the change showed only on her card, not in the field. ## What changed - `reviewOrder` lists now include single-line fields: character name, creator and character_version; persona name, comment, phoneticName and creator; lorebook name; entry name. Tags and keys stay card-only. - Character and Persona inputs are wrapped in `MariFieldReview`. - Lorebook name and entry name anchors moved to a wrapper div. - Focus after Keep / Edit finds a textarea or an input. - The review box calls `preventDefault` on clicks, so a click inside a field's label does not press the first button. - Regression `mari-editor-fields` covers the new ordering. Known pre-existing staging issues, not fixed here: the Metadata grid overflows at 390 px; a label click opens the help tooltip; the waiting copy says "outside this character" in the persona and lorebook editors. ## 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 Agent-run (not manual): client `tsc`, ESLint, Prettier, `localization:check`, regression `mari-editor-fields`, seeded Playwright 17/17 at 1440 and 390. Not run with a real model. To verify manually: 1. Manually verify "Not this one" on a name field. 2. Manually verify textarea fields still review as before. 3. Manually verify entry-name review at 390 px (the field is narrow, about 130 px). ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) Screenshots are local; attach on request. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:38: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#8682
No description provided.