From 77004016f42bbf30ce6b0ce643a27047b4328b02 Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Fri, 6 Mar 2026 08:01:22 +0100 Subject: [PATCH 1/3] fix: cannot resize table editor columns on safari (#43450) ## Problem On Safari, it's impossible to resize a column. ## Solution This is actually a bug in `react-data-grid` that has been fixed in more recent versions but we can't use them. Patch the package ## How to test - Open the any table in the _Table editor_ - Resize a column --- .github/workflows/ai-tests.yml | 1 + .../workflows/authorize-vercel-deploys.yml | 1 + .github/workflows/autofix_linters.yml | 1 + .github/workflows/dashboard-pr-reminder.yml | 1 + .github/workflows/docs-last-changed.yml | 1 + .github/workflows/docs-mgmt-api-update.yml | 1 + .../workflows/docs-sync-troubleshooting.yml | 1 + .github/workflows/docs-sync.yml | 1 + .github/workflows/docs-tests-smoke.yml | 1 + .github/workflows/docs-tests.yml | 1 + .github/workflows/pg-meta-tests.yml | 1 + .github/workflows/prettier.yml | 6 +++- .github/workflows/search.yml | 1 + .../studio-lint-ratchet-decrease.yml | 1 + .github/workflows/studio-lint-ratchet.yml | 3 +- .github/workflows/studio-unit-tests.yml | 3 ++ .github/workflows/ui-patterns-tests.yml | 1 + .github/workflows/ui-tests.yml | 1 + .github/workflows/www-tests.yml | 1 + patches/react-data-grid.patch | 32 +++++++++++++++++++ pnpm-lock.yaml | 11 +++++-- pnpm-workspace.yaml | 23 +++++++------ 22 files changed, 79 insertions(+), 15 deletions(-) create mode 100644 patches/react-data-grid.patch diff --git a/.github/workflows/ai-tests.yml b/.github/workflows/ai-tests.yml index 6e27f7e86a128..8596d3eacd2a9 100644 --- a/.github/workflows/ai-tests.yml +++ b/.github/workflows/ai-tests.yml @@ -36,6 +36,7 @@ jobs: with: sparse-checkout: | packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm with: diff --git a/.github/workflows/authorize-vercel-deploys.yml b/.github/workflows/authorize-vercel-deploys.yml index 6a72b23d7a6ad..967dff10d78ce 100644 --- a/.github/workflows/authorize-vercel-deploys.yml +++ b/.github/workflows/authorize-vercel-deploys.yml @@ -29,6 +29,7 @@ jobs: # fetch only the root files and scripts folder sparse-checkout: | scripts + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm with: diff --git a/.github/workflows/autofix_linters.yml b/.github/workflows/autofix_linters.yml index 2ae0159afa596..f86ce2e573f0d 100644 --- a/.github/workflows/autofix_linters.yml +++ b/.github/workflows/autofix_linters.yml @@ -36,6 +36,7 @@ jobs: sparse-checkout: | packages apps + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/dashboard-pr-reminder.yml b/.github/workflows/dashboard-pr-reminder.yml index 76d464d0f4e85..d90bd6a0dccba 100644 --- a/.github/workflows/dashboard-pr-reminder.yml +++ b/.github/workflows/dashboard-pr-reminder.yml @@ -21,6 +21,7 @@ jobs: with: sparse-checkout: | scripts + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-last-changed.yml b/.github/workflows/docs-last-changed.yml index 1ec0774bba137..7760a24f32c41 100644 --- a/.github/workflows/docs-last-changed.yml +++ b/.github/workflows/docs-last-changed.yml @@ -28,6 +28,7 @@ jobs: fetch-depth: 0 sparse-checkout: | apps/docs + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-mgmt-api-update.yml b/.github/workflows/docs-mgmt-api-update.yml index 26eb74756e61e..61c2a31bc314e 100644 --- a/.github/workflows/docs-mgmt-api-update.yml +++ b/.github/workflows/docs-mgmt-api-update.yml @@ -20,6 +20,7 @@ jobs: ref: master sparse-checkout: | apps/docs + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-sync-troubleshooting.yml b/.github/workflows/docs-sync-troubleshooting.yml index c3794079eca10..ce1720cb0b21a 100644 --- a/.github/workflows/docs-sync-troubleshooting.yml +++ b/.github/workflows/docs-sync-troubleshooting.yml @@ -28,6 +28,7 @@ jobs: with: sparse-checkout: | apps/docs + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-sync.yml b/.github/workflows/docs-sync.yml index 7d7761070cac0..437d32ce36883 100644 --- a/.github/workflows/docs-sync.yml +++ b/.github/workflows/docs-sync.yml @@ -31,6 +31,7 @@ jobs: sparse-checkout: | apps/docs packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-tests-smoke.yml b/.github/workflows/docs-tests-smoke.yml index 92c72f250201f..0ac43ebcb0cc6 100644 --- a/.github/workflows/docs-tests-smoke.yml +++ b/.github/workflows/docs-tests-smoke.yml @@ -24,6 +24,7 @@ jobs: sparse-checkout: | apps/docs packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/docs-tests.yml b/.github/workflows/docs-tests.yml index 94d1bd66c0fce..35ab7b6ef5969 100644 --- a/.github/workflows/docs-tests.yml +++ b/.github/workflows/docs-tests.yml @@ -30,6 +30,7 @@ jobs: examples packages supabase + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/pg-meta-tests.yml b/.github/workflows/pg-meta-tests.yml index 23cc250212a08..2c5740b46f35e 100644 --- a/.github/workflows/pg-meta-tests.yml +++ b/.github/workflows/pg-meta-tests.yml @@ -29,6 +29,7 @@ jobs: sparse-checkout: | packages/pg-meta packages/tsconfig + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index ba815b105a94a..8f36d889f46b4 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -20,7 +20,9 @@ jobs: - name: Check out repo uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: - sparse-checkout: apps + sparse-checkout: | + apps + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm with: @@ -46,6 +48,7 @@ jobs: with: sparse-checkout: | i18n + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm with: @@ -71,6 +74,7 @@ jobs: sparse-checkout: | apps/docs/pages apps/docs/content + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm with: diff --git a/.github/workflows/search.yml b/.github/workflows/search.yml index e8f5671d8d591..6ce4cdcbe5e30 100644 --- a/.github/workflows/search.yml +++ b/.github/workflows/search.yml @@ -48,6 +48,7 @@ jobs: examples packages supabase + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/studio-lint-ratchet-decrease.yml b/.github/workflows/studio-lint-ratchet-decrease.yml index 4598a0cf7fbac..d29b3721bc273 100644 --- a/.github/workflows/studio-lint-ratchet-decrease.yml +++ b/.github/workflows/studio-lint-ratchet-decrease.yml @@ -20,6 +20,7 @@ jobs: .github apps/studio packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/studio-lint-ratchet.yml b/.github/workflows/studio-lint-ratchet.yml index 7e635ca754caa..9a3025584cb6d 100644 --- a/.github/workflows/studio-lint-ratchet.yml +++ b/.github/workflows/studio-lint-ratchet.yml @@ -26,6 +26,7 @@ jobs: .github apps/studio packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm @@ -41,5 +42,5 @@ jobs: - name: Install deps run: pnpm install --frozen-lockfile - - name: Run ratchet script + - name: Run ratchet script run: pnpm --filter studio run lint:ratchet diff --git a/.github/workflows/studio-unit-tests.yml b/.github/workflows/studio-unit-tests.yml index f7e96718d5e67..fa95d796757b8 100644 --- a/.github/workflows/studio-unit-tests.yml +++ b/.github/workflows/studio-unit-tests.yml @@ -36,6 +36,8 @@ jobs: sparse-checkout: | apps/studio packages + patches + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 id: filter with: @@ -83,6 +85,7 @@ jobs: with: sparse-checkout: | apps/studio + patches - name: Download coverage artifact uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: diff --git a/.github/workflows/ui-patterns-tests.yml b/.github/workflows/ui-patterns-tests.yml index 2036b9d3f6225..4638b4616a176 100644 --- a/.github/workflows/ui-patterns-tests.yml +++ b/.github/workflows/ui-patterns-tests.yml @@ -23,6 +23,7 @@ jobs: with: sparse-checkout: | packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 8d78237348cb4..0e8de49a0f3cf 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -33,6 +33,7 @@ jobs: with: sparse-checkout: | packages + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 if: steps.filter.outputs.relevant == 'true' diff --git a/.github/workflows/www-tests.yml b/.github/workflows/www-tests.yml index e6b9aecfbb14c..74cc5c34fb1f5 100644 --- a/.github/workflows/www-tests.yml +++ b/.github/workflows/www-tests.yml @@ -30,6 +30,7 @@ jobs: apps/www packages supabase + patches - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 name: Install pnpm diff --git a/patches/react-data-grid.patch b/patches/react-data-grid.patch new file mode 100644 index 0000000000000..430742bf868ec --- /dev/null +++ b/patches/react-data-grid.patch @@ -0,0 +1,32 @@ +diff --git a/lib/bundle.cjs b/lib/bundle.cjs +index 810cb878ffb394df9f17296995a838e08a7d6ccf..4ba752efe1b1de392c3254d1b0d12ab9a637362f 100644 +--- a/lib/bundle.cjs ++++ b/lib/bundle.cjs +@@ -1412,10 +1412,7 @@ function HeaderCell({ + hasDoubleClicked = true; + onColumnResize(column, 'max-content'); + } +- function onLostPointerCapture(event) { +- if (!hasDoubleClicked) { +- onPointerMove(event); +- } ++ function onLostPointerCapture() { + currentTarget.removeEventListener('pointermove', onPointerMove); + currentTarget.removeEventListener('dblclick', onDoubleClick); + currentTarget.removeEventListener('lostpointercapture', onLostPointerCapture); +diff --git a/lib/bundle.js b/lib/bundle.js +index ac667d97a43720d1f56995e63ad6556b80d4c4bf..42b6a17f382fffadbb8cdd2d7a6b42235af89ad0 100644 +--- a/lib/bundle.js ++++ b/lib/bundle.js +@@ -1408,10 +1408,7 @@ function HeaderCell({ + hasDoubleClicked = true; + onColumnResize(column, 'max-content'); + } +- function onLostPointerCapture(event) { +- if (!hasDoubleClicked) { +- onPointerMove(event); +- } ++ function onLostPointerCapture() { + currentTarget.removeEventListener('pointermove', onPointerMove); + currentTarget.removeEventListener('dblclick', onDoubleClick); + currentTarget.removeEventListener('lostpointercapture', onLostPointerCapture); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ecf699a56cfa3..5988ae0e1f858 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,6 +80,11 @@ overrides: '@aws-sdk/core>fast-xml-parser': ^5.3.5 openapi-sampler>fast-xml-parser: ^5.3.5 +patchedDependencies: + react-data-grid: + hash: 803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488 + path: patches/react-data-grid.patch + importers: .: @@ -176,7 +181,7 @@ importers: version: 18.3.1 react-data-grid: specifier: 7.0.0-beta.47 - version: 7.0.0-beta.47(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 7.0.0-beta.47(patch_hash=803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-day-picker: specifier: ^9.11.1 version: 9.11.1(react@18.3.1) @@ -1007,7 +1012,7 @@ importers: version: 5.0.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-data-grid: specifier: 7.0.0-beta.47 - version: 7.0.0-beta.47(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 7.0.0-beta.47(patch_hash=803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-day-picker: specifier: ^9.11.1 version: 9.11.1(react@18.3.1) @@ -34849,7 +34854,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-data-grid@7.0.0-beta.47(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-data-grid@7.0.0-beta.47(patch_hash=803f02d6cede565990ab9675326b93195b98bcc6477a4811715405892c257488)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: clsx: 2.1.1 react: 18.3.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 02e31c385132a..ee742a9c02691 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -13,9 +13,9 @@ catalog: '@types/node': ^22.0.0 '@types/react': ^18.3.0 '@types/react-dom': ^18.3.0 - next: ^15.5.10 - lodash-es: ^4.17.23 lodash: ^4.17.23 + lodash-es: ^4.17.23 + next: ^15.5.10 react: ^18.3.0 react-dom: ^18.3.0 recharts: ^2.15.4 @@ -44,7 +44,7 @@ minimumReleaseAge: 10080 minimumReleaseAgeExclude: - '@ai-sdk/*' - '@supabase/*' - - 'next' + - next - '@next/*' - ai - js-yaml @@ -66,17 +66,20 @@ onlyBuiltDependencies: - supabase overrides: + '@aws-sdk/core>fast-xml-parser': ^5.3.5 + '@mapbox/node-pre-gyp>tar': ^7.5.8 '@redocly/respect-core>form-data': ^4.0.4 '@redocly/respect-core>js-yaml': ^4.1.1 + cacache>tar: ^7.5.8 esbuild: ^0.25.2 - nodemailer: ^7.0.11 - lodash-es: 'catalog:' lodash: 'catalog:' + lodash-es: 'catalog:' + node-gyp>tar: ^7.5.8 + nodemailer: ^7.0.11 + openapi-sampler>fast-xml-parser: ^5.3.5 payload>undici: ^7.18.2 refractor>prismjs: ^1.30.0 - cacache>tar: ^7.5.8 - node-gyp>tar: ^7.5.8 - '@mapbox/node-pre-gyp>tar': ^7.5.8 tmp: ^0.2.4 - '@aws-sdk/core>fast-xml-parser': ^5.3.5 - openapi-sampler>fast-xml-parser: ^5.3.5 + +patchedDependencies: + react-data-grid: patches/react-data-grid.patch From 56d97ed7fd06f56e60648e37bd0278e32c3c670e Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Fri, 6 Mar 2026 16:11:53 +0900 Subject: [PATCH 2/3] [FE-2553] chore(studio): only show replication moved CTA if replication is enabled (#43479) The "Management of read replicas has moved" banner in Settings > Infrastructure linked to /database/replication, which returns a 404-like page for users who don't have the database:replication feature enabled. The notice is now only shown when the feature is enabled. --- .../Settings/Infrastructure/InfrastructureInfo.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx index 2fdfcf89b680e..5a8a523cda524 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx @@ -25,8 +25,15 @@ export const InfrastructureInfo = () => { const { ref } = useParams() const { data: project } = useSelectedProjectQuery() - const { projectAuthAll: authEnabled, projectSettingsDatabaseUpgrades: showDatabaseUpgrades } = - useIsFeatureEnabled(['project_auth:all', 'project_settings:database_upgrades']) + const { + projectAuthAll: authEnabled, + projectSettingsDatabaseUpgrades: showDatabaseUpgrades, + databaseReplication: showReplication, + } = useIsFeatureEnabled([ + 'project_auth:all', + 'project_settings:database_upgrades', + 'database:replication', + ]) const { data, @@ -71,7 +78,7 @@ export const InfrastructureInfo = () => { <> - {project?.cloud_provider !== 'FLY' && ( + {project?.cloud_provider !== 'FLY' && showReplication && ( Date: Fri, 6 Mar 2026 09:48:24 +0100 Subject: [PATCH 3/3] refactor: partner (#43466) --- apps/studio/data/partners/keys.ts | 4 +- ...n.ts => stripe-fabric-confirm-mutation.ts} | 2 +- ...roduct-query.ts => stripe-fabric-query.ts} | 6 +-- .../stripe/{product => fabric}/login.tsx | 12 +++--- packages/api-types/types/platform.d.ts | 42 +++++++++---------- 5 files changed, 33 insertions(+), 33 deletions(-) rename apps/studio/data/partners/{stripe-product-confirm-mutation.ts => stripe-fabric-confirm-mutation.ts} (94%) rename apps/studio/data/partners/{stripe-product-query.ts => stripe-fabric-query.ts} (82%) rename apps/studio/pages/partners/stripe/{product => fabric}/login.tsx (92%) diff --git a/apps/studio/data/partners/keys.ts b/apps/studio/data/partners/keys.ts index e0811d3daccc7..fff012ea90457 100644 --- a/apps/studio/data/partners/keys.ts +++ b/apps/studio/data/partners/keys.ts @@ -1,3 +1,3 @@ -export const stripeProductKeys = { - get: (arId: string | undefined) => ['stripe', 'product', arId] as const, +export const stripeFabricKeys = { + get: (arId: string | undefined) => ['stripe', 'fabric', arId] as const, } diff --git a/apps/studio/data/partners/stripe-product-confirm-mutation.ts b/apps/studio/data/partners/stripe-fabric-confirm-mutation.ts similarity index 94% rename from apps/studio/data/partners/stripe-product-confirm-mutation.ts rename to apps/studio/data/partners/stripe-fabric-confirm-mutation.ts index 463059c11b2ca..c0a2231583cc2 100644 --- a/apps/studio/data/partners/stripe-product-confirm-mutation.ts +++ b/apps/studio/data/partners/stripe-fabric-confirm-mutation.ts @@ -12,7 +12,7 @@ async function confirmAccountRequest({ arId }: ConfirmAccountRequestVariables) { if (!arId) throw new Error('Account request ID is required') const { data, error } = await post( - '/platform/stripe/product/provisioning/account_requests/{id}/confirm', + '/platform/stripe/fabric/provisioning/account_requests/{id}/confirm', { params: { path: { id: arId } }, } diff --git a/apps/studio/data/partners/stripe-product-query.ts b/apps/studio/data/partners/stripe-fabric-query.ts similarity index 82% rename from apps/studio/data/partners/stripe-product-query.ts rename to apps/studio/data/partners/stripe-fabric-query.ts index 1293692c48cf6..bc60a1f0895f5 100644 --- a/apps/studio/data/partners/stripe-product-query.ts +++ b/apps/studio/data/partners/stripe-fabric-query.ts @@ -2,7 +2,7 @@ import { queryOptions } from '@tanstack/react-query' import type { components } from 'api-types' import { get, handleError } from '../fetchers' -import { stripeProductKeys } from './keys' +import { stripeFabricKeys } from './keys' type GetAccountRequestVariables = { arId?: string @@ -13,7 +13,7 @@ export type AccountRequestDetails = components['schemas']['AccountRequestDetails async function getAccountRequest({ arId }: GetAccountRequestVariables, signal?: AbortSignal) { if (!arId) throw new Error('Account request ID is required') - const { data, error } = await get('/platform/stripe/product/provisioning/account_requests/{id}', { + const { data, error } = await get('/platform/stripe/fabric/provisioning/account_requests/{id}', { params: { path: { id: arId } }, signal, }) @@ -27,7 +27,7 @@ export const accountRequestQueryOptions = ( { enabled = true }: { enabled?: boolean } = { enabled: true } ) => { return queryOptions({ - queryKey: stripeProductKeys.get(arId), + queryKey: stripeFabricKeys.get(arId), queryFn: ({ signal }) => getAccountRequest({ arId }, signal), enabled: enabled && typeof arId !== 'undefined', }) diff --git a/apps/studio/pages/partners/stripe/product/login.tsx b/apps/studio/pages/partners/stripe/fabric/login.tsx similarity index 92% rename from apps/studio/pages/partners/stripe/product/login.tsx rename to apps/studio/pages/partners/stripe/fabric/login.tsx index ba30f36f45777..5106a99432ccf 100644 --- a/apps/studio/pages/partners/stripe/product/login.tsx +++ b/apps/studio/pages/partners/stripe/fabric/login.tsx @@ -12,12 +12,12 @@ import { } from 'ui' import APIAuthorizationLayout from '@/components/layouts/APIAuthorizationLayout' -import { useConfirmAccountRequestMutation } from '@/data/partners/stripe-product-confirm-mutation' -import { accountRequestQueryOptions } from '@/data/partners/stripe-product-query' +import { useConfirmAccountRequestMutation } from '@/data/partners/stripe-fabric-confirm-mutation' +import { accountRequestQueryOptions } from '@/data/partners/stripe-fabric-query' import { withAuth } from '@/hooks/misc/withAuth' import { useSignOut } from '@/lib/auth' -const StripeProductLoginPage = () => { +const StripeFabricLoginPage = () => { const router = useRouter() const { ar_id } = useParams() @@ -74,9 +74,9 @@ const StripeProductLoginPage = () => { ) : isSuccess ? ( <> -

Stripe Product Account Request

+

Stripe Fabric Account Request

- Stripe Product wants to create a Supabase organization for{' '} + Stripe Fabric wants to create a Supabase organization for{' '} {accountRequest.email} {accountRequest.name && <> ({accountRequest.name})}.

@@ -118,4 +118,4 @@ const StripeProductLoginPage = () => { ) } -export default withAuth(StripeProductLoginPage) +export default withAuth(StripeFabricLoginPage) diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts index b723f6cf7afc3..aa8ed6fabd963 100644 --- a/packages/api-types/types/platform.d.ts +++ b/packages/api-types/types/platform.d.ts @@ -4320,15 +4320,15 @@ export interface paths { patch?: never trace?: never } - '/platform/stripe/invoices/overdue': { + '/platform/stripe/fabric/provisioning/account_requests/{id}': { parameters: { query?: never header?: never path?: never cookie?: never } - /** Gets information about overdue invoices that relate to the authenticated user */ - get: operations['InvoicesController_getOverdueInvoices'] + /** Get account request details */ + get: operations['AccountRequestsController_getAccountRequest'] put?: never post?: never delete?: never @@ -4337,34 +4337,34 @@ export interface paths { patch?: never trace?: never } - '/platform/stripe/product/provisioning/account_requests/{id}': { + '/platform/stripe/fabric/provisioning/account_requests/{id}/confirm': { parameters: { query?: never header?: never path?: never cookie?: never } - /** Get account request details */ - get: operations['AccountRequestsController_getAccountRequest'] + get?: never put?: never - post?: never + /** Confirm account request (from Studio) */ + post: operations['AccountRequestsController_confirmAccountRequest'] delete?: never options?: never head?: never patch?: never trace?: never } - '/platform/stripe/product/provisioning/account_requests/{id}/confirm': { + '/platform/stripe/invoices/overdue': { parameters: { query?: never header?: never path?: never cookie?: never } - get?: never + /** Gets information about overdue invoices that relate to the authenticated user */ + get: operations['InvoicesController_getOverdueInvoices'] put?: never - /** Confirm account request (from Studio) */ - post: operations['AccountRequestsController_confirmAccountRequest'] + post?: never delete?: never options?: never head?: never @@ -26412,11 +26412,13 @@ export interface operations { } } } - InvoicesController_getOverdueInvoices: { + AccountRequestsController_getAccountRequest: { parameters: { query?: never header?: never - path?: never + path: { + id: string + } cookie?: never } requestBody?: never @@ -26426,12 +26428,12 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['OverdueInvoiceCount'][] + 'application/json': components['schemas']['AccountRequestDetailsDto'] } } } } - AccountRequestsController_getAccountRequest: { + AccountRequestsController_confirmAccountRequest: { parameters: { query?: never header?: never @@ -26447,18 +26449,16 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['AccountRequestDetailsDto'] + 'application/json': components['schemas']['ConfirmResponseDto'] } } } } - AccountRequestsController_confirmAccountRequest: { + InvoicesController_getOverdueInvoices: { parameters: { query?: never header?: never - path: { - id: string - } + path?: never cookie?: never } requestBody?: never @@ -26468,7 +26468,7 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['ConfirmResponseDto'] + 'application/json': components['schemas']['OverdueInvoiceCount'][] } } }