mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8403] [MERGED] feat(mari): anchor Character editor fields for Prof. Mari #8576
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8576
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8403
Author: @Gunterlie
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @Gunterlie
Base:
feat/mari-companion← Head:feat/mari-field-anchors📝 Commits (2)
5a87989feat(mari): anchor Character editor fields for Prof. Mari075c1b8fix(mari): review fixes for Character editor field anchors📊 Changes
13 files changed (+492 additions, -48 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterEditor.tsx(+50 -28)📝
packages/client/src/components/chat/MariEditEasyViewer.tsx(+27 -2)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+13 -0)📝
packages/client/src/components/layout/GlobalOmnibar.tsx(+7 -15)➕
packages/client/src/hooks/use-mari-editor-fields.ts(+98 -0)📝
packages/client/src/lib/editor-leave.ts(+9 -0)➕
packages/client/src/lib/mari-editor-fields.ts(+95 -0)📝
packages/client/src/lib/omnibar-completion-actions.ts(+4 -2)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/client/src/stores/ui.store.ts(+18 -1)📝
packages/client/src/styles/mari.css(+97 -0)➕
scripts/regressions/mari-editor-fields.regression.ts(+70 -0)📝
scripts/regressions/tsconfig.client-lanes.json(+1 -0)📄 Description
Linked issue
No issue: planned work, slice 2 of the Professor Mari companion feature (Prof. Mari floats next to real editors and live-edits them). Slices are PRed into the integration branch
feat/mari-companion(slice 1: #8401).Why this change
Prof. Mari could not point at a real field in the Character editor, and the omnibar only guessed the focused field from the open tab (Card → Description, Convo → Greeting). The companion (slice 4) and the in-field review (slice 5) need the editor and Mari to agree on real field ids: Mari must be able to show the field she talks about, and the user must see which field she is writing while she works.
What changed
data-mari-fieldanchors on 17 Character editor fields (name, creator, version, tags, creator notes, summary, description, personality, scenario, first message, alternate greetings, example messages, system prompt, post-history instructions, backstory, appearance, depth prompt). Ids are the short keysfieldLabel()already uses.focusinlistener setsactiveEditorFieldto the real field (cleared on controls without an anchor); the tab guess is removed.openCharacterDetailtakes arevealField; the editor scrolls to the field (existing reduced-motion-aware scroll) and pulses it once. Used by the omnibaropen-fieldcompletion action and a new "Open at this field" link on character change-card rows (only for anchored fields). A refused editor leave drops the reveal with the navigation.app_datacharacter.updatestep (server action aliases included) writes a field of the open character, that field gets a faint edge glow; only that step'stool_endor the run end clears it. If the field is scrolled out of view, a "Prof. Mari is here" chip button at the editor edge scrolls back to it.confirmEditorLeaveinlib/editor-leave.ts, used by the omnibar and the change card.scripts/regressions/mari-editor-fields.regression.ts.Not in this PR: hovering a change-card row to pulse the field (comes with the floating companion in slice 4, while Mari is still a modal); anchors on Convo-tab and lazy sections.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run (not manual):
pnpm checkexit 0 (one pre-existing warning inHomeProfessorMariChat.tsx, not touched here);node ./scripts/run-regressions.mjs --filter scripts/regressions/mari-editor-fields.regression.tspassed; Playwright on a throwaway instance at 1440 and 390 px confirmed focus → field id, reveal scroll + pulse, glow and the off-screen chip (glow/chip driven by setting the store value, no model run). An Opus read-only review found 8 issues; all fixed in the second commit.To verify manually:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Screenshots of the pulse, the glow and the off-screen chip at 1440 and 390 px were taken locally (
.tmp/mari-companion/slice2/); attach on request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.