Skip to content

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

Merged
merged 9 commits into from
Jun 5, 2025
Merged

POC: AI Photo Edit #55

merged 9 commits into from
Jun 5, 2025

Conversation

maerch
Copy link
Member

@maerch maerch commented Jun 4, 2025

No description provided.

@maerch maerch self-assigned this Jun 4, 2025
Copy link

vercel bot commented Jun 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
plugins-web ✅ Ready (Inspect) Visit Preview Jun 5, 2025 1:53pm

Copy link
Contributor

@Copilot 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

POC implementation of an AI-powered photo editing plugin, introducing style-transfer controls, custom asset metadata, and flexible input ordering.

  • Adds meta support in CustomAssetSource 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 final config argument, which no longer matches their signatures. Please include config 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';

@maerch maerch merged commit a947d0f into main Jun 5, 2025
8 checks passed
@maerch maerch deleted the poc/ai-in-photoeditor-ui branch June 5, 2025 14:04
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.

1 participant