-
Notifications
You must be signed in to change notification settings - Fork 0
feat: plugin release v1.0.0 #1
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
There was a problem hiding this 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:
imagekitSchemaPluginfor custom asset types andimagekitAssetSourcePluginfor 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.
| // 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
AI
Nov 12, 2025
There was a problem hiding this comment.
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.
| // 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> | |
| // ) |
| // eslint-disable-next-line react/no-unused-prop-types | ||
| kind: PlayerKind |
Copilot
AI
Nov 12, 2025
There was a problem hiding this comment.
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.
…in sanity vs imagekit's data structures and their allowed keys
No description provided.