From 1d3b5ebbc5dad2b8bcdf0fd5d0fb50a6323ab53b Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Tue, 13 Oct 2026 20:36:02 +0000 Subject: [PATCH] feat(catalog): Add werkmeister as a draft product, not for sale (#69) --- internal/store/products.go | 10 ++++++++++ migrations/0014_werkmeister_product.down.sql | 1 + migrations/0014_werkmeister_product.up.sql | 10 ++++++++++ 3 files changed, 21 insertions(+) create mode 100644 migrations/0014_werkmeister_product.down.sql create mode 100644 migrations/0014_werkmeister_product.up.sql diff --git a/internal/store/products.go b/internal/store/products.go index 475d5fc..5a965b6 100644 --- a/internal/store/products.go +++ b/internal/store/products.go @@ -8,6 +8,7 @@ import ( ) // DefaultProducts mirrors the seed rows of migrations/0003_products.up.sql +// and 0014_werkmeister_product.up.sql // for the Memory store. Keep the two in sync. func DefaultProducts() []Product { now := time.Now().UTC() @@ -40,6 +41,15 @@ func DefaultProducts() []Product { Addons: []ProductAddon{}, PlansRequired: plans, SupportsTrial: true, TrialDays: 14, Enabled: true, SortOrder: 30, CreatedAt: now, UpdatedAt: now, }, + { + // Draft, not for sale (platform/werkmeister ADR 0001): no SKUs until pricing. + Key: "werkmeister", Name: "Werkmeister", Type: "standalone", + Description: "Visual workflow builder: blocks for the booked BreakPilot products, composable and versioned.", + LaunchURLs: map[string]string{"stage": "https://werkmeister-stage.breakpilot.com", "prod": "https://werkmeister.breakpilot.com"}, + ProvisionURLs: map[string]string{}, + SKUs: []string{}, Addons: []ProductAddon{}, + PlansRequired: plans, SupportsTrial: true, TrialDays: 14, Enabled: false, SortOrder: 40, CreatedAt: now, UpdatedAt: now, + }, { Key: "compliance", Name: "Compliance", Type: "standalone", Description: "DSFA / TOM / VVT generation; evidence capture.", diff --git a/migrations/0014_werkmeister_product.down.sql b/migrations/0014_werkmeister_product.down.sql new file mode 100644 index 0000000..c4d6e7f --- /dev/null +++ b/migrations/0014_werkmeister_product.down.sql @@ -0,0 +1 @@ +DELETE FROM products WHERE key = 'werkmeister'; diff --git a/migrations/0014_werkmeister_product.up.sql b/migrations/0014_werkmeister_product.up.sql new file mode 100644 index 0000000..e428ab3 --- /dev/null +++ b/migrations/0014_werkmeister_product.up.sql @@ -0,0 +1,10 @@ +-- Werkmeister (platform/werkmeister ADR 0001): visual workflow builder. +-- Draft, not for sale: disabled and without SKUs until pricing is decided +-- (scheme ---, cloud and on-prem tiers). +INSERT INTO products (key, name, description, type, launch_urls, skus, addons, plans_required, supports_trial, trial_days, enabled, sort_order) VALUES +('werkmeister', 'Werkmeister', + 'Visual workflow builder: blocks for the booked BreakPilot products, composable and versioned.', + 'standalone', + '{"stage": "https://werkmeister-stage.breakpilot.com", "prod": "https://werkmeister.breakpilot.com"}', + '[]', '[]', ARRAY['standard', 'business', 'enterprise'], TRUE, 14, FALSE, 40) +ON CONFLICT (key) DO NOTHING;