[PR #4860] [MERGED] fix: resolve assigned Gallery and Home issues #6520

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issue-sweep-4824-4859


📝 Commits (6)

  • 3c7d269 chore: start assigned issue sweep
  • e83bac2 Merge branch 'staging' into agent/assigned-issue-sweep-4824-4859
  • a37f0b5 fix: resolve assigned gallery and home issues
  • 9a6007c Merge remote-tracking branch 'origin/agent/assigned-issue-sweep-4824-4859' into agent/assigned-issue-sweep-4824-4859
  • 414f375 fix: apply CodeRabbit gallery review feedback
  • 7b9816f test: strengthen gallery batch pending regression

📊 Changes

7 files changed (+516 additions, -154 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/chat/ChatGallery.tsx (+467 -147)
📝 packages/client/src/components/chat/RecentChats.tsx (+5 -2)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/styles/globals.css (+13 -0)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+5 -5)
📝 scripts/regressions/open-issues.regression.ts (+22 -0)

📄 Description

Linked issue

Closes #4824
Closes #4858
Closes #4859

Why this change

  • The capability lifecycle regression still expected API 1.8 after the runtime deliberately moved to 1.9, leaving the assigned issue lane red.
  • Recent Chats rendered all six cards based on viewport width even when the widget itself was too narrow, so cards could overlap.
  • Chat Galleries lacked the Character/Persona Gallery batch-selection workflow, forcing repetitive one-image actions.

What changed

  • Aligned capability API lifecycle fixtures and compatibility messages with the 1.9 runtime ceiling, retaining rejection coverage at 1.10.
  • Made Recent Chats respond to its actual widget container: three cards on mobile, four in constrained two-column desktop layouts, and six only when the widget can fit three columns.
  • Added a responsive Gallery toolbar with Search, Select, and Select All across chat modes.
  • Added accessible selected-card states, current-filter Select All behavior, confirmed batch download/delete actions, accurate partial-failure reporting, and selection cleanup after search changes, chat changes, tab changes, or completed actions.
  • Added English localization, changelog entries, and regression contracts for the new behavior.

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

  • pnpm check — passed.
  • pnpm regression:issues — passed.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts — passed.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts — passed.
  • pnpm smoke:ui — the relevant desktop/mobile Recent Chats and Gallery scenarios passed. The complete staging suite remained red in 21 unrelated existing scenarios (including What's New, Professor Mari, agent catalog, legacy migration version, and Achievements fixtures); no failure referenced a file or behavior changed in this PR.
  • Manually verify chat Gallery batch download prompts using real browser download permissions before release.

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] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Responsive behavior is covered by source-contract regressions and the existing Home/Gallery smoke scenarios; manual product verification remains listed above.

Summary by CodeRabbit

  • New Features

    • Select multiple images in Chat Galleries, including filtered select-all, batch downloads, and batch deletion.
    • Search gallery images across gallery modes and select search results directly.
    • Receive confirmation prompts and clear feedback when only some selected images are deleted.
  • Bug Fixes

    • Improved Recent Chats responsiveness across narrow and wider desktop layouts.
    • More recent chats remain visible when sufficient space is available.

🔄 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/4860 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-4824-4859` --- ### 📝 Commits (6) - [`3c7d269`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c7d26990468ede47072adec6978463de87f9006) chore: start assigned issue sweep - [`e83bac2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e83bac2f5bbd6378b7e1adbe99cfa80b2a023aa8) Merge branch 'staging' into agent/assigned-issue-sweep-4824-4859 - [`a37f0b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a37f0b5da6da4594e0f260d89c88177baaed2873) fix: resolve assigned gallery and home issues - [`9a6007c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a6007c166c9ffc6be8cfd9c3b08ce9c64b5edd7) Merge remote-tracking branch 'origin/agent/assigned-issue-sweep-4824-4859' into agent/assigned-issue-sweep-4824-4859 - [`414f375`](https://github.com/Pasta-Devs/Marinara-Engine/commit/414f375d29ce78e8adaf24c11e567b724613c22c) fix: apply CodeRabbit gallery review feedback - [`7b9816f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7b9816fc731df815e5ad40a6f2d8b8a2ecddf482) test: strengthen gallery batch pending regression ### 📊 Changes **7 files changed** (+516 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+467 -147) 📝 `packages/client/src/components/chat/RecentChats.tsx` (+5 -2) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/styles/globals.css` (+13 -0) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+5 -5) 📝 `scripts/regressions/open-issues.regression.ts` (+22 -0) </details> ### 📄 Description ## Linked issue Closes #4824 Closes #4858 Closes #4859 ## Why this change - The capability lifecycle regression still expected API 1.8 after the runtime deliberately moved to 1.9, leaving the assigned issue lane red. - Recent Chats rendered all six cards based on viewport width even when the widget itself was too narrow, so cards could overlap. - Chat Galleries lacked the Character/Persona Gallery batch-selection workflow, forcing repetitive one-image actions. ## What changed - Aligned capability API lifecycle fixtures and compatibility messages with the 1.9 runtime ceiling, retaining rejection coverage at 1.10. - Made Recent Chats respond to its actual widget container: three cards on mobile, four in constrained two-column desktop layouts, and six only when the widget can fit three columns. - Added a responsive Gallery toolbar with Search, Select, and Select All across chat modes. - Added accessible selected-card states, current-filter Select All behavior, confirmed batch download/delete actions, accurate partial-failure reporting, and selection cleanup after search changes, chat changes, tab changes, or completed actions. - Added English localization, changelog entries, and regression contracts for the new behavior. ## 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 - `pnpm check` — passed. - `pnpm regression:issues` — passed. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts` — passed. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` — passed. - `pnpm smoke:ui` — the relevant desktop/mobile Recent Chats and Gallery scenarios passed. The complete staging suite remained red in 21 unrelated existing scenarios (including What's New, Professor Mari, agent catalog, legacy migration version, and Achievements fixtures); no failure referenced a file or behavior changed in this PR. - Manually verify chat Gallery batch download prompts using real browser download permissions before release. ## 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] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Responsive behavior is covered by source-contract regressions and the existing Home/Gallery smoke scenarios; manual product verification remains listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Select multiple images in Chat Galleries, including filtered select-all, batch downloads, and batch deletion. - Search gallery images across gallery modes and select search results directly. - Receive confirmation prompts and clear feedback when only some selected images are deleted. - **Bug Fixes** - Improved Recent Chats responsiveness across narrow and wider desktop layouts. - More recent chats remain visible when sufficient space is available. <!-- 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:11:12 +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#6520
No description provided.