Skip to content

Conversation

@hrhv
Copy link
Member

@hrhv hrhv commented Sep 8, 2025

No description provided.

@hrhv hrhv assigned ahnv Sep 8, 2025
@ahnv ahnv requested a review from Copilot November 12, 2025 14:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces the initial v1.0.0 release of the ImageKit plugin for Sanity Studio V3, enabling seamless integration of ImageKit's media library for asset management.

Key Changes:

  • Core plugin implementation with TypeScript support and full type definitions
  • Two plugin exports: imagekitSchemaPlugin for custom asset types and imagekitAssetSourcePlugin for standard image field integration
  • Full-screen modal dialog for ImageKit media library with dark mode support

Reviewed Changes

Copilot reviewed 18 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Project configuration with dependencies and metadata
tsconfig.lib.json TypeScript compiler configuration for library build
src/index.ts Main plugin exports and configuration
src/types/index.ts Type definitions for ImageKit assets and responses
src/schema/imagekitAsset.ts Schema definition for imagekit.asset type
src/utils.ts Media selector modal implementation with theme support
src/components/*.tsx React components for asset selection, preview, and diff views
README.md Documentation for installation and usage
LICENSE MIT license file
sanity.json Sanity plugin metadata
package.config.ts Sanity CLI configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +66 to +78
// return (
// <Card padding={3} radius={2} shadow={1} tone="default">
// <Box style={{textAlign: 'center'}}>
// <Icon style={{fontSize: '2rem', marginBottom: '0.5rem'}} />
// <Text size={1} weight="semibold">
// {value.name}
// </Text>
// <Text size={0} muted>
// {value.width} × {value.height} • {value.fileType}
// </Text>
// </Box>
// </Card>
// )
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

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

Remove commented-out code. If this alternative implementation is no longer needed, it should be deleted to improve code clarity.

Suggested change
// return (
// <Card padding={3} radius={2} shadow={1} tone="default">
// <Box style={{textAlign: 'center'}}>
// <Icon style={{fontSize: '2rem', marginBottom: '0.5rem'}} />
// <Text size={1} weight="semibold">
// {value.name}
// </Text>
// <Text size={0} muted>
// {value.width} × {value.height} • {value.fileType}
// </Text>
// </Box>
// </Card>
// )

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +8
// eslint-disable-next-line react/no-unused-prop-types
kind: PlayerKind
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

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

The 'kind' prop is defined but unused. Either remove it or implement its intended functionality. Using an eslint-disable comment to suppress the warning is not a proper solution.

Copilot uses AI. Check for mistakes.
@ahnv ahnv merged commit 3cd2251 into main Nov 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants