Skip to content

Conversation

@Fionoble
Copy link
Contributor

This pull request removes all logic related to the "Polaris Unified" early access feature from the CLI codebase. The main impact is that options and filtering based on the POLARIS_UNIFIED environment variable or the isPolarisUnifiedEnabled flag are no longer present, simplifying the code and standardizing available templates for all users.

Removal of Polaris Unified feature flag logic:

  • The javascriptPolarisEarlyAccess and typescriptPolarisEarlyAccess options are no longer conditionally included in the templates object in init.ts, so users will not see Polaris Release Candidate template branches.
  • All code that checks the POLARIS_UNIFIED environment variable or uses the isPolarisUnifiedEnabled function to filter template flavors (such as only showing preact when enabled) is removed from fetch-template-specifications.ts, resulting in consistent template filtering regardless of environment.

@Fionoble Fionoble requested a review from a team as a code owner September 22, 2025 19:16
@github-actions

This comment has been minimized.

Copy link
Contributor

@dmerand dmerand left a comment

Choose a reason for hiding this comment

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

Is it worth also removing is-polaris-unified-enabled.ts as it's also no longer used after this change?

Copy link
Contributor Author

Yea, good call out

@Fionoble Fionoble force-pushed the fio/trish/cleanup-polaris-flag branch 3 times, most recently from 2c60706 to f72f890 Compare September 23, 2025 22:38
@github-actions
Copy link
Contributor

github-actions bot commented Sep 23, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
78.74% (-0.02% 🔻)
13715/17418
🟡 Branches
72.46% (-0.02% 🔻)
6681/9220
🟡 Functions
78.78% (-0.05% 🔻)
3523/4472
🟡 Lines
79.08% (-0.02% 🔻)
12965/16395
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / Dev.tsx
90.59% (-2.35% 🔻)
75% (-1.79% 🔻)
86.36% (-4.55% 🔻)
92.5% (-1.25% 🔻)
🟢
... / extension.ts
91.11% (+0.58% 🔼)
74% (-0.07% 🔻)
91.67% (-0.33% 🔻)
90.91% (+0.59% 🔼)
🟢
... / ConcurrentOutput.tsx
98.36% (-1.64% 🔻)
92% (-4% 🔻)
100%
98.33% (-1.67% 🔻)

Test suite run success

3328 tests passing in 1382 suites.

Report generated by 🧪jest coverage report action from e81c29c

@Fionoble Fionoble requested a review from dmerand September 23, 2025 22:44
})

test('excludes the preact flavor by default', async () => {
test('includes all flavors including preact', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Let's just delete these tests - they are meaningless now. We just pass through all flavors which is already covered by the other tests

Copy link
Member

vividviolet commented Sep 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

vividviolet added a commit to Shopify/extensions-templates that referenced this pull request Sep 25, 2025
### Background

Add a new template for "admin.customers.segmentation-templates.data"

### 🎩 

1. Checkout this PR on the CLI Shopify/cli#6421
2. In the CLI repo, open `packages/cli-kit/src/public/common/version.ts` and update `CLI_KIT_VERSION`
```ts
export const CLI_KIT_VERSION = '3.85.0'
```
3. In the CLI repo, open `packages/app/src/cli/utilities/developer-platform-client/app-management-client.ts` and update `TEMPLATE_JSON_URL`
 ```ts
const TEMPLATE_JSON_URL =
  'https://raw.githubusercontent.com/Shopify/extensions-templates/500a2fc24ebb89635f8c7ccff21e812db2cd1e6e/templates.json'
```
4. Run `pnpm shopify app generate extension --path=<path-to-your-app> --clone-url https://github.com/Shopify/extensions-templates#Add_Customer_Segment_Template_data_extension`
5. Verify you're able to create new data extension for customer segment

### Checklist

- [x] I have 🎩'd these changes
- [ ] I have squashed my commits into chunks of work with meaningful commit messages
@Fionoble Fionoble force-pushed the fio/trish/cleanup-polaris-flag branch from ad36509 to 6767e9f Compare September 26, 2025 17:39
Fionoble and others added 2 commits September 26, 2025 14:57
We will always want a tsconfig so we can type the shopify global
Copy link
Contributor

@isaacroldan isaacroldan left a comment

Choose a reason for hiding this comment

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

Didn't 🎩 but code looks good

vividviolet and others added 2 commits September 29, 2025 10:24
…for_ui_extensions

Remove code to delete the tsconfig for ui extensions
@Fionoble Fionoble requested a review from a team as a code owner September 29, 2025 14:37
@Fionoble Fionoble added this pull request to the merge queue Sep 29, 2025
Merged via the queue into main with commit 7abbaa9 Sep 29, 2025
2 checks passed
@Fionoble Fionoble deleted the fio/trish/cleanup-polaris-flag branch September 29, 2025 14:51
@vividviolet vividviolet mentioned this pull request Sep 29, 2025
2 tasks
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.

4 participants