[PR #988] [MERGED] Add gallery image generation feedback #4874

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

📋 Pull Request Information

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

Base: staging ← Head: feat/gallery-generation-feedback


📝 Commits (2)

  • 1511975 Add gallery image generation feedback
  • 5d36c22 Handle gallery illustration failures

📊 Changes

3 files changed (+59 additions, -7 deletions)

View changed files

📝 packages/client/src/components/chat/ChatGallery.tsx (+46 -6)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+1 -1)
📝 packages/client/src/stores/gallery.store.ts (+12 -0)

📄 Description

Linked issue

No linked issue. Requested directly in Codex; an issue should be opened before submission if required.

Why this change

  • When users click the gallery Illustrate button, the drawer did not show clear in-progress feedback while AI image generation was running.

What changed

  • Added a spinner, disabled state, and "Generating image..." label to the gallery Illustrate button while generation is pending.
  • Added an accessible live status message explaining that AI image generation is running.
  • Stored pending illustration state per chat so closing and reopening the gallery keeps the feedback and prevents duplicate clicks.

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 check successfully in a clean worktree based on upstream/staging.
  • Codex ran a local Playwright remount proof: start gallery image generation, hide the gallery, show it again, confirm "Generating image..." remains visible, confirm the status message remains visible, and confirm duplicate illustration calls are blocked.
  • Bunny review passed for the current diff before opening this PR.

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)

No GitHub-rendered screenshot is attached. Codex captured local proof during the Playwright remount run; reviewers should manually verify the gallery loading feedback in-browser if visual confirmation is needed.

Summary by CodeRabbit

  • New Features
    • Illustration feature now supports asynchronous operations with improved user feedback.
    • Added loading spinner and status message during illustration generation.
    • "Illustrate" button is disabled during generation, preventing accidental re-triggering.
    • Enhanced per-chat illustration state tracking for accurate status display.

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/988 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feat/gallery-generation-feedback` --- ### 📝 Commits (2) - [`1511975`](https://github.com/Pasta-Devs/Marinara-Engine/commit/15119754c7a8f377d638c36fdbe9a5e0a451a7fd) Add gallery image generation feedback - [`5d36c22`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5d36c22f76f2dd0e4e13546570ef872c39baf4be) Handle gallery illustration failures ### 📊 Changes **3 files changed** (+59 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+46 -6) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+1 -1) 📝 `packages/client/src/stores/gallery.store.ts` (+12 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue. Requested directly in Codex; an issue should be opened before submission if required. ## Why this change - When users click the gallery Illustrate button, the drawer did not show clear in-progress feedback while AI image generation was running. ## What changed - Added a spinner, disabled state, and "Generating image..." label to the gallery Illustrate button while generation is pending. - Added an accessible live status message explaining that AI image generation is running. - Stored pending illustration state per chat so closing and reopening the gallery keeps the feedback and prevents duplicate clicks. ## 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 check` successfully in a clean worktree based on `upstream/staging`. - Codex ran a local Playwright remount proof: start gallery image generation, hide the gallery, show it again, confirm "Generating image..." remains visible, confirm the status message remains visible, and confirm duplicate illustration calls are blocked. - Bunny review passed for the current diff before opening this PR. ## Docs and release impact - [x] 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) No GitHub-rendered screenshot is attached. Codex captured local proof during the Playwright remount run; reviewers should manually verify the gallery loading feedback in-browser if visual confirmation is needed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Illustration feature now supports asynchronous operations with improved user feedback. * Added loading spinner and status message during illustration generation. * "Illustrate" button is disabled during generation, preventing accidental re-triggering. * Enhanced per-chat illustration state tracking for accurate status display. <!-- 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/988?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:21 +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#4874
No description provided.