diff --git a/.changeset/strange-terms-rule.md b/.changeset/strange-terms-rule.md new file mode 100644 index 0000000000..791de4213c --- /dev/null +++ b/.changeset/strange-terms-rule.md @@ -0,0 +1,5 @@ +--- +'@shopify/ui-extensions': minor +--- + +Signal support for null in Badge status prop diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e24f13b748..091281aff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - id: typescript-cache name: Restore TypeScript cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: | packages/*/build/ts @@ -31,7 +31,7 @@ jobs: - id: jest-cache name: Restore jest cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: .loom/cache/jest/ key: ${{ runner.os }}-jest-v1-${{ github.sha }} @@ -50,7 +50,7 @@ jobs: - id: eslint-cache name: Restore ESLint cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: .loom/cache/eslint key: ${{ runner.os }}-eslint-v1-${{ github.sha }} diff --git a/packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts b/packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts index dbdf43c48a..6d0a289bd1 100644 --- a/packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +++ b/packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts @@ -7,7 +7,7 @@ export type BadgeVariant = | 'success' | 'highlight'; -export type BadgeStatus = 'empty' | 'partial' | 'complete'; +export type BadgeStatus = 'empty' | 'partial' | 'complete' | null; /** * @property text - The text displayed inside the badge. @@ -26,7 +26,7 @@ export interface BadgeProps { variant: BadgeVariant; /** - * A circle icon displaying the status of the badge. + * A circle icon displaying the status of the badge. Use `null` to hide the status icon. */ status?: BadgeStatus; }