[PR #5917] [MERGED] feat(ui): background, editor and Appearance UX sweep #6986

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5917
Author: @SpicyMarinara
Created: 9/7/2026
Status: ✅ Merged
Merged: 9/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/ux-feedback-sweep


📝 Commits (9)

  • 29c45ae docs: track UX feedback sweep for #5916
  • 1265cf1 feat(ui): address background, editor, appearance and home UX feedback
  • 7f43e04 Merge remote-tracking branch 'origin/staging' into feat/ux-feedback-sweep
  • c1051d5 fix(ui): handle UX sweep review edges and refresh regression coverage
  • 58e2db7 fix(backgrounds): preserve selection order through pending saves
  • 35c7397 fix(home): fit daily library cards and open widget destinations
  • 7d10fdb Merge remote-tracking branch 'origin/staging' into feat/ux-feedback-sweep
  • 753cd0d fix(ui): fit narrow desktop navigation and finish widget polish
  • fa578f7 test(ui): isolate preset regex checks from navigation tips

📊 Changes

41 files changed (+4688 additions, -3106 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 e2e/core-flows.e2e.ts (+73 -29)
📝 e2e/preset-regex.e2e.ts (+1 -0)
➕ e2e/ux-feedback-sweep.e2e.ts (+891 -0)
➕ packages/client/src/components/characters/CardLibraryPreview.tsx (+152 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+72 -104)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+39 -98)
📝 packages/client/src/components/characters/CharacterRegexSection.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+3 -19)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+14 -0)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+19 -12)
📝 packages/client/src/components/chat/HomeAchievements.tsx (+6 -3)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+51 -2)
➕ packages/client/src/components/chat/HomeCharacterLibrary.tsx (+76 -0)
📝 packages/client/src/components/chat/QuickConnectionSwitcher.tsx (+4 -1)
📝 packages/client/src/components/chat/QuickPersonaSwitcher.tsx (+4 -1)
📝 packages/client/src/components/layout/AppShell.tsx (+13 -9)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+2 -1)
📝 packages/client/src/components/layout/RightPanel.tsx (+46 -39)
📝 packages/client/src/components/layout/TopBar.tsx (+10 -22)

...and 21 more files

📄 Description

Linked issue

Addresses #5916. Related iPhone investigation: #5870. The physical-device crash report is not claimed resolved by emulation.

Why this change

Implement the maintainer's nine-point UX checklist using existing components and styling, and investigate the reported iPhone library/sidebar black screens without assuming an unproven GPU cause.

What changed

  • Roleplay setup and Roleplay/Game Chat Settings reuse the Background Library, with current/default previews, an image heading icon, the existing help tooltip, and matching Browse/Clear buttons. Conversation has no background drawer. Background selections persist immediately in request order, with authoritative cache recovery after a failed save.
  • The library gives mobile search more space, uses compact sort and icon-only import controls, a downward import icon on all devices, an accent Default label, and an unobstructed outside-corner selected marker.
  • Character, Persona, Lorebook and Preset editors show continuous sections with themed dividers and the existing topbar as scroll navigation. Heavy Character/Persona media sections mount only as they approach the viewport and retain drafts once opened. Navigation stays aligned while those sections expand, and adding a Lorebook entry scrolls to the new row. Existing save paths run before leaving; failed form saves keep the editor mounted, edits made during a pending save are not discarded, and the latest requested destination wins. Focused fields flush their existing blur autosave on keyboard/back navigation too.
  • Appearance has App / Conversation / Roleplay / Game categories. App contains only App Style, Text & Scale, Atmosphere and Backgrounds. The compact labels stay on one line and the control scrolls with the content, without a separate divider beneath it. Search/Quick Access select the relevant category. Tracker Panel is no longer collapsible; Atmosphere describes both Roleplay and Game.
  • Reuse the existing saved sidebar widths and bounds for a desktop-width control (current 320px default, 280–480px range); both sidebars adapt together. Narrow desktop windows switch to the existing tablet/mobile overlay navigation before two configured sidebar widths crowd the topbar. Mobile panel sizing is unchanged.
  • Desktop Roleplay Connections/Personas composer pickers use the same themed surface as Trigger Response, matching the mobile fix.
  • An opt-in Character Library home widget reuses Full Library previews, the Recent Chats footprint and existing rearrangement controls. Four equal-sized daily cards fit without internal scrolling or extra Chat/Browse buttons. Selecting a card opens that card in Full Library, including cards outside its first page; selecting the widget body opens the library. The Recent Chats widget body opens Chats while individual chat cards and drag handles retain their own actions. Loading, empty and retry states are included.
  • Achievements have compact mobile highlights and comfortable inner padding on both mobile and desktop, without clipping the final highlight.
  • Send on Enter mode options and tracker temperature options use the current rounded-square styling. The existing Dark/Light scheme buttons already use rounded-md rather than capsules.
  • Hidden resource/Settings panels suspend effects via React's existing Activity support while retaining local state. Visited-panel sets belong to the mounted instance. iOS overlays avoid live backdrop blur; full-screen navigation and modal backings use opaque themed surfaces, and opened modals release their entry transform. No reload timer, dependency, settings reset or user opt-in is introduced.

The larger whitespace diff in SettingsPanel/ui.store comes from wrapping/reordering existing JSX and the routing setter, not replacing the existing settings or storage implementation. git diff -w isolates the behavioral changes.

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

Recorded local evidence (checkboxes above remain a human TO-DO list):

  • pnpm check passed, including localization, formatting, TypeScript, ESLint and production build. Existing Vite circular-chunk warning remains.
  • node scripts/run-regressions.mjs --filter scripts/regressions/ux-feedback-sweep.regression.ts: passed; stable daily sampling, unchanged input, and editor routing gate/deletion bypass.
  • Final combined browser run: 62 passed, 4 intended project skips (66 total) across desktop Chromium, mobile Chromium and iPhone-sized WebKit. Coverage includes all four editors, failed-save retention, newer pending edits, latest queued destination, focused prompt autosave, deferred media, navigation after layout growth, new-entry scrolling, category/Quick Access behavior, 280px label fit, persistence, ordered background saves and failed-save recovery, mode-specific background selection/help, mobile library layout, matching background controls and desktop composer surfaces, narrow-desktop overlay navigation, fitted widgets, repeated offscreen character navigation, and independent widget/body/card/drag actions.
  • Selected existing browser regressions also passed for library touch/desktop drag, Home widget pointer dragging, topbar layout/theme behavior, responsive editor drafts, expanded fields, and accent animations. The independent swipe-preference suite passed 6/6. Older assertions now navigate the new categories and expect save-on-leave instead of discard banners.
  • Updated the two existing source-contract regressions affected by shared card extraction and editor leave routing; both targeted runs passed. The complete Node regression CI job passed on product commit 753cd0db8. A full local run was not clean: the existing development server owns the normal storage lease, and overriding the data directory changes two unrelated tests' path assumptions. The development server and its lease were left untouched.
  • Production Docker image built and ran against isolated data using product commit 753cd0db8. Chromium and WebKit exercised the final widgets, card navigation, Appearance and editors; a three-minute idle Background Library remained responsive without document reload, followed by 18 sidebar switches per browser without unhandled page errors. No real model/provider calls were made.
  • Before/after screenshots use synthetic local fixtures and were visually inspected. In-app Browser had no connected browser; the repository Playwright harness supplied the browser proof.

Manually verify on a physical iPhone Home Screen installation: idle library, sidebar switching, image arrival, message editing and older-history scrolling. macOS WebKit/arm64 Docker cannot reproduce or disprove an iOS WebContent/GPU process failure on the reported iPhone/Linux x64 deployment. These are targeted resource/compositing mitigations, not proof that every black screen is fixed.

Storage/leave-safety claim boundary: no schema or version changes; existing records, legacy sidebar defaults and existing save/mutation APIs are reused. Positive proof includes save/reopen and preference/background reload. Negative proof includes forced metadata-save errors, pending-save newer edits, missing Conversation background controls and off-by-default widget visibility. Physical browser-process termination and browser/tab shutdown saving remain outside this proof.

Docs and release impact

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

UI evidence (if applicable)

Before/after proof gallery — 23 screenshots covering desktop/mobile, dark/light Appearance, the library, editors, background drawers/setup, desktop composer pickers and both widgets. Final production proof uses product commit 753cd0db8. No private chat screenshots are republished and no proof images are committed to the product repository.

Summary by CodeRabbit

  • New Features

    • Added a daily Character Library widget to the Home screen with browse and chat actions.
    • Added background selection to Roleplay setup and chat settings.
    • Added responsive character and persona library previews.
  • Bug Fixes

    • Improved mobile and narrow desktop navigation behavior.
    • Editors now use continuous scrolling, track the current section, and save changes before navigation.
    • Improved background selection persistence, ordering, search, and mobile layouts.
    • Preserved panel state while reducing unnecessary visual effects on mobile and iOS.
    • Improved chat mode menus, widget navigation, and achievement layouts.

🔄 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/5917 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/7/2026 **Status:** ✅ Merged **Merged:** 9/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/ux-feedback-sweep` --- ### 📝 Commits (9) - [`29c45ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/29c45ae6b09a21395dbbc3832fde45969ccd3447) docs: track UX feedback sweep for #5916 - [`1265cf1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1265cf192336bc1186463adb65f00093a571a1c2) feat(ui): address background, editor, appearance and home UX feedback - [`7f43e04`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f43e040eaca387569caee75cc641cc251344e57) Merge remote-tracking branch 'origin/staging' into feat/ux-feedback-sweep - [`c1051d5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1051d576eb407606552696804f228433b9ff6e1) fix(ui): handle UX sweep review edges and refresh regression coverage - [`58e2db7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58e2db70665e10f00344e428246b5ce966c332d7) fix(backgrounds): preserve selection order through pending saves - [`35c7397`](https://github.com/Pasta-Devs/Marinara-Engine/commit/35c7397260804d0120354e0677c9b75a11c8eb5c) fix(home): fit daily library cards and open widget destinations - [`7d10fdb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7d10fdb12019aa8c591d698e0c55f98dd3f26d2d) Merge remote-tracking branch 'origin/staging' into feat/ux-feedback-sweep - [`753cd0d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/753cd0db814efada7578ac15bd27fba6d68d3437) fix(ui): fit narrow desktop navigation and finish widget polish - [`fa578f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fa578f720508c4a74a88b32ec96ca417740f4f10) test(ui): isolate preset regex checks from navigation tips ### 📊 Changes **41 files changed** (+4688 additions, -3106 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `e2e/core-flows.e2e.ts` (+73 -29) 📝 `e2e/preset-regex.e2e.ts` (+1 -0) ➕ `e2e/ux-feedback-sweep.e2e.ts` (+891 -0) ➕ `packages/client/src/components/characters/CardLibraryPreview.tsx` (+152 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+72 -104) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+39 -98) 📝 `packages/client/src/components/characters/CharacterRegexSection.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+3 -19) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+14 -0) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+19 -12) 📝 `packages/client/src/components/chat/HomeAchievements.tsx` (+6 -3) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+51 -2) ➕ `packages/client/src/components/chat/HomeCharacterLibrary.tsx` (+76 -0) 📝 `packages/client/src/components/chat/QuickConnectionSwitcher.tsx` (+4 -1) 📝 `packages/client/src/components/chat/QuickPersonaSwitcher.tsx` (+4 -1) 📝 `packages/client/src/components/layout/AppShell.tsx` (+13 -9) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+2 -1) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+46 -39) 📝 `packages/client/src/components/layout/TopBar.tsx` (+10 -22) _...and 21 more files_ </details> ### 📄 Description ## Linked issue Addresses #5916. Related iPhone investigation: #5870. The physical-device crash report is not claimed resolved by emulation. ## Why this change Implement the maintainer's nine-point UX checklist using existing components and styling, and investigate the reported iPhone library/sidebar black screens without assuming an unproven GPU cause. ## What changed - Roleplay setup and Roleplay/Game Chat Settings reuse the Background Library, with current/default previews, an image heading icon, the existing help tooltip, and matching Browse/Clear buttons. Conversation has no background drawer. Background selections persist immediately in request order, with authoritative cache recovery after a failed save. - The library gives mobile search more space, uses compact sort and icon-only import controls, a downward import icon on all devices, an accent Default label, and an unobstructed outside-corner selected marker. - Character, Persona, Lorebook and Preset editors show continuous sections with themed dividers and the existing topbar as scroll navigation. Heavy Character/Persona media sections mount only as they approach the viewport and retain drafts once opened. Navigation stays aligned while those sections expand, and adding a Lorebook entry scrolls to the new row. Existing save paths run before leaving; failed form saves keep the editor mounted, edits made during a pending save are not discarded, and the latest requested destination wins. Focused fields flush their existing blur autosave on keyboard/back navigation too. - Appearance has **App / Conversation / Roleplay / Game** categories. App contains only App Style, Text & Scale, Atmosphere and Backgrounds. The compact labels stay on one line and the control scrolls with the content, without a separate divider beneath it. Search/Quick Access select the relevant category. Tracker Panel is no longer collapsible; Atmosphere describes both Roleplay and Game. - Reuse the existing saved sidebar widths and bounds for a desktop-width control (current 320px default, 280–480px range); both sidebars adapt together. Narrow desktop windows switch to the existing tablet/mobile overlay navigation before two configured sidebar widths crowd the topbar. Mobile panel sizing is unchanged. - Desktop Roleplay Connections/Personas composer pickers use the same themed surface as Trigger Response, matching the mobile fix. - An opt-in Character Library home widget reuses Full Library previews, the Recent Chats footprint and existing rearrangement controls. Four equal-sized daily cards fit without internal scrolling or extra Chat/Browse buttons. Selecting a card opens that card in Full Library, including cards outside its first page; selecting the widget body opens the library. The Recent Chats widget body opens Chats while individual chat cards and drag handles retain their own actions. Loading, empty and retry states are included. - Achievements have compact mobile highlights and comfortable inner padding on both mobile and desktop, without clipping the final highlight. - Send on Enter mode options and tracker temperature options use the current rounded-square styling. The existing Dark/Light scheme buttons already use rounded-md rather than capsules. - Hidden resource/Settings panels suspend effects via React's existing Activity support while retaining local state. Visited-panel sets belong to the mounted instance. iOS overlays avoid live backdrop blur; full-screen navigation and modal backings use opaque themed surfaces, and opened modals release their entry transform. No reload timer, dependency, settings reset or user opt-in is introduced. The larger whitespace diff in SettingsPanel/ui.store comes from wrapping/reordering existing JSX and the routing setter, not replacing the existing settings or storage implementation. `git diff -w` isolates the behavioral changes. ## 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 Recorded local evidence (checkboxes above remain a human TO-DO list): - `pnpm check` passed, including localization, formatting, TypeScript, ESLint and production build. Existing Vite circular-chunk warning remains. - `node scripts/run-regressions.mjs --filter scripts/regressions/ux-feedback-sweep.regression.ts`: passed; stable daily sampling, unchanged input, and editor routing gate/deletion bypass. - Final combined browser run: **62 passed, 4 intended project skips (66 total)** across desktop Chromium, mobile Chromium and iPhone-sized WebKit. Coverage includes all four editors, failed-save retention, newer pending edits, latest queued destination, focused prompt autosave, deferred media, navigation after layout growth, new-entry scrolling, category/Quick Access behavior, 280px label fit, persistence, ordered background saves and failed-save recovery, mode-specific background selection/help, mobile library layout, matching background controls and desktop composer surfaces, narrow-desktop overlay navigation, fitted widgets, repeated offscreen character navigation, and independent widget/body/card/drag actions. - Selected existing browser regressions also passed for library touch/desktop drag, Home widget pointer dragging, topbar layout/theme behavior, responsive editor drafts, expanded fields, and accent animations. The independent swipe-preference suite passed **6/6**. Older assertions now navigate the new categories and expect save-on-leave instead of discard banners. - Updated the two existing source-contract regressions affected by shared card extraction and editor leave routing; both targeted runs passed. The complete Node regression CI job passed on product commit `753cd0db8`. A full local run was not clean: the existing development server owns the normal storage lease, and overriding the data directory changes two unrelated tests' path assumptions. The development server and its lease were left untouched. - Production Docker image built and ran against isolated data using product commit `753cd0db8`. Chromium and WebKit exercised the final widgets, card navigation, Appearance and editors; a three-minute idle Background Library remained responsive without document reload, followed by 18 sidebar switches per browser without unhandled page errors. No real model/provider calls were made. - Before/after screenshots use synthetic local fixtures and were visually inspected. In-app Browser had no connected browser; the repository Playwright harness supplied the browser proof. **Manually verify on a physical iPhone Home Screen installation:** idle library, sidebar switching, image arrival, message editing and older-history scrolling. macOS WebKit/arm64 Docker cannot reproduce or disprove an iOS WebContent/GPU process failure on the reported iPhone/Linux x64 deployment. These are targeted resource/compositing mitigations, not proof that every black screen is fixed. Storage/leave-safety claim boundary: no schema or version changes; existing records, legacy sidebar defaults and existing save/mutation APIs are reused. Positive proof includes save/reopen and preference/background reload. Negative proof includes forced metadata-save errors, pending-save newer edits, missing Conversation background controls and off-by-default widget visibility. Physical browser-process termination and browser/tab shutdown saving remain outside this proof. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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) ## UI evidence (if applicable) [Before/after proof gallery](https://gist.github.com/SpicyMarinara/904e33eb4fbb9d1b72e261d14a5f108f) — 23 screenshots covering desktop/mobile, dark/light Appearance, the library, editors, background drawers/setup, desktop composer pickers and both widgets. Final production proof uses product commit `753cd0db8`. No private chat screenshots are republished and no proof images are committed to the product repository. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a daily Character Library widget to the Home screen with browse and chat actions. * Added background selection to Roleplay setup and chat settings. * Added responsive character and persona library previews. * **Bug Fixes** * Improved mobile and narrow desktop navigation behavior. * Editors now use continuous scrolling, track the current section, and save changes before navigation. * Improved background selection persistence, ordering, search, and mobile layouts. * Preserved panel state while reducing unnecessary visual effects on mobile and iOS. * Improved chat mode menus, widget navigation, and achievement layouts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:15:30 +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#6986
No description provided.