[PR #8719] [MERGED] feat(backgrounds): preview and recent backgrounds in the picker #8765

Closed
opened 2026-11-07 17:39:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8719
Author: @Gunterlie
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/background-picker-recents


📝 Commits (1)

  • 72ce696 feat(backgrounds): big preview and recent backgrounds in the picker

📊 Changes

3 files changed (+90 additions, -38 deletions)

View changed files

📝 packages/client/src/components/panels/settings/BackgroundPicker.tsx (+74 -37)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/client/src/stores/ui.store.ts (+15 -1)

📄 Description

Why

In Chat Settings the Background section showed a tiny thumbnail and two full-width buttons. Going back to a background you used a minute ago meant opening the whole library and searching again. The maintainer asked for the last 3 backgrounds in the section and a nicer look (mockup approved: big preview + recent row).

No linked issue: planned UI polish requested by the maintainer directly.

What changed

  • Preview: the current background as a wide picture (fixed height) with its name on it. A tap opens the library; a round ✕ on the picture removes the background (replaces the "Clear selection" button).
  • Recent row: the last 3 backgrounds, one tap to apply. The one being replaced is saved too, so it shows up right away. Deleted files drop out because only library rows are shown.
  • Browse library · N: one primary button.
  • ui.store.ts: new recentChatBackgrounds (max 4 URLs), filled by setChatBackground, persisted to localStorage only (not synced), guarded on rehydrate.
  • New key ui.panels.backgroundpicker.recent in en.json.

The card is shared, so the same look shows in Chat Settings, the chat setup wizard and the Settings panel.

Local checks: Prettier, ESLint on changed files, client tsc --noEmit, localization:check.

Manual verification

  • Manually verify on a phone (390 px) that Chat Settings → Background shows the preview, the Recent row and the Browse button without crowding.
  • Manually verify that picking a background puts the previous one in Recent at once, and that a Recent tile applies with one tap.
  • Manually verify that ✕ on the preview removes the background and that the removed one appears in Recent.
  • Manually verify the Game chat and the Settings panel background picker still work.

🔄 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/8719 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/background-picker-recents` --- ### 📝 Commits (1) - [`72ce696`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72ce696872de6d3c33d8f47dfcaeac19f200907e) feat(backgrounds): big preview and recent backgrounds in the picker ### 📊 Changes **3 files changed** (+90 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/settings/BackgroundPicker.tsx` (+74 -37) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/client/src/stores/ui.store.ts` (+15 -1) </details> ### 📄 Description ## Why In Chat Settings the Background section showed a tiny thumbnail and two full-width buttons. Going back to a background you used a minute ago meant opening the whole library and searching again. The maintainer asked for the last 3 backgrounds in the section and a nicer look (mockup approved: big preview + recent row). No linked issue: planned UI polish requested by the maintainer directly. ## What changed - **Preview:** the current background as a wide picture (fixed height) with its name on it. A tap opens the library; a round ✕ on the picture removes the background (replaces the "Clear selection" button). - **Recent row:** the last 3 backgrounds, one tap to apply. The one being replaced is saved too, so it shows up right away. Deleted files drop out because only library rows are shown. - **Browse library · N:** one primary button. - `ui.store.ts`: new `recentChatBackgrounds` (max 4 URLs), filled by `setChatBackground`, persisted to localStorage only (not synced), guarded on rehydrate. - New key `ui.panels.backgroundpicker.recent` in `en.json`. The card is shared, so the same look shows in Chat Settings, the chat setup wizard and the Settings panel. Local checks: Prettier, ESLint on changed files, client `tsc --noEmit`, `localization:check`. ## Manual verification - [ ] Manually verify on a phone (390 px) that Chat Settings → Background shows the preview, the Recent row and the Browse button without crowding. - [ ] Manually verify that picking a background puts the previous one in Recent at once, and that a Recent tile applies with one tap. - [ ] Manually verify that ✕ on the preview removes the background and that the removed one appears in Recent. - [ ] Manually verify the Game chat and the Settings panel background picker still work. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:31 +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#8765
No description provided.