From 786c3b8c120e57feeed0269398c06b8e76d81f5e Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Tue, 16 Dec 2025 10:39:18 -0800 Subject: [PATCH] cleanup: remove now-unused stripe pricing table remnants (#7557) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes vestigial remnants of the Stripe pricing table integration, which was replaced in https://github.com/Comfy-Org/ComfyUI_frontend/pull/7359. The feature flag is now obsolete, but was forgotten about in that PR. This PR cleans everything up fully. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7557-cleanup-remove-now-unused-stripe-pricing-table-remnants-2cb6d73d3650812aaa5efe91f766fb20) by [Unito](https://www.unito.io) --- .env_example | 4 ---- global.d.ts | 2 -- src/locales/en/main.json | 6 ------ src/platform/remoteConfig/types.ts | 2 -- src/vite-env.d.ts | 3 +-- 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.env_example b/.env_example index d8624b1ec..b77b87bc0 100644 --- a/.env_example +++ b/.env_example @@ -42,7 +42,3 @@ ALGOLIA_API_KEY=684d998c36b67a9a9fce8fc2d8860579 # SENTRY_AUTH_TOKEN=private-token # get from sentry # SENTRY_ORG=comfy-org # SENTRY_PROJECT=cloud-frontend-staging - -# Stripe pricing table configuration (used by feature-flagged subscription tiers UI) -# VITE_STRIPE_PUBLISHABLE_KEY=pk_test_123 -# VITE_STRIPE_PRICING_TABLE_ID=prctbl_123 diff --git a/global.d.ts b/global.d.ts index d24c7c40b..7f7dd832f 100644 --- a/global.d.ts +++ b/global.d.ts @@ -13,8 +13,6 @@ interface Window { max_upload_size?: number comfy_api_base_url?: string comfy_platform_base_url?: string - stripe_publishable_key?: string - stripe_pricing_table_id?: string firebase_config?: { apiKey: string authDomain: string diff --git a/src/locales/en/main.json b/src/locales/en/main.json index f2bb751e3..f021b1138 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -1996,12 +1996,6 @@ "waitingForSubscription": "Complete your subscription in the new tab. We'll automatically detect when you're done!", "subscribe": "Subscribe" }, - "pricingTable": { - "description": "Access cloud-powered ComfyUI workflows with straightforward, usage-based pricing.", - "loading": "Loading pricing options...", - "loadError": "We couldn't load the pricing table. Please refresh and try again.", - "missingConfig": "Stripe pricing table configuration missing. Provide the publishable key and pricing table ID via remote config or .env." - }, "subscribeToRun": "Subscribe", "subscribeToRunFull": "Subscribe to Run", "subscribeNow": "Subscribe Now", diff --git a/src/platform/remoteConfig/types.ts b/src/platform/remoteConfig/types.ts index 4ac7d2831..e2660853b 100644 --- a/src/platform/remoteConfig/types.ts +++ b/src/platform/remoteConfig/types.ts @@ -39,6 +39,4 @@ export type RemoteConfig = { private_models_enabled?: boolean subscription_tiers_enabled?: boolean onboarding_survey_enabled?: boolean - stripe_publishable_key?: string - stripe_pricing_table_id?: string } diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index e02fab73a..5080e6ba7 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -18,8 +18,7 @@ declare global { } interface ImportMetaEnv { - readonly VITE_STRIPE_PUBLISHABLE_KEY?: string - readonly VITE_STRIPE_PRICING_TABLE_ID?: string + VITE_APP_VERSION?: string } interface ImportMeta {