From 797ca073b8550445c6958e40dc6241ffabf58cd9 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Thu, 22 Jun 2023 16:17:38 -0700 Subject: [PATCH] [AC-1423] Update organization subscription cloud page (#5614) * [AC-1423] Add ProgressModule to shared.module.ts * [AC-1423] Update cloud subscription page styles - Remove bootstrap styles - Use CL components where applicable - Use CL typography directives - Update heading levels to prepare for new SM sections * [AC-1423] Add usePasswordManager boolean to organization domain * [AC-1423] Introduce BitwardenProductType enum * [AC-1423] Update Organization subscription line items - Add product type prefix - Indent addon services like additional storage and service accounts - Show line items for free plans * [AC-1423] Simply sort function * [AC-1423] Remove header border * [AC-1423] Make "Password Manager" the default fallback for product name --- ...nization-subscription-cloud.component.html | 168 +++++++++--------- ...ganization-subscription-cloud.component.ts | 35 ++++ .../secrets-manager/enroll.component.html | 4 +- apps/web/src/app/shared/shared.module.ts | 3 + apps/web/src/locales/en/messages.json | 9 + .../models/data/organization.data.ts | 2 + .../models/domain/organization.ts | 2 + .../response/profile-organization.response.ts | 2 + .../enums/bitwarden-product-type.enum.ts | 4 + .../models/response/subscription.response.ts | 5 + 10 files changed, 147 insertions(+), 87 deletions(-) create mode 100644 libs/common/src/billing/enums/bitwarden-product-type.enum.ts diff --git a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html index c28bdd4ddc..20dc22597f 100644 --- a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html +++ b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html @@ -1,5 +1,5 @@ - + + -

{{ "storage" | i18n }}

-

{{ "subscriptionStorage" | i18n : sub.maxStorageGb || 0 : sub.storageName || "0 MB" }}

-
-
- {{ storagePercentage / 100 | percent }} -
-
+

{{ "storage" | i18n }}

+

+ {{ "subscriptionStorage" | i18n : sub.maxStorageGb || 0 : sub.storageName || "0 MB" }} +

+ -
-
+
+
-
@@ -179,11 +179,11 @@ -

{{ "selfHostingTitle" | i18n }}

-

+

{{ "selfHostingTitle" | i18n }}

+

{{ "selfHostingEnterpriseOrganizationSectionCopy" | i18n }}

-
+
-
+
-

{{ "additionalOptions" | i18n }}

-

+

{{ "additionalOptions" | i18n }}

+

{{ "additionalOptionsDesc" | i18n }}

-
+