Repository navigation
fix(wework): enlarge generated image previews - #2098
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughGenerated assistant images are memoized, converted into attachment metadata, and rendered through shared preview and lightbox components. Tests now cover image data URLs, enlarged previews, and zoom interactions. ChangesGenerated image preview
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@wework/src/components/chat/MessageList.tsx`:
- Around line 1861-1910: Memoize the attachments array in the generated-image
gallery using the existing images input, so its reference remains stable when
images have not changed. Reuse this memoized value as galleryAttachments for
each GeneratedImagePreview, and avoid recreating the array during unrelated
renders.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: af0a9d5a-6870-49a9-8f84-e928d9bb1503
📒 Files selected for processing (2)
wework/src/components/chat/MessageList.test.tsxwework/src/components/chat/MessageList.tsx
What changed
image_generationresult previews clickableWhy
Generated image results were rendered as plain images, so users could not inspect them at full size.
Validation
pnpm --filter wework test(189 files, 1888 tests)pnpm --filter wework typecheckSummary by CodeRabbit
New Features
Bug Fixes
Tests