Skip to content

Remove Action API from POS cart line-item action render target - #4612

Open
aaronschubert0 wants to merge 1 commit into
2026-07-rcfrom
fix/pos-remove-action-api-from-action-render
Open

Remove Action API from POS cart line-item action render target#4612
aaronschubert0 wants to merge 1 commit into
2026-07-rcfrom
fix/pos-remove-action-api-from-action-render

Conversation

@aaronschubert0

@aaronschubert0 aaronschubert0 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Part of shop/issues-retail#33068.

pos.cart.line-item-details.action.render is the only *.action.render target whose API type includes ActionApi. Action render targets are the modal destination shopify.action.presentModal() opens, so the surface had no meaningful destination there — it pushed a duplicate modal of the same target.

Changes

  • Types: extension-targets.ts — the target is now ActionTargetApi + CartApi + CartLineItemApi, matching every other action render target. JSDoc points partners at the Navigation API for in-workflow navigation.
  • Tester: factory retyped to the new surface (createActionTargetCartLineItemMock) + regression test asserting no Action API on the render target (pos-action-render-targets.test.ts).
  • Docs metadata: regenerated targets.json + generated_docs_data_v2.json (2026-07-rc); target metadata no longer advertises Action API support.
  • Changeset (major): versioned breaking change — removed for apiVersions 2026-07+; older pinned versions keep their published surface. The host-side runtime gate lands in Shopify/extensibility.

Validation

  • loom type-check + loom lint pass; ui-extensions-tester 78/78 tests pass. Repo-wide failures are pre-existing checkout/preact suites (missing react-test-renderer install), unrelated.

pos.cart.line-item-details.action.render was the only *.action.render target
whose API type included ActionApi. Action render targets are the modal
destination shopify.action.presentModal() opens, so the surface was
non-functional there (it pushed a duplicate modal of the same target).

- extension-targets.ts: drop ActionApi from the target type (ActionTargetApi +
  CartApi + CartLineItemApi only) and document Navigation API usage.
- ui-extensions-tester: retype the Group N factory to the target's new
  surface and add regression coverage asserting the Action API is not exposed
  on the render target (but still is on the menu-item sibling).
- Regenerate targets.json + generated_docs_data_v2.json so target metadata
  and docs no longer advertise Action API support.
- Changeset (major): versioned breaking change — removed for apiVersions
  2026-07+, older pinned versions keep their published surface.

Part of shop/issues-retail#33068

Assisted-By: devx/59d0a60c-7b60-4f69-bb24-197efae896ea
@aaronschubert0
aaronschubert0 force-pushed the fix/pos-remove-action-api-from-action-render branch from 603da30 to 870761a Compare August 11, 2026 13:39

@henryStelle henryStelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2026-07 has already stabilized, I think you need to target 2026-10-rc

Copy link
Copy Markdown
Contributor

@henryStelle we can usually back-fix

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.

3 participants