From ca3fa8194cbdf199231a68bdb7eed947bec58ae9 Mon Sep 17 00:00:00 2001 From: Tom Tang <4220945+shiba4life@users.noreply.github.com> Date: Wed, 13 May 2026 08:19:53 +0800 Subject: [PATCH] refactor(cloud-migration): unexport 3 internal poll-timing constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ts-unused-exports flagged UPGRADE_POLL_INTERVAL_MS, UPGRADE_POLL_MAX_MS, and CANCELLED_BANNER_MS in CloudMigrationSettings.tsx. All four call sites are inside the same file; the colocated test file does not import them. Drop the `export` keyword on the three const declarations. Behavior-preserving — pure dead-export sweep. Continues the cleanup from #1014/#1015/#1017/#1018/#1022/#1023/#1024/#1025/#1026. --- .../src/components/tabs/CloudMigrationSettings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/static-react/src/components/tabs/CloudMigrationSettings.tsx b/src/server/static-react/src/components/tabs/CloudMigrationSettings.tsx index e001b696..60a32b0b 100644 --- a/src/server/static-react/src/components/tabs/CloudMigrationSettings.tsx +++ b/src/server/static-react/src/components/tabs/CloudMigrationSettings.tsx @@ -12,9 +12,9 @@ import { // Poll configuration for post-Stripe-checkout upgrade detection. Stripe redirects // back to the app before the webhook that flips the user to `plan=paid` has // necessarily fired; we poll for up to 20s to bridge that race window. -export const UPGRADE_POLL_INTERVAL_MS = 2000 -export const UPGRADE_POLL_MAX_MS = 20000 -export const CANCELLED_BANNER_MS = 5000 +const UPGRADE_POLL_INTERVAL_MS = 2000 +const UPGRADE_POLL_MAX_MS = 20000 +const CANCELLED_BANNER_MS = 5000 // Cloud state is a single source of truth derived from the server — never // fabricated. Values: