mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7778] [MERGED] feat(onboarding): review the persona your answers create before committing #7925
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#7925
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/7778
Author: @ylli-selmani
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/onboarding-persona-review📝 Commits (3)
27afa76feat(onboarding): review the persona your answers create before committingb6e8ffafix(onboarding): keep the Name row visible and highlight the answers in the previewe56a0b1fix(onboarding): only treat an answer as authored text when it is a whole word📊 Changes
8 files changed (+465 additions, -168 deletions)
View changed files
📝
docs/characters/interactive-onboarding.md(+2 -1)📝
packages/client/src/components/characters/CharacterEditor.tsx(+1 -40)📝
packages/client/src/components/characters/CharacterOnboardingModal.tsx(+256 -127)➕
packages/client/src/components/characters/onboarding-field-copy.ts(+52 -0)➕
packages/client/src/lib/onboarding-preview-highlight.ts(+83 -0)📝
packages/client/src/localization/locales/en.json(+7 -0)➕
scripts/regressions/onboarding-preview-highlight.regression.ts(+63 -0)📝
scripts/regressions/tsconfig.client-lanes.json(+1 -0)📄 Description
Linked issue
Closes #7777
Why this change
What changed
{{#if}}branch) stays plain: the highlight only ever claims text the answers inserted.Name: {{player}}, so the persona's own name is visible without reading the description. Before the player types one it reads "Not answered yet." instead of disappearing.resolveOnboardingPersonathe save path calls, so the two cannot drift apart.CharacterEditor.tsxintocharacters/onboarding-field-copy.ts, so the setup-wizard chunk can reuse them without pulling the lazy-loaded Character Editor into it.docs/characters/interactive-onboarding.md.Design notes
ponytail:comment with the upgrade path.SECONDARY_BUTTON(bg--secondary, 1px--borderring,--accenthover), adapted to this window'srounded-xl.Known limitations / follow-ups
docs-i18nlanguage packs.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Local results (agent-run):
pnpm check: exit 0 (one pre-existingHomeProfessorMariChatexhaustive-deps warning, unrelated).pnpm localization:check: exit 0, 6 new canonical keys, no untranslated UI strings.node scripts/run-regressions.mjs --filter onboarding-preview-highlight: 1/1 passed. The regression pins that inserted answers are marked, a word the card also writes in that field is never marked, matches are whole values rather than substrings, the longest value wins, and the segments always rebuild the resolved text.{{#if}}branches resolved from the answers.<mark>-highlighted in every field where the card only inserts them, and the fields where the card writes the same word itself stay plain; the legend line is present.To verify by hand:
{{#if}}condition) and re-open the preview; the affected field should change.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)
The questions footer with the new button, and the preview in dark and light theme (demo card: Seraphine; answers: Ylli, ranger, Crown, dragons, knows Seraphine, tall and sharp-featured, stolen ledger). The player's words carry a soft accent wash.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.