{{ "setupProvider" | i18n }}
{{ "setupProviderDesc" | i18n }}
- -From f6702cd2d74c32dda2d60bc6df0e46b563978867 Mon Sep 17 00:00:00 2001
From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
Date: Tue, 11 Jun 2024 10:36:31 -0400
Subject: [PATCH] [AC-2595] [AC-2596] Empty clients placeholder and setup
provider hint (#9505)
* Added empty state to providers clients page
* Added bitForm to Setup component and added billing email hint
---
apps/web/src/locales/en/messages.json | 7 +
.../providers/providers.module.ts | 2 +
.../providers/setup/setup.component.html | 55 +++---
.../providers/setup/setup.component.ts | 173 ++++++++++--------
.../app/billing/providers/clients/index.ts | 1 +
...manage-client-organizations.component.html | 149 ++++++++-------
.../providers/clients/no-clients.component.ts | 40 ++++
.../src/app/billing/providers/index.ts | 5 +-
.../provider-payment-method.component.html | 2 +-
.../manage-tax-information.component.html | 4 +-
.../manage-tax-information.component.ts | 69 ++++---
11 files changed, 304 insertions(+), 203 deletions(-)
create mode 100644 bitwarden_license/bit-web/src/app/billing/providers/clients/no-clients.component.ts
diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json
index 39423cbd90..9cbd44a963 100644
--- a/apps/web/src/locales/en/messages.json
+++ b/apps/web/src/locales/en/messages.json
@@ -8330,5 +8330,12 @@
},
"viewSecret": {
"message": "View secret"
+ },
+ "noClients": {
+ "message": "There are no clients to list"
+ },
+ "providerBillingEmailHint": {
+ "message": "This email address will receive all invoices pertaining to this provider",
+ "description": "A hint that shows up on the Provider setup page to inform the admin the billing email will receive the provider's invoices."
}
}
diff --git a/bitwarden_license/bit-web/src/app/admin-console/providers/providers.module.ts b/bitwarden_license/bit-web/src/app/admin-console/providers/providers.module.ts
index baa3e5e1bb..00a3872584 100644
--- a/bitwarden_license/bit-web/src/app/admin-console/providers/providers.module.ts
+++ b/bitwarden_license/bit-web/src/app/admin-console/providers/providers.module.ts
@@ -11,6 +11,7 @@ import { OssModule } from "@bitwarden/web-vault/app/oss.module";
import {
CreateClientOrganizationComponent,
+ NoClientsComponent,
ManageClientOrganizationNameComponent,
ManageClientOrganizationsComponent,
ManageClientOrganizationSubscriptionComponent,
@@ -65,6 +66,7 @@ import { SetupComponent } from "./setup/setup.component";
SetupProviderComponent,
UserAddEditComponent,
CreateClientOrganizationComponent,
+ NoClientsComponent,
ManageClientOrganizationsComponent,
ManageClientOrganizationNameComponent,
ManageClientOrganizationSubscriptionComponent,
diff --git a/bitwarden_license/bit-web/src/app/admin-console/providers/setup/setup.component.html b/bitwarden_license/bit-web/src/app/admin-console/providers/setup/setup.component.html
index d1cf666874..0fd6725304 100644
--- a/bitwarden_license/bit-web/src/app/admin-console/providers/setup/setup.component.html
+++ b/bitwarden_license/bit-web/src/app/admin-console/providers/setup/setup.component.html
@@ -1,40 +1,41 @@
{{ "setupProviderDesc" | i18n }}
- -