Skip to content
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

add new extension targets for action extensions everywhere #1837

Merged
merged 7 commits into from
Mar 26, 2024

Conversation

JoshuaWhite1
Copy link
Contributor

@JoshuaWhite1 JoshuaWhite1 commented Mar 19, 2024

closes https://github.com/Shopify/app-ui/issues/835

https://shopify-dev.ui-extensions-026v.josh-white.us.spin.dev/docs/api/admin-extensions/unstable/api/extension-targets

Adding type definitions for the new extension targets being added.

Targets being added:

  • Order details fulfilled card (weird)
  • Draft orders overview
  • Draft order details
  • Draft orders bulk selection
  • Variants details
  • Variants bulk selection (being deleted)
  • Collections overview
  • Collection details
  • Abandoned checkout details
  • Discount overview
  • Discount details (in progress)

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

Copy link
Contributor

@AaronSpringut AaronSpringut left a comment

Choose a reason for hiding this comment

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

LGTM

>;

/**
* Renders an admin action in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card.
Copy link
Contributor

Choose a reason for hiding this comment

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

@themarkappleby What's this pattern called? Card overflow menu?

@MitchLillie MitchLillie marked this pull request as ready for review March 25, 2024 18:58

This comment has been minimized.

Copy link
Contributor

@MitchLillie MitchLillie left a comment

Choose a reason for hiding this comment

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

Code LGTM, but we should add a changeset before merging

@MitchLillie MitchLillie merged commit 7a6f39a into unstable Mar 26, 2024
5 checks passed
@MitchLillie MitchLillie deleted the jw-new-targets branch March 26, 2024 18:45
@bakura10
Copy link

bakura10 commented Apr 4, 2024

Hi!

I have tried to deploy a variant admin extension, but despite updating the package, Shopify CLI still returns this error:

Error while updating drafts: Invalid extension point(s) configured: admin.variant-details.action.render

Is this target already supposed to work?

@MitchLillie
Copy link
Contributor

Hi @bakura10 - Apologies, our docs were incorrect. The correct target name is admin.product-variant-details.action.render. We're shipping a docs update now

@bakura10
Copy link

bakura10 commented Apr 5, 2024

Thanks, I can confirm this works :)

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.

None yet

4 participants