clients/apps/web/src/app
Matt Gibson cdcd1809f0
Expand account service (#6622)
* Define account service observable responsibilities

* Establish account service observables and update methods

* Update Account Service observables from state service

This is a temporary stop-gap to avoid needing to reroute all account
activity and status changes through the account service. That can be
done as part of the breakup of state service.

* Add matchers for Observable emissions

* Fix null active account

* Test account service

* Transition account status to account info

* Remove unused matchers

* Remove duplicate class

* Replay active account for late subscriptions

* Add factories for background services

* Fix state service for web

* Allow for optional messaging

This is a temporary hack until the flow of account status can be
reversed from state -> account to account -> state. The foreground
account service will still logout, it's just the background one cannot
send messages

* Fix add account logic

* Do not throw on recoverable errors

It's possible that duplicate entries exist in `activeAccounts` exist
in the wild. If we throw on adding a duplicate account this will cause
applications to be unusable until duplicates are removed it is not
necessary to throw since this is recoverable. with some potential loss
in current account status

* Add documentation to abstraction

* Update libs/common/spec/utils.ts

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* Fix justin's comment :fist-shake:

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2023-10-19 15:41:01 -04:00
..
admin-console [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
auth [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
billing Refactor StaticStore Plans and consuming logic (#6136) 2023-10-17 15:56:59 +01:00
common [CL-106] use CL's DialogService in Desktop & Browser (#5875) 2023-08-16 08:26:56 -04:00
components [AC-1479][BEEEP] Refactor ConfigService to improve observable usage (#5602) 2023-09-08 10:05:37 -04:00
core Expand account service (#6622) 2023-10-19 15:41:01 -04:00
layouts [SM-896] When org is disabled disable the logic and show warning symbols (#6225) 2023-10-16 14:29:03 +00:00
reports [PM-2169] Update Password Reprompt Modal to use Component Library (#5720) 2023-10-04 22:56:27 -04:00
settings [AC-1453] Move OrganizationPlansComponent and related components out of LooseComponentsModule (#6230) 2023-10-03 15:36:45 -04:00
shared [PM-2014] Passkey registration (#5396) 2023-10-10 15:10:26 +02:00
tools [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
vault [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
app.component.html Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
app.component.ts [PS-2841] remove SweetAlert2 dependency (#6191) 2023-09-11 17:15:27 -04:00
app.module.ts Add a warning to not modify this file (#6235) 2023-09-14 08:28:41 -04:00
oss-routing.module.ts [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
oss.module.ts [PM-2014] Passkey registration (#5396) 2023-10-10 15:10:26 +02:00
wildcard-routing.module.ts Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00