Always initialise new products as unpublished, unavailable, and unlisted by default#6306
Conversation
🦋 Changeset detectedLatest commit: 1dfe552 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6306 +/- ##
=======================================
Coverage 42.58% 42.58%
=======================================
Files 2497 2497
Lines 43376 43372 -4
Branches 10233 10231 -2
=======================================
Hits 18470 18470
+ Misses 24869 24865 -4
Partials 37 37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR changes the default availability settings for newly created products to be more conservative, ensuring products are not visible or purchasable until explicitly configured.
Changes:
- New products now default to unpublished, unavailable, and not visible in listings
- Channel listings are no longer set for products with variants during initial product creation (deferred until variants are created)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/channels/utils.ts | Updated default values in createChannelsData to set isPublished, isAvailableForPurchase, and visibleInListings to false instead of true |
| src/products/views/ProductCreate/handlers.ts | Removed channel listing updates for products with variants during creation, added explanatory comment |
| .changeset/humble-mice-wave.md | Added changeset documenting the behavioral change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
We also want to drop the Availability panel from the product initialisation form as we don't see a real use case for it - you should set these all up once the product is created and fully configured later.