[PR #6428] [MERGED] feat: add conversation background image opacity control #7175

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

📋 Pull Request Information

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

Base: staging ← Head: contrib/e31-conversation-background-opacity


📝 Commits (7)

  • 507e717 feat: add conversation background image opacity control
  • c6f5428 test: cover conversation opacity across themes and mobile
  • 2dadc4e Merge remote-tracking branch 'origin/staging' into codex/pr6428-review
  • 774515c test: capture opacity control and unobstructed chat evidence
  • ca925d9 test: wait for settings exit before capturing chat
  • 8a73f45 Merge remote-tracking branch 'origin/staging' into codex/pr6428-review
  • 588de52 Merge remote-tracking branch 'origin/staging' into codex/pr6428-review

📊 Changes

8 files changed (+209 additions, -0 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
➕ e2e/conversation-background-opacity.e2e.ts (+83 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+56 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+23 -0)
📝 packages/client/src/hooks/use-settings-sync.ts (+6 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/stores/ui.store.ts (+33 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+4 -0)

📄 Description

Linked issue

Closes #6427

Why this change

A conversation background can compete with message text. Blur changes its detail, but users also need to control how strongly the image shows through.

What changed

  • Add a 0–100% conversation background image opacity setting, defaulting to 45%, alongside the existing background controls.
  • Persist and sync the setting, normalize invalid saved or incoming values, and restore the default on reset.
  • Retain a readability gradient over the selected background and respect reduced ambient effects. Conversations without a selected image keep their existing presentation.
  • Add focused settings and browser regressions. This contribution does not introduce the existing background-image or blur features.

Validation

Maintainer verification on the current staging integration: pnpm check and the focused roleplay-streaming regression passed. The opacity browser suite passed 6/6 cases across desktop Chromium, mobile Chromium and iPhone/WebKit emulation in light/dark themes. It checks no-image rendering, the 45% default, 0/100% bounds, immediate 80% updates, local persistence, the synced settings payload, reload and the readability veil. Dark-theme cases use reduced motion. The fixtures isolate settings and onboarding; screenshots use synthetic data.

Hosted CodeRabbit completed ca925d952 without actionable findings, and maintainer approval is recorded for that revision. Required CI remains a merge gate. Mari explicitly authorized checking only the verified pnpm check item; manual checklist boxes remain unchecked.

  • 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

  • Manually verify readability with bright and dark images, both themes, narrow viewports, and 0%, 45%, and 100% opacity.
  • Manually verify cross-device settings sync, reset, and reduced-motion preferences.
  • Complete required checks, CodeRabbit review, and maintainer approval before considering a merge.

Docs and release impact

Includes an Unreleased changelog entry and canonical English setting labels. No version bump or files under docs/ are changed.

  • 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 screenshots and browser log: desktop dark and emulated iPhone light, default opacity, the control at 80%, and the chat after reload. All data is synthetic.

Summary by CodeRabbit

  • New Features

    • Added a Conversation background image opacity control in Appearance settings, adjustable from 0% to 100%.
    • Opacity preferences now persist across sessions and synchronize across devices.
    • Conversation backgrounds retain their readability gradient while reflecting the selected opacity.
  • Bug Fixes

    • Added safeguards to keep invalid opacity values within the supported range.
  • Tests

    • Added coverage for opacity changes, persistence, synchronization, themes, and invalid values.

🔄 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/6428 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `contrib/e31-conversation-background-opacity` --- ### 📝 Commits (7) - [`507e717`](https://github.com/Pasta-Devs/Marinara-Engine/commit/507e7176331a76859eb520edebdbd1f61084202a) feat: add conversation background image opacity control - [`c6f5428`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c6f54280a4e3b9f00b4878d6fe99328a6920f0d6) test: cover conversation opacity across themes and mobile - [`2dadc4e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2dadc4e44fa21e021d167b5a636a312b586a2ed7) Merge remote-tracking branch 'origin/staging' into codex/pr6428-review - [`774515c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/774515c4fdada7ee75c3e3647a68d3ce2f98a663) test: capture opacity control and unobstructed chat evidence - [`ca925d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca925d952e2b01710edea5357ef33549192989ab) test: wait for settings exit before capturing chat - [`8a73f45`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8a73f453de08c8f9362dbe77c7fdd4ee44f758ff) Merge remote-tracking branch 'origin/staging' into codex/pr6428-review - [`588de52`](https://github.com/Pasta-Devs/Marinara-Engine/commit/588de52c69513956080f20318ded95ecba8a4e89) Merge remote-tracking branch 'origin/staging' into codex/pr6428-review ### 📊 Changes **8 files changed** (+209 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `e2e/conversation-background-opacity.e2e.ts` (+83 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+56 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+23 -0) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+6 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/stores/ui.store.ts` (+33 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+4 -0) </details> ### 📄 Description ## Linked issue Closes #6427 ## Why this change A conversation background can compete with message text. Blur changes its detail, but users also need to control how strongly the image shows through. ## What changed - Add a 0–100% conversation background image opacity setting, defaulting to 45%, alongside the existing background controls. - Persist and sync the setting, normalize invalid saved or incoming values, and restore the default on reset. - Retain a readability gradient over the selected background and respect reduced ambient effects. Conversations without a selected image keep their existing presentation. - Add focused settings and browser regressions. This contribution does not introduce the existing background-image or blur features. ## Validation Maintainer verification on the current staging integration: `pnpm check` and the focused roleplay-streaming regression passed. The opacity browser suite passed **6/6** cases across desktop Chromium, mobile Chromium and iPhone/WebKit emulation in light/dark themes. It checks no-image rendering, the 45% default, 0/100% bounds, immediate 80% updates, local persistence, the synced settings payload, reload and the readability veil. Dark-theme cases use reduced motion. The fixtures isolate settings and onboarding; screenshots use synthetic data. Hosted CodeRabbit completed ca925d952 without actionable findings, and maintainer approval is recorded for that revision. Required CI remains a merge gate. Mari explicitly authorized checking only the verified `pnpm check` item; manual checklist boxes remain unchecked. - [x] `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 - [ ] Manually verify readability with bright and dark images, both themes, narrow viewports, and 0%, 45%, and 100% opacity. - [ ] Manually verify cross-device settings sync, reset, and reduced-motion preferences. - [ ] Complete required checks, CodeRabbit review, and maintainer approval before considering a merge. ## Docs and release impact Includes an Unreleased changelog entry and canonical English setting labels. No version bump or files under `docs/` are changed. - [ ] 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 screenshots and browser log](https://gist.github.com/SpicyMarinara/5c2de18940a39c1f58b5e32782ae7e26): desktop dark and emulated iPhone light, default opacity, the control at 80%, and the chat after reload. All data is synthetic. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Conversation background image opacity control in Appearance settings, adjustable from 0% to 100%. * Opacity preferences now persist across sessions and synchronize across devices. * Conversation backgrounds retain their readability gradient while reflecting the selected opacity. * **Bug Fixes** * Added safeguards to keep invalid opacity values within the supported range. * **Tests** * Added coverage for opacity changes, persistence, synchronization, themes, and invalid values. <!-- 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:17: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#7175
No description provided.