[PR #1111] [MERGED] Keep UI sizing device-local #4926

Closed
opened 2026-10-22 04:11:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1111
Author: @cha1latte
Created: 5/22/2026
Status: ✅ Merged
Merged: 5/22/2026
Merged by: @cha1latte

Base: staging ← Head: feature/issue-1099-device-local-ui-size


📝 Commits (1)

  • f259d63 Keep UI sizing device-local

📊 Changes

3 files changed (+36 additions, -11 deletions)

View changed files

📝 packages/client/src/components/panels/SettingsPanel.tsx (+2 -2)
📝 packages/client/src/hooks/use-settings-sync.ts (+31 -4)
📝 packages/client/src/stores/ui.store.ts (+3 -5)

📄 Description

Linked issue

Closes #1099

Why this change

  • Display Size and Chat Font Size were included in the server-synced UI settings blob, so a size that worked on one device could overwrite the preferred size on another device.
  • These two settings are comfort/accessibility preferences that should stay local to each browser/device.

What changed

  • Removed fontSize and chatFontSize from the server-synced settings payload.
  • Added legacy server-blob cleanup so old saved server values for those fields are ignored before settings apply locally.
  • Updated the Display Size and Chat Font Size tooltips to say they apply on this device.

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

  • Codex ran pnpm install --frozen-lockfile in a clean worktree.
  • Codex ran pnpm --filter @marinara-engine/shared build.
  • Codex ran packages\server\node_modules\.bin\tsx.cmd scratch\issue-1099-device-local-settings.ts, proving:
    • pickSyncedSettings omits fontSize and chatFontSize.
    • legacy server blobs cannot overwrite local fontSize and chatFontSize.
    • shared settings such as theme, sidebarWidth, and fontFamily still survive serialization/sanitization.
  • Codex ran node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\issue-1099-risk-claim.json.
  • Codex ran pnpm check.
  • Bunny review passed for the scoped diff.
  • Manual physical-device smoke test still recommended: set different Display Size / Chat Font Size values on phone and PC and confirm they remain independent.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A. This changes settings persistence behavior and tooltip copy; no visual layout change.

Summary by CodeRabbit

Release Notes

  • Improvements

    • Enhanced Settings panel tooltips to clarify that Display Size and Chat Font Size adjustments apply to your current device only, with default values now displayed (17px and 16px respectively).
  • Bug Fixes

    • Corrected settings synchronization logic to properly isolate device-specific font size preferences, preventing them from incorrectly syncing across your devices.

Review Change Stack


🔄 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/1111 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/22/2026 **Status:** ✅ Merged **Merged:** 5/22/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feature/issue-1099-device-local-ui-size` --- ### 📝 Commits (1) - [`f259d63`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f259d639353cedf1afe7c349b27dbbb0b38e9e9c) Keep UI sizing device-local ### 📊 Changes **3 files changed** (+36 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+2 -2) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+31 -4) 📝 `packages/client/src/stores/ui.store.ts` (+3 -5) </details> ### 📄 Description ## Linked issue Closes #1099 ## Why this change - Display Size and Chat Font Size were included in the server-synced UI settings blob, so a size that worked on one device could overwrite the preferred size on another device. - These two settings are comfort/accessibility preferences that should stay local to each browser/device. ## What changed - Removed `fontSize` and `chatFontSize` from the server-synced settings payload. - Added legacy server-blob cleanup so old saved server values for those fields are ignored before settings apply locally. - Updated the Display Size and Chat Font Size tooltips to say they apply on this device. ## 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 - Codex ran `pnpm install --frozen-lockfile` in a clean worktree. - Codex ran `pnpm --filter @marinara-engine/shared build`. - Codex ran `packages\server\node_modules\.bin\tsx.cmd scratch\issue-1099-device-local-settings.ts`, proving: - `pickSyncedSettings` omits `fontSize` and `chatFontSize`. - legacy server blobs cannot overwrite local `fontSize` and `chatFontSize`. - shared settings such as `theme`, `sidebarWidth`, and `fontFamily` still survive serialization/sanitization. - Codex ran `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\issue-1099-risk-claim.json`. - Codex ran `pnpm check`. - Bunny review passed for the scoped diff. - Manual physical-device smoke test still recommended: set different Display Size / Chat Font Size values on phone and PC and confirm they remain independent. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A. This changes settings persistence behavior and tooltip copy; no visual layout change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Improvements** * Enhanced Settings panel tooltips to clarify that Display Size and Chat Font Size adjustments apply to your current device only, with default values now displayed (17px and 16px respectively). * **Bug Fixes** * Corrected settings synchronization logic to properly isolate device-specific font size preferences, preventing them from incorrectly syncing across your devices. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1111?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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-22 04:11:47 +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#4926
No description provided.