-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[web] Improve the file viewer options in the embed app #7432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
|
@claude review |
|
Claude finished @mnvr's task —— View job Code Review
SummaryThis PR improves the file viewer UI in the embed app by making the fullscreen button more prominent and refining the more menu visibility logic. The changes are well-structured and follow good practices. Detailed Feedback✅ Strengths
🔍 Observations & Suggestions1. Fullscreen state management (web/packages/gallery/components/viewer/FileViewer.tsx:366)The fullscreen state is tracked but could be more robust: const [isFullscreen, setIsFullscreen] = useState(false);Consideration: The fullscreen state updates rely on 2. Button ordering (web/packages/gallery/components/viewer/photoswipe.ts:1258-1301)The fullscreen button is registered with // Add fullscreen button as a primary action for embed appQuestion: Is this the intended visual order? Typically "primary actions" appear earlier in the sequence. Consider if 3. More menu content (web/packages/gallery/components/viewer/photoswipe.ts:1236)When
Potential issue: In public albums with downloads disabled ( 4. Embed app integration (web/apps/embed/src/components/EmbedFileListWithViewer.tsx:132)Clean integration: showFullscreenButton={true}Suggestion: Since this is always 5. Icon visual alignment (web/packages/gallery/components/viewer/icons.tsx:40-45)The fullscreen icons use the same transform as other icons: '<path d="..." transform="translate(0, 4.5)"',Note: This is consistent with existing icons. If the fullscreen icon appears misaligned with neighbors, the transform may need adjustment, but this should be verified visually. 🐛 Potential IssuesMinor: Console logs left in embed componentweb/apps/embed/src/components/EmbedFileListWithViewer.tsx:45-46, 54-55 console.log("Thumbnail clicked, index:", index);
console.log("Files available:", files.length);
// ...
console.log("Closing file viewer");
// ...
console.log("Visual feedback requested");Recommendation: Remove these console.log statements before merging, or convert them to use the project's logging infrastructure if they're needed for debugging. 📋 Testing ChecklistPlease verify:
🎯 VerdictApproval recommended with one minor cleanup (remove console.logs). The changes are solid and improve the UX for embed app users. The potential issue with shortcuts access is worth discussing but doesn't block this PR. |
Co-Authored-By: Claude <[email protected]>
No description provided.