1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00
bitwarden-browser/apps/desktop/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
..
accounts [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
components [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
layout Fix typo overlayPostition > overlayPosition (#5530) 2023-07-17 13:02:44 -07:00
services Expand account service (#6622) 2023-10-19 15:41:01 -04:00
shared [SM-251] Migrate to new avatar component (#3600) 2022-10-27 14:38:34 +02:00
tools [PM-4197] Enable importing on deskop (#6502) 2023-10-19 08:00:06 -05:00
app-routing.module.ts Trusted Device Encryption feature (#5950) 2023-08-18 14:05:08 -04:00
app.component.ts [PM-4197] Enable importing on deskop (#6502) 2023-10-19 08:00:06 -05:00
app.module.ts [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
main.ts [PM-3996] Scaffolding for preload script (#6065) 2023-10-12 11:50:17 +02:00