[PR #8021] [MERGED] fix(editors): mobile controls, accent colors, greeting generation and preset parameters #8059

Closed
opened 2026-10-24 04:10:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8021
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/editor-ui-preset-polish


📝 Commits (4)

  • ed38fdc fix(editors): simplify mobile avatar crop actions
  • 0751ef7 fix(editors): align theme controls and generate character greetings
  • cdb2c44 test(editors): use current labels and settings anchors
  • 048ba9f test(editors): navigate to Card before checking alternatives

📊 Changes

29 files changed (+1003 additions, -115 deletions)

View changed files

📝 docs/characters/creating-and-editing-characters.md (+3 -3)
📝 docs/prompts/generation-parameters.md (+2 -0)
📝 docs/prompts/presets.md (+2 -0)
📝 e2e/card-field-generation.e2e.ts (+134 -0)
➕ e2e/editor-ui-polish.e2e.ts (+344 -0)
📝 packages/client/src/components/characters/CardFieldAlternatives.tsx (+15 -8)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+41 -10)
➕ packages/client/src/components/characters/CharacterGreetingWand.tsx (+33 -0)
📝 packages/client/src/components/diagnostics/use-access-warning-banner.tsx (+1 -0)
📝 packages/client/src/components/panels/settings/AccessStatusSettings.tsx (+1 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+2 -2)
📝 packages/client/src/components/ui/AppBanner.tsx (+15 -4)
📝 packages/client/src/components/ui/AvatarCropWidget.tsx (+5 -6)
📝 packages/client/src/hooks/use-card-field-generation.ts (+9 -8)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/client/src/styles/globals.css (+9 -2)
📝 packages/server/src/db/default-preset.json (+1 -1)
📝 packages/server/src/db/seed.ts (+2 -0)
📝 packages/server/src/routes/chats.routes.ts (+5 -1)
📝 packages/server/src/routes/generate.routes.ts (+36 -23)

...and 9 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8020

Why this change

Mobile editor controls wrap or use inconsistent styles, several actions ignore the selected chroma color, and the default editor surface differs from the sidebar. The built-in Universal preset also synthesizes generation parameters when its stored settings are empty, so clearing visible values alone does not remove its overrides.

What changed

  • Use text-only Full and accent-colored Remove actions in avatar crop; align alternative-field chat counts and the stock preset copy action.
  • Match all six editor backgrounds to the default dark sidebar while retaining light, SillyTavern and custom theme overrides.
  • Use unified tag/greeting actions and accent-colored history/greeting delete controls.
  • Add AI wands for character first and alternate greetings with 100–300-word seed/reference prompts and protection against later edits, reordering, deletion and navigation. Existing dialogue wands remain available in both Character and Persona Card editors; no persona greeting feature is added.
  • Remove the built-in Universal preset's parameter layer from storage, upgrades, prompt assembly, generation, macros and previews. Preserve connection/chat settings, Engine defaults and user-created presets.
  • Use accent colors for passwordless-access warnings and their banner while preserving warning severity and dismissal behavior.
  • Update the character and preset guides; translations tracked in #8024.

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

Recorded automated evidence: implementation pnpm check passed; container build and /api/health passed; production startup/reload passed 3/3 in desktop Chromium, mobile Chromium and mobile WebKit. Focused generation and stock-parameter regressions passed, including seed upgrades, custom-preset controls, real assembly, all-mode parameter previews, runtime connection/chat precedence, and local HTTP provider captures through real Roleplay/Conversation generation and dry run. Game live provider capture is not claimed; its existing runtime regression and stock parameter preview passed.

Final browser results: e2e/editor-ui-polish.e2e.ts 18/18 and e2e/card-field-generation.e2e.ts 27/27 across desktop Chromium, mobile Chromium and mobile WebKit; focused alternative-field selection/assignment/deletion/persistence 2/2 in desktop Chromium and mobile WebKit; pnpm smoke:ui 7/7. Local CodeRabbit completed with 0 findings across all 29 changed files. The later commits only correct browser-fixture labels, readiness and normal section navigation; final E2E TypeScript checks passed. No product source changed after the full local check and local review.

Implementation check/review source: 0751ef76016fd98ca93d982994e46f6a57df0b31. Final source including fixture corrections: 048ba9f9fe07a34eb63f76f4247c2af4113f12bd.

Commands: pnpm check; pnpm regression:prompt; focused Node runner filters card-field-generation, stock-preset-parameters, stock-preset-protection, preset-token-limits, nanogpt-glm-reasoning-off, agent-connection-parameters, chat-variables-preset-precedence, game-generation-parameters; pnpm regression:ui e2e/card-field-generation.e2e.ts --workers=1; pnpm regression:ui e2e/editor-ui-polish.e2e.ts --workers=1; focused alternative-field cases; pnpm smoke:ui; pnpm smoke:production; pnpm check:e2e-types; Docker build/run/health; local CodeRabbit review --agent --fresh --committed --base-commit c036554bb0b91c2e8f3fc6cae786bae6ce05ef42. Browser commands used disposable existing servers on ports 7840/7842; production checks used the built container on 7849.

Initial mobile module-loading failures occurred during shared-package rebuilds; unchanged replay after a clean development-server restart passed. The visual fixture's WebKit cross-section click was reproduced unchanged, then corrected to use the normal Card navigation; no forced click, timeout increase, skipped case, weakened assertion, or production workaround. Earlier failure traces are retained separately from final passing evidence.

Final hosted evidence for 048ba9f9fe07a34eb63f76f4247c2af4113f12bd: 8/8 required checks passed, the complete Node regression suite passed 964/964, and the platform matrix passed 10/10. Dottore's full examination completed Viable, With Notes, recording the exact final head: 54 model calls, four candidates examined and rejected, zero confirmed defects, zero unverified/capped candidates and zero failed verification controls. The first examination timed out in the model stream; the unchanged full retry completed.

Review dispositions: two nonblocking style notes (joining existing localized sentences and reusing a predicate) do not require behavior changes. The Game live capture and dedicated macro/preview-endpoint regressions remain explicitly scoped proof gaps. Source tracing confirmed the shared reasoning resolver layers connection/chat settings, Engine formatting defaults remain intact, scene/Mari consumers use only assembled messages, and preview consumers safely accept an empty parameter map. There are no unresolved review threads.

Merged into staging at 090fd317654d2f5b6ff958887af2f18883de4e98; both the reviewed head and merge commit were verified as ancestors of origin/staging. Post-merge workflows are separate from these passing PR checks.

Manual verification notes

  • Manually verify avatar crop actions and alternative-field counts on a physical phone.
  • Manually verify greeting generation, edits and Save with a configured external model.
  • Manually verify editor colors, history/tag/greeting actions and preset copy placement with preferred themes.
  • Manually verify access warning dismissal and settings with the install's actual network exposure.

Browser emulation and local provider fixtures do not establish physical-device or external-provider behavior.

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
  • Version/release files updated (only if this PR includes a version bump)

English guides updated. Translation follow-up: #8024. No version bump or changelog edit.

UI evidence (if applicable)

Before/after browser evidence gallery (source gist). Includes the original blue editor/yellow access banner, all six grey editor surfaces, light/SillyTavern preservation, mobile avatar controls, alternative fields, greetings, preset copy placement and accent access warnings. Screenshots contain disposable fixtures; browser emulation only.


🔄 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/8021 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/editor-ui-preset-polish` --- ### 📝 Commits (4) - [`ed38fdc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed38fdc308c0daafc9dc84c3777b70126ac655c8) fix(editors): simplify mobile avatar crop actions - [`0751ef7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0751ef76016fd98ca93d982994e46f6a57df0b31) fix(editors): align theme controls and generate character greetings - [`cdb2c44`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cdb2c44c489fdc211cef62661a59d4081e11b56c) test(editors): use current labels and settings anchors - [`048ba9f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/048ba9f9fe07a34eb63f76f4247c2af4113f12bd) test(editors): navigate to Card before checking alternatives ### 📊 Changes **29 files changed** (+1003 additions, -115 deletions) <details> <summary>View changed files</summary> 📝 `docs/characters/creating-and-editing-characters.md` (+3 -3) 📝 `docs/prompts/generation-parameters.md` (+2 -0) 📝 `docs/prompts/presets.md` (+2 -0) 📝 `e2e/card-field-generation.e2e.ts` (+134 -0) ➕ `e2e/editor-ui-polish.e2e.ts` (+344 -0) 📝 `packages/client/src/components/characters/CardFieldAlternatives.tsx` (+15 -8) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+41 -10) ➕ `packages/client/src/components/characters/CharacterGreetingWand.tsx` (+33 -0) 📝 `packages/client/src/components/diagnostics/use-access-warning-banner.tsx` (+1 -0) 📝 `packages/client/src/components/panels/settings/AccessStatusSettings.tsx` (+1 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+2 -2) 📝 `packages/client/src/components/ui/AppBanner.tsx` (+15 -4) 📝 `packages/client/src/components/ui/AvatarCropWidget.tsx` (+5 -6) 📝 `packages/client/src/hooks/use-card-field-generation.ts` (+9 -8) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/client/src/styles/globals.css` (+9 -2) 📝 `packages/server/src/db/default-preset.json` (+1 -1) 📝 `packages/server/src/db/seed.ts` (+2 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+5 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+36 -23) _...and 9 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #8020 ## Why this change Mobile editor controls wrap or use inconsistent styles, several actions ignore the selected chroma color, and the default editor surface differs from the sidebar. The built-in Universal preset also synthesizes generation parameters when its stored settings are empty, so clearing visible values alone does not remove its overrides. ## What changed - Use text-only Full and accent-colored Remove actions in avatar crop; align alternative-field chat counts and the stock preset copy action. - Match all six editor backgrounds to the default dark sidebar while retaining light, SillyTavern and custom theme overrides. - Use unified tag/greeting actions and accent-colored history/greeting delete controls. - Add AI wands for character first and alternate greetings with 100–300-word seed/reference prompts and protection against later edits, reordering, deletion and navigation. Existing dialogue wands remain available in both Character and Persona Card editors; no persona greeting feature is added. - Remove the built-in Universal preset's parameter layer from storage, upgrades, prompt assembly, generation, macros and previews. Preserve connection/chat settings, Engine defaults and user-created presets. - Use accent colors for passwordless-access warnings and their banner while preserving warning severity and dismissal behavior. - Update the character and preset guides; translations tracked in #8024. ## 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` Recorded automated evidence: implementation `pnpm check` passed; container build and `/api/health` passed; production startup/reload passed 3/3 in desktop Chromium, mobile Chromium and mobile WebKit. Focused generation and stock-parameter regressions passed, including seed upgrades, custom-preset controls, real assembly, all-mode parameter previews, runtime connection/chat precedence, and local HTTP provider captures through real Roleplay/Conversation generation and dry run. Game live provider capture is not claimed; its existing runtime regression and stock parameter preview passed. Final browser results: `e2e/editor-ui-polish.e2e.ts` **18/18** and `e2e/card-field-generation.e2e.ts` **27/27** across desktop Chromium, mobile Chromium and mobile WebKit; focused alternative-field selection/assignment/deletion/persistence **2/2** in desktop Chromium and mobile WebKit; `pnpm smoke:ui` **7/7**. Local CodeRabbit completed with **0 findings across all 29 changed files**. The later commits only correct browser-fixture labels, readiness and normal section navigation; final E2E TypeScript checks passed. No product source changed after the full local check and local review. Implementation check/review source: `0751ef76016fd98ca93d982994e46f6a57df0b31`. Final source including fixture corrections: `048ba9f9fe07a34eb63f76f4247c2af4113f12bd`. Commands: `pnpm check`; `pnpm regression:prompt`; focused Node runner filters `card-field-generation`, `stock-preset-parameters`, `stock-preset-protection`, `preset-token-limits`, `nanogpt-glm-reasoning-off`, `agent-connection-parameters`, `chat-variables-preset-precedence`, `game-generation-parameters`; `pnpm regression:ui e2e/card-field-generation.e2e.ts --workers=1`; `pnpm regression:ui e2e/editor-ui-polish.e2e.ts --workers=1`; focused alternative-field cases; `pnpm smoke:ui`; `pnpm smoke:production`; `pnpm check:e2e-types`; Docker build/run/health; local CodeRabbit `review --agent --fresh --committed --base-commit c036554bb0b91c2e8f3fc6cae786bae6ce05ef42`. Browser commands used disposable existing servers on ports 7840/7842; production checks used the built container on 7849. Initial mobile module-loading failures occurred during shared-package rebuilds; unchanged replay after a clean development-server restart passed. The visual fixture's WebKit cross-section click was reproduced unchanged, then corrected to use the normal Card navigation; no forced click, timeout increase, skipped case, weakened assertion, or production workaround. Earlier failure traces are retained separately from final passing evidence. Final hosted evidence for `048ba9f9fe07a34eb63f76f4247c2af4113f12bd`: **8/8 required checks passed**, the complete Node regression suite passed **964/964**, and the platform matrix passed **10/10**. [Dottore's full examination](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39679494907) completed **Viable, With Notes**, recording the exact final head: 54 model calls, four candidates examined and rejected, zero confirmed defects, zero unverified/capped candidates and zero failed verification controls. The first examination timed out in the model stream; the unchanged full retry completed. Review dispositions: two nonblocking style notes (joining existing localized sentences and reusing a predicate) do not require behavior changes. The Game live capture and dedicated macro/preview-endpoint regressions remain explicitly scoped proof gaps. Source tracing confirmed the shared reasoning resolver layers connection/chat settings, Engine formatting defaults remain intact, scene/Mari consumers use only assembled messages, and preview consumers safely accept an empty parameter map. There are no unresolved review threads. Merged into `staging` at `090fd317654d2f5b6ff958887af2f18883de4e98`; both the reviewed head and merge commit were verified as ancestors of `origin/staging`. Post-merge workflows are separate from these passing PR checks. ### Manual verification notes - [ ] Manually verify avatar crop actions and alternative-field counts on a physical phone. - [ ] Manually verify greeting generation, edits and Save with a configured external model. - [ ] Manually verify editor colors, history/tag/greeting actions and preset copy placement with preferred themes. - [ ] Manually verify access warning dismissal and settings with the install's actual network exposure. Browser emulation and local provider fixtures do not establish physical-device or external-provider behavior. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) English guides updated. Translation follow-up: #8024. No version bump or changelog edit. ## UI evidence (if applicable) [Before/after browser evidence gallery](https://gist.githack.com/SpicyMarinara/108279f7bce517a0c7144b805ca39076/raw/dce9d1fe1a6f9b4a83f42329a5d001f95da018cb/marinara-editor-ui-polish.html) ([source gist](https://gist.github.com/SpicyMarinara/108279f7bce517a0c7144b805ca39076)). Includes the original blue editor/yellow access banner, all six grey editor surfaces, light/SillyTavern preservation, mobile avatar controls, alternative fields, greetings, preset copy placement and accent access warnings. Screenshots contain disposable fixtures; browser emulation only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:03 +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#8059
No description provided.