From 766bedb773b489f81f759b6acde65192e637e0e8 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 10 Feb 2026 19:34:15 +1100 Subject: [PATCH] Label this feature as 'beta' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The permission is effectively the feature toggle. Users can choose to use it, but shouldn't expect it all to work perfectly yet. When it's considered full featured, we just need to update the translation. Hm... I hope that's not too painful.🤞 --- config/locales/en.yml | 2 +- .../unit/admin/services/enterprise_relationships_spec.js.coffee | 2 +- spec/system/admin/enterprise_relationships_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 4d84655ab1..352e0875de 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3902,7 +3902,7 @@ en: manage_products: "manage products" edit_profile: "edit profile" add_products_to_inventory: "add products to inventory" - create_sourced_variants: "create sourced variants" + create_sourced_variants: "create sourced variants [BETA]" resources: could_not_delete_customer: 'Could not delete customer' product_import: diff --git a/spec/javascripts/unit/admin/services/enterprise_relationships_spec.js.coffee b/spec/javascripts/unit/admin/services/enterprise_relationships_spec.js.coffee index 4a5907c681..c25764b986 100644 --- a/spec/javascripts/unit/admin/services/enterprise_relationships_spec.js.coffee +++ b/spec/javascripts/unit/admin/services/enterprise_relationships_spec.js.coffee @@ -16,4 +16,4 @@ describe "enterprise relationships", -> expect(EnterpriseRelationships.permission_presentation("manage_products")).toEqual "manage products" expect(EnterpriseRelationships.permission_presentation("edit_profile")).toEqual "edit profile" expect(EnterpriseRelationships.permission_presentation("create_variant_overrides")).toEqual "add products to inventory" - expect(EnterpriseRelationships.permission_presentation("create_sourced_variants")).toEqual "create sourced variants" + expect(EnterpriseRelationships.permission_presentation("create_sourced_variants")).toEqual "create sourced variants [BETA]" diff --git a/spec/system/admin/enterprise_relationships_spec.rb b/spec/system/admin/enterprise_relationships_spec.rb index 03584eb516..3f0525e668 100644 --- a/spec/system/admin/enterprise_relationships_spec.rb +++ b/spec/system/admin/enterprise_relationships_spec.rb @@ -56,7 +56,7 @@ create(:enterprise) # Permissions appear.. in a different order for some reason. expect_relationship_with_permissions e1, e2, ['to add to order cycle', - 'to create sourced variants', + 'to create sourced variants [BETA]', 'to add products to inventory', 'to edit profile'] er = EnterpriseRelationship.where(parent_id: e1, child_id: e2).first