1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

[PM-24412] Make billing api service call in members component non blocking (#16103)

* refactor organization to signal, unblock loading due to api call

* continue refactor WIP

* clean up

* refactor billingMetadata signal to observble

* deffer billing call

* refactor billingMetadata

* cleanup, add comment

* qa bug: add missing param
This commit is contained in:
Brandon Treston
2025-09-08 09:42:02 -04:00
committed by GitHub
parent 0b73b97d7a
commit b93602b09e
8 changed files with 714 additions and 675 deletions

View File

@@ -13,7 +13,7 @@ const MaxCheckedCount = 500;
/**
* Returns true if the user matches the status, or where the status is `null`, if the user is active (not revoked).
*/
function statusFilter(user: UserViewTypes, status: StatusType) {
function statusFilter(user: UserViewTypes, status?: StatusType) {
if (status == null) {
return user.status != OrganizationUserStatusType.Revoked;
}
@@ -35,7 +35,7 @@ function textFilter(user: UserViewTypes, text: string) {
);
}
export function peopleFilter(searchText: string, status: StatusType) {
export function peopleFilter(searchText: string, status?: StatusType) {
return (user: UserViewTypes) => statusFilter(user, status) && textFilter(user, searchText);
}