-
Notifications
You must be signed in to change notification settings - Fork 2
POC: AI Photo Edit #55
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
855ded4
to
cb51b36
Compare
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
POC implementation of an AI-powered photo editing plugin, introducing style-transfer controls, custom asset metadata, and flexible input ordering.
- Adds
meta
support inCustomAssetSource
and merges it with thumbnail URIs. - Exposes a new
renderStyleTransferProperty
for style selection and integrates it into the example plugin. - Refactors property order logic (
order
/orderExtensionKeyword
) and handles nullable schemas in the OpenAPI renderer.
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/plugin-utils/src/assetSources/CustomAssetSource.ts | Added optional meta field to select values and merged it when building AssetDefinition . |
packages/plugin-ai-generation-web/src/index.ts | Exported renderStyleTransferProperty in CommonProperties and added trailing commas. |
packages/plugin-ai-generation-web/src/generation/provider.ts | Introduced `order?: string[] |
packages/plugin-ai-generation-web/src/generation/openapi/getProperties.ts | Rewrote ordering logic in getProperties to use a new getOrder helper. |
packages/plugin-ai-generation-web/src/generation/openapi/renderProperty.ts | Early-exit when property.schema is null and cast to Required<Property> . |
examples/web/src/pages/ai-photoeditor.tsx | Added AI photoeditor demo route and example usage of the new plugin. |
examples/web/src/pages/PhotoEditorPlugin.ts | Updated plugin to inject style-transfer controls into the panel’s render flow. |
Comments suppressed due to low confidence (2)
packages/plugin-ai-generation-web/src/generation/openapi/renderProperty.ts:49
- The calls to the various
renderXProperty
functions (e.g.,renderEnumProperty
,renderStringProperty
, etc.) are missing the finalconfig
argument, which no longer matches their signatures. Please includeconfig
as the last parameter when invoking these functions.
renderEnumProperty(
examples/web/src/pages/ai-photoeditor.tsx:3
- [nitpick] The
CreativeEngine
import is not used in this file. Consider removing it to clean up unused imports.
import CreativeEditorSDK, { CreativeEngine, SettingsBool } from '@cesdk/cesdk-js';
packages/plugin-ai-generation-web/src/generation/openapi/getProperties.ts
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
No description provided.