-
- Downloads
License activation step - ms1 (#39257)
* adds /api/setup/token-check and add license-token to POST /api/setup (#38858) * adds /api/setup/token-check and add license-token to POST /api/setup * refactor tests * license-token => license_token for consistency * fixed test message * fix nesting in test * Add the step in the FE and pass the token to the setup api call (#38953) * refactor: go back to saving the index for the step, to avoid having to use a selector that needs global state in the reducer * Revert "refactor: go back to saving the index for the step, to avoid having to use a selector that needs global state in the reducer" This reverts commit ee7e44f48788528e059c3f1f8816a73b675e082b. * feat: adds UI and token api logic * test structure for paid features * initSetup action as workaround * pass token to the /setup endpoint * add jest tests for ee without token case * add warning comment on getIsPaidPlan * copy old schema for better diff * add license_token step seen event in the schema * update e2e tests to make them pass * should make e2e pass * explicitly check that the license activation step is not rendered * useStep hook * refactor: simplify logic in step_number * refactor: getInactiveStepTitle * fix too many slashes in import * refactor: rename selectThisStep to handleStepSelect * use isSetupCompleted from useStep * adds expect().toBeInTheDocument * remove waitFor in favor of await findBy * add submit snowplow event and increase the onboarding version in the events (#39151) * trackLicenseTokenStepSubmitted * adds a test and makes sure we're passing the token as undefined, not as null * clean up * remove waitFor * goToNextStep in all thunks (#39103) * Revert "initSetup action as workaround" This reverts commit 0318a55b. * goToNextStep thunk * Change the Next button to skip for the license activation step (#39292) * change the Next button to be Skip * trim token input * fix e2e test * fix quotes * hide error when the user changes the token (#39440) * keep token visible when going back (#39443)
Showing
- e2e/test/scenarios/onboarding/setup/setup.cy.spec.ts 55 additions, 16 deletionse2e/test/scenarios/onboarding/setup/setup.cy.spec.ts
- frontend/src/metabase-types/store/setup.ts 1 addition, 0 deletionsfrontend/src/metabase-types/store/setup.ts
- frontend/src/metabase/selectors/settings.ts 3 additions, 0 deletionsfrontend/src/metabase/selectors/settings.ts
- frontend/src/metabase/services.js 1 addition, 0 deletionsfrontend/src/metabase/services.js
- frontend/src/metabase/setup/actions.ts 34 additions, 5 deletionsfrontend/src/metabase/setup/actions.ts
- frontend/src/metabase/setup/analytics.ts 10 additions, 2 deletionsfrontend/src/metabase/setup/analytics.ts
- frontend/src/metabase/setup/components/CloudMigrationHelp/CloudMigrationHelp.tsx 4 additions, 4 deletions...etup/components/CloudMigrationHelp/CloudMigrationHelp.tsx
- frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.tsx 9 additions, 21 deletions...metabase/setup/components/DataUsageStep/DataUsageStep.tsx
- frontend/src/metabase/setup/components/DatabaseStep/DatabaseStep.tsx 4 additions, 13 deletions...c/metabase/setup/components/DatabaseStep/DatabaseStep.tsx
- frontend/src/metabase/setup/components/LanguageStep/LanguageStep.tsx 5 additions, 9 deletions...c/metabase/setup/components/LanguageStep/LanguageStep.tsx
- frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenForm.tsx 70 additions, 0 deletions...se/setup/components/LicenseTokenStep/LicenseTokenForm.tsx
- frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenStep.tsx 84 additions, 0 deletions...se/setup/components/LicenseTokenStep/LicenseTokenStep.tsx
- frontend/src/metabase/setup/components/LicenseTokenStep/index.ts 1 addition, 0 deletions...d/src/metabase/setup/components/LicenseTokenStep/index.ts
- frontend/src/metabase/setup/components/SettingsPage/SettingsPage.tsx 5 additions, 3 deletions...c/metabase/setup/components/SettingsPage/SettingsPage.tsx
- frontend/src/metabase/setup/components/UsageQuestionStep/UsageQuestionStep.tsx 5 additions, 16 deletions.../setup/components/UsageQuestionStep/UsageQuestionStep.tsx
- frontend/src/metabase/setup/components/UserStep/UserStep.tsx 6 additions, 19 deletionsfrontend/src/metabase/setup/components/UserStep/UserStep.tsx
- frontend/src/metabase/setup/components/WelcomePage/WelcomePage.tsx 5 additions, 5 deletions...src/metabase/setup/components/WelcomePage/WelcomePage.tsx
- frontend/src/metabase/setup/reducers.ts 10 additions, 10 deletionsfrontend/src/metabase/setup/reducers.ts
- frontend/src/metabase/setup/selectors.ts 10 additions, 1 deletionfrontend/src/metabase/setup/selectors.ts
- frontend/src/metabase/setup/tests/common.unit.spec.tsx 14 additions, 101 deletionsfrontend/src/metabase/setup/tests/common.unit.spec.tsx
Loading
Please register or sign in to comment