Skip to content

Support intents for ui extensions#7134

Draft
vividviolet wants to merge 1 commit intomainfrom
03-31-support_intents_for_ui_extensions
Draft

Support intents for ui extensions#7134
vividviolet wants to merge 1 commit intomainfrom
03-31-support_intents_for_ui_extensions

Conversation

@vividviolet
Copy link
Copy Markdown
Member

@vividviolet vividviolet commented Mar 31, 2026

WHY are these changes introduced?

This change modernizes the UI extension asset handling system by replacing the legacy build_manifest approach with a new manifest.json-based system that supports additional asset types including intents.

Related https://github.com/shop/issues-admin-extensibility/issues/2274

WHAT is this pull request doing?

  • Adds support for intents field in extension point schemas with type, action, schema, name, and description properties
  • Adds Intents to the AssetIdentifier enum for asset handling
  • Updates UI extension build pipeline to use include_assets step instead of copy_static_assets, with support for tools, instructions, and intent schemas
  • Refactors extension payload generation to read from manifest.json instead of build_manifest, enabling better asset tracking with source file timestamps
  • Implements specialized handling for intents assets that transforms them into extension point-level properties with schema asset references
  • Updates tests to use the new manifest.json approach and adds comprehensive test coverage for intents, tools, and instructions assets

How to test your changes?

  1. Create a UI extension with intents configuration in the extension points
  2. Build the extension and verify manifest.json is generated with the correct asset references
  3. Test the dev server payload includes properly formatted intents with schema asset URLs
  4. Verify that tools and instructions assets are correctly handled through the new manifest system
  5. Confirm that asset timestamps reflect source file changes rather than build output timestamps

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Copy link
Copy Markdown
Member Author

vividviolet commented Mar 31, 2026

@isaacroldan isaacroldan force-pushed the 03-31-support_intents_for_ui_extensions branch from c65984a to bf92dc4 Compare April 1, 2026 08:53
@isaacroldan isaacroldan force-pushed the add_manifest_to_include_files_step branch 2 times, most recently from 96d95ba to d8b0d4a Compare April 1, 2026 08:53
@isaacroldan isaacroldan force-pushed the 03-31-support_intents_for_ui_extensions branch 2 times, most recently from 6e09feb to 5c1ddf1 Compare April 1, 2026 09:06
@isaacroldan isaacroldan changed the base branch from add_manifest_to_include_files_step to graphite-base/7134 April 1, 2026 09:23
@isaacroldan isaacroldan force-pushed the 03-31-support_intents_for_ui_extensions branch from 5c1ddf1 to 06dee38 Compare April 1, 2026 09:26
@isaacroldan isaacroldan changed the base branch from graphite-base/7134 to add_manifest_to_include_files_step April 1, 2026 09:26
Base automatically changed from add_manifest_to_include_files_step to main April 1, 2026 10:00
@isaacroldan isaacroldan force-pushed the 03-31-support_intents_for_ui_extensions branch from 06dee38 to 40bf3e5 Compare April 1, 2026 10:11
@vividviolet vividviolet force-pushed the 03-31-support_intents_for_ui_extensions branch from 40bf3e5 to 8ce58c4 Compare April 1, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant