Skip to content

Add app home template#400

Open
MitchLillie wants to merge 2 commits intomainfrom
cx-create-app-home-template
Open

Add app home template#400
MitchLillie wants to merge 2 commits intomainfrom
cx-create-app-home-template

Conversation

@MitchLillie
Copy link
Copy Markdown
Contributor

@MitchLillie MitchLillie commented Apr 24, 2026

Background

Adds a template for the app-home extension.
Closes https://github.com/shop/issues-admin-extensibility/issues/2472

Solution

Based on work on this branch in our demo app: https://github.com/shopify-playground/ui-ext-hosted-jam/pull/4
As well as the original hosted app template: https://github.com/Shopify/shopify-app-template-extension-only

Checklist

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

🎩

Ensure you have the f_hosted_app_org flag enabled for your organization.

SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH=/path/to/this/repo/templates.json \
  shopify app generate extension \
  --clone-url https://github.com/Shopify/extensions-templates#cx-create-app-home-template

Note: you may get an issue about npm not being allowed. I had to pass my PATH with an explicit npm path from nix to get it to work, e.g. PATH="/nix/store/0x0x0x0x0x-node-22.22.0/bin:$PATH" SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH=...

@MitchLillie MitchLillie force-pushed the cx-create-app-home-template branch 4 times, most recently from 5d1c5d9 to f2d9b4b Compare April 27, 2026 16:43
@MitchLillie MitchLillie force-pushed the cx-create-app-home-template branch from f2d9b4b to f079925 Compare April 27, 2026 16:49
- Removed scripts/, shared/, pages/ directories
- Single file: src/AppHome.liquid with FAQ manager
- Uses shopify.storage.getItem/setItem for persistence
- Real Polaris components from PR#21 (s-page, s-section, s-table)
- Simple view routing with useState
- One i18n example (welcome message)
- Gated behind exp flag d867a776
- Removed minimumCliVersion (not required)
@MitchLillie MitchLillie force-pushed the cx-create-app-home-template branch from 638c1ea to 9296f23 Compare April 28, 2026 22:57
Copy link
Copy Markdown
Contributor

@elanalynn elanalynn left a comment

Choose a reason for hiding this comment

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

Tested together. There is something with the organizationExpFlags that is blocking the option in the CLI.

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