[PR #8302] [MERGED] fix: make mobile settings reachable and configure extension revision retention #8264

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

📋 Pull Request Information

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

Base: staging ← Head: fix/sweep-mobile-settings-20261025


📝 Commits (10+)

  • d0b7709 fix(chat-settings): keep character appearance controls with the roster
  • b9aec31 feat(extensions): configure revision retention and keep mobile fields visible
  • 7cd8103 fix(mari): reserve composer space for landscape touch scrolling
  • 8069d4a style: format focused mobile settings proof
  • 57c4678 fix(settings): clarify pruning and preserve safe revision defaults
  • 5a8c669 fix(localization): sort revision history strings in canonical catalog
  • 09200a3 fix(localization): preserve canonical English collation
  • be0f905 fix(chat): announce selected card styling mode
  • cb355bc style(e2e): format card mode assertions
  • 2609c67 test: isolate global revision retention by mobile project

📊 Changes

17 files changed (+907 additions, -154 deletions)

View changed files

📝 docs/appearance/card-css-theming.md (+6 -6)
📝 docs/extending/personal-extensions.md (+2 -0)
📝 e2e/mari-composer-stack.e2e.ts (+35 -1)
➕ e2e/mobile-settings-sweep.e2e.ts (+284 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+77 -75)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+4 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+6 -1)
📝 packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx (+70 -1)
📝 packages/client/src/hooks/use-personal-extensions.ts (+18 -0)
📝 packages/client/src/localization/locales/en.json (+12 -2)
📝 packages/client/src/styles/globals.css (+1 -1)
📝 packages/client/src/styles/mari.css (+13 -0)
📝 packages/server/src/middleware/rate-limit.ts (+14 -0)
📝 packages/server/src/routes/personal-extensions.routes.ts (+24 -0)
📝 packages/server/src/services/extensions/personal-extension-storage.service.ts (+104 -66)
📝 packages/shared/src/schemas/personal-extension.schema.ts (+9 -0)
➕ scripts/regressions/extension-revision-retention.regression.ts (+228 -0)

📄 Description

Linked issues

Closes #8281. Closes #8282. Closes #8283. Closes #8236.

Why this change

Mobile landscape layouts and keyboard panning can leave controls outside the usable scroll area. Character appearance settings also belong beside the roster, and extension owners need control over how many code snapshots are retained.

What changed

  • Move the existing name-color toggle and applicable card-CSS modes into Characters directly below Add from Folder. Game keeps its card-CSS controls in Party. Selected modes expose their state to assistive technology and use the theme foreground token.
  • Reserve real layout space for Professor Mari's composer on landscape touch devices so the transcript has an uncovered touch scrollport.
  • Reuse the existing focused-field keyboard helper in the connection editor, keeping the field inside its own scroll area while preserving manual scrolling.
  • Add Settings → Addons → Extension revision history, with a global 0–10 limit (default 10), explicit confirmation before reducing retention or pruning surplus restored revisions, and atomic pruning/update/rollback behavior. Pruning changes only historical snapshots, preserving current code, approval/enabled state and saved data.
  • Keep iOS confirmation dialogs opaque under gradient accent themes by restoring the intended opaque rule’s specificity.
  • Bound revision-history reads and writes with a shared 30/minute rule in the actual request hook and matching route metadata.
  • Update the English UI catalog and guides. Translated documentation follow-up: #8303.

Local validation

  • Full pnpm check passed for production retention/rate-limit repair 6b2433e97. The subsequent helper reuse passed client TypeScript build, scoped ESLint/formatting, and all four unchanged mobile Chromium/WebKit keyboard cases. Final one-selector iOS opacity repair and test changes passed formatting/E2E types and two WebKit dark/light computed-style cases. Final head: 1996ba7c2b.
  • Retention regression passed: default/corrupt settings, client/server and external extensions, confirmed pruning, zero retention, rollback, saved data/approval preservation and concurrent updates across storage instances. The real-route restored-surplus repro failed before the repair (unconfirmed 3→5 returned 200); it now preserves all 8 revisions with 409 for equal or raised limits, preserves active approval/enabled state after confirmed pruning, and accepts increases that prune nothing.
  • The actual rate hook returns 429 for both GET/PATCH after the shared 30-request burst, before privileged handlers or pruning; generic route-rate regressions also passed.
  • Repair browser proof: 10 passed, 2 existing shared-state mobile-Chromium skips. New page-isolated server-409 cancellation/confirmation/retry cases pass in dark/light on all three browser projects; existing retention persistence flows also pass.
  • Existing extension-list and extension-security regressions passed, including the macOS server sandbox fixture.
  • Focused browser matrix: 19 passed; 2 intentional desktop keyboard skips. Covers dark/light desktop Chromium, mobile Chromium and mobile WebKit; roleplay and Game control placement/persistence; retention confirmation/reload; keyboard-pan visibility; landscape quick-option reachability.
  • Desktop shell smoke plus final selected-mode assertions: 9 passed.
  • Confirmation screenshots wait for both Framer Motion modal/panel opacities to reach 1; the final iOS cases assert opaque backing and retained gradient accents. Baseline CSS specificity allowed background text to bleed through the dialog; the final dark/light images are clear.
  • Local CodeRabbit review completed with findings addressed: count-neutral confirmation copy, shared retention constants, theme foreground token and selected-mode accessibility. Global retention tests now use one mobile project to avoid shared-state races. Duplicate reports described the same fixes. A follow-up accessibility-delta review completed with zero findings. The final nine-file retention/rate-limit/helper/opacity follow-up completed with zero findings at head 1996ba7c2. No paid overages were enabled.

Proof limits and manual verification

The baseline staging landscape test could programmatically scroll to and trial-click the quick options. The new regression additionally verifies a touch scrollport that ends above the composer; this is layout hardening supported by the reported screenshot, not a claim of physical-device reproduction. The keyboard-pan fixture fails with the unchanged staging editor and passes with this fix. Browser emulation does not open a native iPhone keyboard.

  • Manually verify Professor Mari quick options in landscape on a physical phone.
  • Manually verify connection-name visibility while the native mobile keyboard opens, pans and closes.
  • Manually verify Characters/Party appearance controls in dark and light themes.
  • Manually verify retention confirmation, pruning and rollback with disposable extensions.

Docs and release impact

Updated docs/appearance/card-css-theming.md and docs/extending/personal-extensions.md; #8303 tracks translations. No release metadata or storage-format change.

UI evidence

Representative dark/light desktop/mobile PNGs were retained and visually inspected in the focused HTML report. Mobile WebKit evidence includes reachable landscape quick options, focused connection-name visibility, Characters controls, and the complete revision-history setting. Current-head Dottore is Viable, With Notes with no open threads. Hosted required checks and staging integration are recorded separately from local evidence. Final clear iOS confirmation proof is attached in the conversation.


🔄 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/8302 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/sweep-mobile-settings-20261025` --- ### 📝 Commits (10+) - [`d0b7709`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d0b77098984e4b4d025c22b99bc8a4fccb5b97b4) fix(chat-settings): keep character appearance controls with the roster - [`b9aec31`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b9aec319b41a6a4c2814dd651b718800b93eab67) feat(extensions): configure revision retention and keep mobile fields visible - [`7cd8103`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7cd8103e53e8eccb0042c313bb1c2c4b7b2982b8) fix(mari): reserve composer space for landscape touch scrolling - [`8069d4a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8069d4a4c49c6fdf97edb0cccf5a3a7dd4d5b4df) style: format focused mobile settings proof - [`57c4678`](https://github.com/Pasta-Devs/Marinara-Engine/commit/57c467856a3d25cd35328ff31fd92ec43159d182) fix(settings): clarify pruning and preserve safe revision defaults - [`5a8c669`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a8c6695cb982ef1691843da99c1815e86c5d9f7) fix(localization): sort revision history strings in canonical catalog - [`09200a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09200a38c419e3c3e51c65bd33292de6caab4c06) fix(localization): preserve canonical English collation - [`be0f905`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be0f90540218ffa17449332dd202a0e7acca6eb1) fix(chat): announce selected card styling mode - [`cb355bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cb355bc1acd93ea31ee5eeec3fb5891f88d409da) style(e2e): format card mode assertions - [`2609c67`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2609c671008b4fb5c69611a82df74fc8101750fc) test: isolate global revision retention by mobile project ### 📊 Changes **17 files changed** (+907 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `docs/appearance/card-css-theming.md` (+6 -6) 📝 `docs/extending/personal-extensions.md` (+2 -0) 📝 `e2e/mari-composer-stack.e2e.ts` (+35 -1) ➕ `e2e/mobile-settings-sweep.e2e.ts` (+284 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+77 -75) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+4 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+6 -1) 📝 `packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx` (+70 -1) 📝 `packages/client/src/hooks/use-personal-extensions.ts` (+18 -0) 📝 `packages/client/src/localization/locales/en.json` (+12 -2) 📝 `packages/client/src/styles/globals.css` (+1 -1) 📝 `packages/client/src/styles/mari.css` (+13 -0) 📝 `packages/server/src/middleware/rate-limit.ts` (+14 -0) 📝 `packages/server/src/routes/personal-extensions.routes.ts` (+24 -0) 📝 `packages/server/src/services/extensions/personal-extension-storage.service.ts` (+104 -66) 📝 `packages/shared/src/schemas/personal-extension.schema.ts` (+9 -0) ➕ `scripts/regressions/extension-revision-retention.regression.ts` (+228 -0) </details> ### 📄 Description ## Linked issues Closes #8281. Closes #8282. Closes #8283. Closes #8236. ## Why this change Mobile landscape layouts and keyboard panning can leave controls outside the usable scroll area. Character appearance settings also belong beside the roster, and extension owners need control over how many code snapshots are retained. ## What changed - Move the existing name-color toggle and applicable card-CSS modes into Characters directly below Add from Folder. Game keeps its card-CSS controls in Party. Selected modes expose their state to assistive technology and use the theme foreground token. - Reserve real layout space for Professor Mari's composer on landscape touch devices so the transcript has an uncovered touch scrollport. - Reuse the existing focused-field keyboard helper in the connection editor, keeping the field inside its own scroll area while preserving manual scrolling. - Add Settings → Addons → Extension revision history, with a global 0–10 limit (default 10), explicit confirmation before reducing retention or pruning surplus restored revisions, and atomic pruning/update/rollback behavior. Pruning changes only historical snapshots, preserving current code, approval/enabled state and saved data. - Keep iOS confirmation dialogs opaque under gradient accent themes by restoring the intended opaque rule’s specificity. - Bound revision-history reads and writes with a shared 30/minute rule in the actual request hook and matching route metadata. - Update the English UI catalog and guides. Translated documentation follow-up: #8303. ## Local validation - Full `pnpm check` passed for production retention/rate-limit repair 6b2433e97. The subsequent helper reuse passed client TypeScript build, scoped ESLint/formatting, and all four unchanged mobile Chromium/WebKit keyboard cases. Final one-selector iOS opacity repair and test changes passed formatting/E2E types and two WebKit dark/light computed-style cases. Final head: 1996ba7c2b003c24e6dc6662de284a1665a0de26. - Retention regression passed: default/corrupt settings, client/server and external extensions, confirmed pruning, zero retention, rollback, saved data/approval preservation and concurrent updates across storage instances. The real-route restored-surplus repro failed before the repair (unconfirmed 3→5 returned 200); it now preserves all 8 revisions with 409 for equal or raised limits, preserves active approval/enabled state after confirmed pruning, and accepts increases that prune nothing. - The actual rate hook returns 429 for both GET/PATCH after the shared 30-request burst, before privileged handlers or pruning; generic route-rate regressions also passed. - Repair browser proof: 10 passed, 2 existing shared-state mobile-Chromium skips. New page-isolated server-409 cancellation/confirmation/retry cases pass in dark/light on all three browser projects; existing retention persistence flows also pass. - Existing extension-list and extension-security regressions passed, including the macOS server sandbox fixture. - Focused browser matrix: 19 passed; 2 intentional desktop keyboard skips. Covers dark/light desktop Chromium, mobile Chromium and mobile WebKit; roleplay and Game control placement/persistence; retention confirmation/reload; keyboard-pan visibility; landscape quick-option reachability. - Desktop shell smoke plus final selected-mode assertions: 9 passed. - Confirmation screenshots wait for both Framer Motion modal/panel opacities to reach 1; the final iOS cases assert opaque backing and retained gradient accents. Baseline CSS specificity allowed background text to bleed through the dialog; the final dark/light images are clear. - Local CodeRabbit review completed with findings addressed: count-neutral confirmation copy, shared retention constants, theme foreground token and selected-mode accessibility. Global retention tests now use one mobile project to avoid shared-state races. Duplicate reports described the same fixes. A follow-up accessibility-delta review completed with zero findings. The final nine-file retention/rate-limit/helper/opacity follow-up completed with zero findings at head 1996ba7c2. No paid overages were enabled. ## Proof limits and manual verification The baseline staging landscape test could programmatically scroll to and trial-click the quick options. The new regression additionally verifies a touch scrollport that ends above the composer; this is layout hardening supported by the reported screenshot, not a claim of physical-device reproduction. The keyboard-pan fixture fails with the unchanged staging editor and passes with this fix. Browser emulation does not open a native iPhone keyboard. - [ ] Manually verify Professor Mari quick options in landscape on a physical phone. - [ ] Manually verify connection-name visibility while the native mobile keyboard opens, pans and closes. - [ ] Manually verify Characters/Party appearance controls in dark and light themes. - [ ] Manually verify retention confirmation, pruning and rollback with disposable extensions. ## Docs and release impact Updated `docs/appearance/card-css-theming.md` and `docs/extending/personal-extensions.md`; #8303 tracks translations. No release metadata or storage-format change. ## UI evidence Representative dark/light desktop/mobile PNGs were retained and visually inspected in the focused HTML report. Mobile WebKit evidence includes reachable landscape quick options, focused connection-name visibility, Characters controls, and the complete revision-history setting. Current-head Dottore is Viable, With Notes with no open threads. Hosted required checks and staging integration are recorded separately from local evidence. Final clear iOS confirmation proof is attached in the conversation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:04:13 +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#8264
No description provided.