
backported "fix(sdk): migrate to custom redux context to allow using the sdk...

backported "fix(sdk): migrate to custom redux context to allow using the sdk on host apps that use redux" (#51414) * step1: add MetabaseReduxProvider and make our hooks + connect fn use it step1: add MetabaseReduxProvider and make our hooks + connect fn use it * step 2: codemod * step 3: manual fixes * step 4: e2e test for sdk --------- Co-authored-by: Nicolò Pretto <info@npretto.com>
Showing
- e2e/test-component/scenarios/embedding-sdk/redux-provider-clash.cy.spec.tsx 99 additions, 0 deletions.../scenarios/embedding-sdk/redux-provider-clash.cy.spec.tsx
- enterprise/frontend/src/embedding-sdk/components/private/SdkGlobalFontsStyles.tsx 1 addition, 1 deletion...embedding-sdk/components/private/SdkGlobalFontsStyles.tsx
- enterprise/frontend/src/embedding-sdk/components/public/InteractiveDashboard/ConnectedDashboard.tsx 2 additions, 1 deletion...onents/public/InteractiveDashboard/ConnectedDashboard.tsx
- enterprise/frontend/src/embedding-sdk/components/public/MetabaseProvider.tsx 3 additions, 3 deletions.../src/embedding-sdk/components/public/MetabaseProvider.tsx
- enterprise/frontend/src/embedding-sdk/hooks/private/use-sdk-usage-problem.ts 3 additions, 4 deletions.../src/embedding-sdk/hooks/private/use-sdk-usage-problem.ts
- enterprise/frontend/src/embedding-sdk/hooks/public/use-current-user.ts 1 addition, 2 deletions...ontend/src/embedding-sdk/hooks/public/use-current-user.ts
- enterprise/frontend/src/embedding-sdk/store/index.ts 9 additions, 13 deletionsenterprise/frontend/src/embedding-sdk/store/index.ts
- enterprise/frontend/src/embedding-sdk/store/use-sdk-selector.ts 9 additions, 7 deletions...rise/frontend/src/embedding-sdk/store/use-sdk-selector.ts
- enterprise/frontend/src/metabase-enterprise/advanced_permissions/components/ImpersonationModal/ImpersonationModal.tsx 5 additions, 7 deletions...ions/components/ImpersonationModal/ImpersonationModal.tsx
- enterprise/frontend/src/metabase-enterprise/application_permissions/pages/ApplicationPermissionsPage/ApplicationPermissionsPage.tsx 1 addition, 1 deletion...ApplicationPermissionsPage/ApplicationPermissionsPage.tsx
- enterprise/frontend/src/metabase-enterprise/audit_app/containers/AuditTable.jsx 1 addition, 1 deletion...c/metabase-enterprise/audit_app/containers/AuditTable.jsx
- enterprise/frontend/src/metabase-enterprise/audit_app/containers/UnsubscribeUserModal/UnsubscribeUserModal.jsx 1 addition, 1 deletion.../containers/UnsubscribeUserModal/UnsubscribeUserModal.jsx
- enterprise/frontend/src/metabase-enterprise/auth/components/SettingsJWTForm/SettingsJWTForm.tsx 1 addition, 1 deletion...prise/auth/components/SettingsJWTForm/SettingsJWTForm.tsx
- enterprise/frontend/src/metabase-enterprise/auth/components/SettingsSAMLForm/SettingsSAMLForm.jsx 1 addition, 1 deletion...ise/auth/components/SettingsSAMLForm/SettingsSAMLForm.jsx
- enterprise/frontend/src/metabase-enterprise/auth/containers/JwtAuthCard/JwtAuthCard.tsx 1 addition, 1 deletion...se-enterprise/auth/containers/JwtAuthCard/JwtAuthCard.tsx
- enterprise/frontend/src/metabase-enterprise/auth/containers/SamlAuthCard/SamlAuthCard.tsx 1 addition, 1 deletion...-enterprise/auth/containers/SamlAuthCard/SamlAuthCard.tsx
- enterprise/frontend/src/metabase-enterprise/license/components/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx 1 addition, 1 deletion...s/LicenseAndBillingSettings/LicenseAndBillingSettings.tsx
- enterprise/frontend/src/metabase-enterprise/moderation/components/QuestionModerationSection/QuestionModerationSection.jsx 1 addition, 1 deletion...s/QuestionModerationSection/QuestionModerationSection.jsx
- enterprise/frontend/src/metabase-enterprise/moderation/containers/ModerationReviewIcon/ModerationReviewIcon.tsx 1 addition, 1 deletion.../containers/ModerationReviewIcon/ModerationReviewIcon.tsx
- enterprise/frontend/src/metabase-enterprise/redux.ts 10 additions, 0 deletionsenterprise/frontend/src/metabase-enterprise/redux.ts
Please register or sign in to comment