mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1743] [MERGED] Add gallery image prompt regeneration #5254
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1743
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:feat/issue-1573-regenerate-image-prompt📝 Commits (2)
5d4377cAdd gallery image prompt regenerationf41a36dScope gallery regenerate invalidation📊 Changes
3 files changed (+403 additions, -2 deletions)
View changed files
➕
src/features/catalog/gallery/hooks/use-gallery.test.tsx(+247 -0)📝
src/features/catalog/gallery/hooks/use-gallery.ts(+83 -1)📝
src/features/modes/shared/chat-ui/components/ChatGallery.tsx(+73 -1)📄 Description
Linked issue
Closes #1573
Why this change
Adds a focused way to retry an existing generated gallery image from its saved prompt, so users do not need to spend a new chat message just to regenerate the same image prompt.
What changed
Refactor impact
Primary owner:
shared mode UI / catalog gallery
Impact areas reviewed:
Boundary notes:
The feature code stays in
src/featuresand uses existing focused shared API wrappers (imageGenerationApi,storageApi) instead of raw Tauri invokes. Engine and Rust storage behavior are not changed.Pressure points touched:
ChatGallery)use-gallery)Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses locally before PR push/handoff, including the unused-code checkpnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex-run validation:
pnpm exec vitest run src/features/catalog/gallery/hooks/use-gallery.test.tsxpassed.pnpm typecheckpassed.pnpm checkpassed.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes needed for this focused UI affordance.
UI evidence
Not added yet. The PR should stay draft until a provider-backed browser pass can capture the gallery regenerate control and successful regenerated image.
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.