Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -5,8 +5,8 @@ import {
featureGateRegistry,
getFeatureGate,
getStandardEntitlementPlan,
getStripePricePlaceholder,
getStripeProductPlaceholder,
getBillingProviderPricePlaceholder,
getBillingProviderProductPlaceholder,
listStandardEntitlementPlanIds,
standardEntitlementPlans,
type EntitlementPlanFeatureAssignment,
@@ -15,13 +15,24 @@ import {
const expectedPlanIds = ["starter", "pro", "business"] as const;
const expectedFeatureKeys = [
"dashboard",
"crm-basic",
"leads",
"projects",
"support-tickets",
"knowledge-base-read",
"knowledge-base-tenant",
"files",
"users",
"tasks",
"hr",
"integrations",
"booking",
"forms",
"signature",
"billing",
"search",
"automation",
"api",
"email-marketing",
"imported-lists",
@@ -31,6 +42,7 @@ const expectedFeatureKeys = [
"mcp",
"advanced-builder",
"import-export",
"email-inbox",
"rate-limit-per-minute",
"rate-limit-per-second",
"priority-support",
@@ -110,28 +122,28 @@ describe("standardEntitlementPlans", () => {
it("exposes lookup helpers without mutating fixture order", () => {
expect(getStandardEntitlementPlan("pro")?.metadata.publicName).toBe("Pro");
expect(getStandardEntitlementPlan("pro")?.metadata.stripeProductId).toBe(getStripeProductPlaceholder("pro"));
expect(getStandardEntitlementPlan("pro")?.metadata.stripePriceId).toBe(getStripePricePlaceholder("pro"));
expect(getStandardEntitlementPlan("pro")?.metadata.billingProviderProductId).toBe(getBillingProviderProductPlaceholder("pro"));
expect(getStandardEntitlementPlan("pro")?.metadata.billingProviderPriceId).toBe(getBillingProviderPricePlaceholder("pro"));
expect(getStandardEntitlementPlan("unknown-plan")).toBeUndefined();
expect(listStandardEntitlementPlanIds()).toEqual(expectedPlanIds);
});
it("uses deterministic safe Stripe placeholders and no secret-looking fixture strings", () => {
it("uses deterministic safe Mollie placeholders and no secret-looking fixture strings", () => {
for (const plan of standardEntitlementPlans) {
expect(plan.metadata.stripeProductId, `${plan.id} product id placeholder`).toBe(getStripeProductPlaceholder(plan.id));
expect(plan.metadata.stripePriceId, `${plan.id} price id placeholder`).toBe(getStripePricePlaceholder(plan.id));
expect(plan.metadata.stripeProductId, `${plan.id} non-empty product placeholder`).not.toBe("");
expect(plan.metadata.stripePriceId, `${plan.id} non-empty price placeholder`).not.toBe("");
expect(getStandardEntitlementPlan(plan.id)?.metadata.stripeProductId, `${plan.id} lookup product placeholder`).toBe(plan.metadata.stripeProductId);
expect(getStandardEntitlementPlan(plan.id)?.metadata.stripePriceId, `${plan.id} lookup price placeholder`).toBe(plan.metadata.stripePriceId);
expect(plan.metadata.billingProviderProductId, `${plan.id} product id placeholder`).toBe(getBillingProviderProductPlaceholder(plan.id));
expect(plan.metadata.billingProviderPriceId, `${plan.id} price id placeholder`).toBe(getBillingProviderPricePlaceholder(plan.id));
expect(plan.metadata.billingProviderProductId, `${plan.id} non-empty product placeholder`).not.toBe("");
expect(plan.metadata.billingProviderPriceId, `${plan.id} non-empty price placeholder`).not.toBe("");
expect(getStandardEntitlementPlan(plan.id)?.metadata.billingProviderProductId, `${plan.id} lookup product placeholder`).toBe(plan.metadata.billingProviderProductId);
expect(getStandardEntitlementPlan(plan.id)?.metadata.billingProviderPriceId, `${plan.id} lookup price placeholder`).toBe(plan.metadata.billingProviderPriceId);
const strings = [
plan.id,
plan.metadata.slug,
plan.metadata.publicName,
plan.metadata.description,
plan.metadata.stripeProductId,
plan.metadata.stripePriceId,
plan.metadata.billingProviderProductId,
plan.metadata.billingProviderPriceId,
...plan.features.flatMap(assignmentStrings),
];