Skip to content

Conversation

@Shironex
Copy link
Collaborator

@Shironex Shironex commented Jan 11, 2026

  • Introduced ImagePreviewModal for displaying images with zoom and navigation controls.
  • Added ImagePreviewThumbnail for quick access to the first image and indication of additional images.
  • Integrated image preview components into the KanbanCard, allowing users to view images associated with features.
  • Implemented keyboard navigation and mouse wheel zooming for enhanced user experience.

Preview

image image image

…ents

- Introduced `ImagePreviewModal` for displaying images with zoom and navigation controls.
- Added `ImagePreviewThumbnail` for quick access to the first image and indication of additional images.
- Integrated image preview components into the `KanbanCard`, allowing users to view images associated with features.
- Implemented keyboard navigation and mouse wheel zooming for enhanced user experience.
@coderabbitai
Copy link

coderabbitai bot commented Jan 11, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Shironex Shironex self-assigned this Jan 11, 2026
@Shironex Shironex added Enhancement Improvements to existing functionality or UI. Do Not Merge Use this label if something should not be merged. Experiment labels Jan 11, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Shironex, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the user interface by introducing robust image preview capabilities for Kanban cards. Users can now easily view attached images in a dedicated modal that offers advanced interaction features like zooming, panning, and seamless navigation between multiple images. This improves the visual context and accessibility of image-related information directly within the Kanban board.

Highlights

  • New Image Preview Modal: Introduced a new ImagePreviewModal component that provides a full-screen experience for viewing images, complete with zoom, pan, navigation controls, and a download option.
  • New Image Preview Thumbnail: Added a new ImagePreviewThumbnail component to display the first image associated with a feature, along with an indicator for additional images, allowing quick access to the full preview.
  • Kanban Card Integration: Integrated the image preview components directly into the KanbanCard, enabling users to view images attached to features by clicking on the thumbnail.
  • Enhanced User Interaction: Implemented keyboard navigation (arrow keys for switching images, +/- for zooming, 0 for reset, Esc for closing) and mouse wheel zooming within the image preview modal for a more intuitive user experience.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a well-structured image preview functionality with a modal and thumbnail component. The implementation is comprehensive, covering features like zoom, pan, keyboard navigation, and loading/error states.

My review focuses on a few key areas for improvement:

  • TypeScript Usage: All new components have disabled TypeScript checking with // @ts-nocheck. This is a critical issue that should be addressed to leverage the full benefits of TypeScript.
  • Performance: There's an opportunity to optimize the rendering of thumbnails by memoizing their URLs.
  • Code Clarity: A minor refactoring can simplify one of the useEffect hooks by removing redundant state resets.

Overall, this is a great addition. Addressing these points will make the new components more robust and performant.

@@ -0,0 +1,435 @@
// @ts-nocheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The use of // @ts-nocheck disables all TypeScript type checking for this file. This undermines the benefits of using TypeScript, such as static type safety and improved code quality. Please remove this comment and resolve any TypeScript errors that appear. This is crucial for maintaining a robust and error-free codebase.

@@ -0,0 +1,154 @@
// @ts-nocheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The use of // @ts-nocheck disables all TypeScript type checking for this file. This undermines the benefits of using TypeScript, such as static type safety and improved code quality. Please remove this comment and resolve any TypeScript errors that appear. This is crucial for maintaining a robust and error-free codebase.

@@ -1,5 +1,5 @@
// @ts-nocheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The use of // @ts-nocheck disables all TypeScript type checking for this file. This undermines the benefits of using TypeScript, such as static type safety and improved code quality. Please remove this comment and resolve any TypeScript errors that appear. This is crucial for maintaining a robust and error-free codebase.

Comment on lines +59 to +67
useEffect(() => {
if (open) {
setCurrentIndex(initialIndex);
setZoom(1);
setPosition({ x: 0, y: 0 });
setIsLoading(true);
setImageError(false);
}
}, [open, initialIndex]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's some redundant state-setting logic here. The useEffect hook that runs when currentIndex changes (lines 70-75) already handles resetting zoom, position, isLoading, and imageError. Since opening the modal calls setCurrentIndex(initialIndex), which in turn triggers the other effect, you can simplify this effect to only set the current index. This avoids resetting the state twice and makes the component's logic clearer.

  // Reset state when opening modal
  useEffect(() => {
    if (open) {
      setCurrentIndex(initialIndex);
    }
  }, [open, initialIndex]);

Comment on lines +387 to +390
{imagePaths.map((img, index) => {
const thumbUrl = currentProject?.path
? getAuthenticatedImageUrl(img.path, currentProject.path)
: null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The thumbnail URLs are being generated inside the map function, which means getAuthenticatedImageUrl is called for every thumbnail on every render of the component. This can be inefficient, especially if there are many images. To improve performance, you can memoize the list of thumbnail URLs using useMemo.

For example, you can add this before the return statement:

  const thumbnailUrls = useMemo(() => {
    if (!currentProject?.path) {
      return imagePaths.map(() => null);
    }
    return imagePaths.map((img) =>
      getAuthenticatedImageUrl(img.path, currentProject.path)
    );
  }, [imagePaths, currentProject?.path]);

And then use it in the map function:

{imagePaths.map((img, index) => {
  const thumbUrl = thumbnailUrls[index];
  // ... rest of the component
})}

This will ensure the URLs are only recalculated when imagePaths or currentProject.path changes.

Base automatically changed from v0.10.0rc to main January 12, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Merge Use this label if something should not be merged. Enhancement Improvements to existing functionality or UI. Experiment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants