From 03a9d0fd197d2f4c0df476ea2495544921bf46e4 Mon Sep 17 00:00:00 2001 From: Vitalii Date: Thu, 21 Mar 2024 15:57:12 +0200 Subject: [PATCH] web/satellite: free trial UI updates Rename Free Account to Free Trial. Remove included free storage and download in upgrade modal. Move the Storage and Download price to the description in upgrade modal. Rename disabled button (Current) in the Free Account plan to show the days remaining in the free trial. After trial_expiration has passed, but before "trial expiration freeze" has occurred, continue to display the "your trial is expiring soon" banner in the UI. Update signup page to have "Start your free trial" as the call to action instead of "Create Account". Issue: https://github.com/storj/storj-private/issues/643 Change-Id: I792270ad3d296ca3fd1c2231a2c48d4033fa6c1c --- .../objectRepository/SignupPageObjects.ts | 2 +- .../PricingPlanSelectionStep.vue | 4 +-- .../upgradeAccountFlow/UpgradeInfoStep.vue | 29 +++++++++++++------ .../upgradeAccountFlow/UpgradeOptionsStep.vue | 4 +-- .../src/composables/useTrialCheck.ts | 11 ++++--- web/satellite/src/layouts/default/AppBar.vue | 2 +- web/satellite/src/layouts/default/AuthBar.vue | 7 ++--- web/satellite/src/types/users.ts | 2 +- web/satellite/src/views/AccountSettings.vue | 2 +- web/satellite/src/views/ProjectSettings.vue | 2 +- web/satellite/src/views/Signup.vue | 7 ++--- 11 files changed, 38 insertions(+), 34 deletions(-) diff --git a/testsuite/playwright-ui/pageFactory/objectRepository/SignupPageObjects.ts b/testsuite/playwright-ui/pageFactory/objectRepository/SignupPageObjects.ts index 1a90a5bfc750..32d666ab8ece 100644 --- a/testsuite/playwright-ui/pageFactory/objectRepository/SignupPageObjects.ts +++ b/testsuite/playwright-ui/pageFactory/objectRepository/SignupPageObjects.ts @@ -7,7 +7,7 @@ export class SignupPageObjects { static INPUT_PASSWORD_XPATH = `//input[@id='Password']`; static INPUT_RETYPE_PASSWORD_XPATH = `//input[@id='Retype Password']`; static TOS_CHECKMARK_XPATH = `//input[@id='Terms checkbox']`; - static CREATE_ACCOUNT_BUTTON_XPATH = `//button[span[text()=' Create your account ']]`; + static CREATE_ACCOUNT_BUTTON_XPATH = `//button[span[text()=' Start your free trial ']]`; static HEADER_TEXT_XPATH = `//h1[.='Start using Storj today.']`; static SUBHEADER_TEXT_XPATH = `//p[contains(text(),'Whether migrating your data or just testing out')]`; diff --git a/web/satellite/src/components/dialogs/upgradeAccountFlow/PricingPlanSelectionStep.vue b/web/satellite/src/components/dialogs/upgradeAccountFlow/PricingPlanSelectionStep.vue index 9b3acc7d3f10..ee8a531eb8fc 100644 --- a/web/satellite/src/components/dialogs/upgradeAccountFlow/PricingPlanSelectionStep.vue +++ b/web/satellite/src/components/dialogs/upgradeAccountFlow/PricingPlanSelectionStep.vue @@ -65,7 +65,7 @@ const plans = ref([ ), ]); -/* +/** * Loads pricing plan config. Assumes that user is already eligible for a plan prior to component being mounted. */ onBeforeMount(async () => { @@ -74,7 +74,7 @@ onBeforeMount(async () => { ...plans.value, new PricingPlanInfo( PricingPlanType.FREE, - 'Free Account', + 'Free Trial', 'Limited', 'Free usage up to 25GB storage and 25GB egress bandwidth per month.', null, diff --git a/web/satellite/src/components/dialogs/upgradeAccountFlow/UpgradeInfoStep.vue b/web/satellite/src/components/dialogs/upgradeAccountFlow/UpgradeInfoStep.vue index bba7cd511bff..e1e4295140f9 100644 --- a/web/satellite/src/components/dialogs/upgradeAccountFlow/UpgradeInfoStep.vue +++ b/web/satellite/src/components/dialogs/upgradeAccountFlow/UpgradeInfoStep.vue @@ -4,13 +4,13 @@