clients/apps/web/src
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
..
404 Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
app Expand account service (#6622) 2023-10-19 15:41:01 -04:00
connectors Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
images [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
locales [AC-1595] Update SSO identifier hint (#6608) 2023-10-18 10:18:51 -07:00
scss [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
utils Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
.nojekyll Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
404.html Update year in copyrights (#4325) 2022-12-28 21:59:23 +01:00
app-id.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
browserconfig.xml Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
favicon.ico Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
global.d.ts Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
index.html Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
main.ts Cleanup src folder for web and move ts code into src/app per angular convention (#3127) 2022-07-25 15:13:54 +02:00
manifest.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
polyfills.ts [BEEEP] [PM-4043] Remove date-input-polyfill (#6372) 2023-09-22 10:33:46 +00:00
theme.js Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
translation-constants.ts [CSA-27] Use new dependency-free locale service for WebAuthN translations (#4557) 2023-02-04 09:23:42 -05:00
version.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00