Skip to content

Add POS background extension template - #417

Closed
vctrchu wants to merge 2 commits into
mainfrom
pos-background-template
Closed

Add POS background extension template#417
vctrchu wants to merge 2 commits into
mainfrom
pos-background-template

Conversation

@vctrchu

@vctrchu vctrchu commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Background

Adds a scaffold for POS background extensions targeting pos.app.ready.data, the persistent background target shipping in the 2026-07 API. Resolves shop/issues-retail#29623.

Supersedes the earlier closed attempt (#408), which built the scaffold by overwriting the web-pixel-extension template. This lands it as its own template instead, leaving web-pixel-extension untouched.

Solution

  • New pos-background/ template dir, mirroring the existing pos-action / pos-block / pos-smart-grid structure.
  • Registered pos_background in templates.json (ui_extension, TypeScript + JavaScript flavors).
  • Scaffold targets pos.app.ready.data with api_version = "2026-07" and example shopify.addEventListener handlers for transactioncomplete, cashtrackingsessionstart, and cashtrackingsessioncomplete.
  • Dependency pinned to the published @shopify/ui-extensions 2026.7.x, matching sibling templates.

Checklist

  • I have 🎩'd these changes
  • I have squashed my commits into chunks of work with meaningful commit messages

Monorail CI check running in Buildkite added 2 commits June 30, 2026 18:12
Assisted-By: devx/ad8a9826-c8c5-4579-8ce6-44cd1b431ab4
Assisted-By: devx/ad8a9826-c8c5-4579-8ce6-44cd1b431ab4
@akhayoon

Copy link
Copy Markdown

Heads-up: #424 updates the existing POS templates from moduleResolution: "node" to module: "ESNext" plus moduleResolution: "Bundler" to resolve shop/issues-retail#33804. This PR currently introduces the old setting in pos-background/tsconfig.json.liquid; could you apply the same compiler options here so the new background template does not inherit the deprecated configuration?

@vctrchu

vctrchu commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

Closing this, lets reintroduce the template later.

@vctrchu vctrchu closed this Aug 30, 2026
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.

2 participants