1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-11 14:48:46 +01:00
bitwarden-browser/apps/browser/src/popup
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
..
components [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
images [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
scss [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
services Expand account service (#6622) 2023-10-19 15:41:01 -04:00
settings [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
app-routing.animations.ts [PS-2322] Extend browser's help and feedback page (#4532) 2023-02-27 16:26:47 +01:00
app-routing.module.ts [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
app.component.ts [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
app.module.ts [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
index.html [EC-183] Mono Repository - Browser (#2531) 2022-05-03 19:38:55 +02:00
main.ts [PM-2237] Add tailwind to desktop & browser (#5326) 2023-07-14 15:03:42 -04:00
polyfills.ts [BEEEP] [PM-4043] Remove date-input-polyfill (#6372) 2023-09-22 10:33:46 +00:00
tabs.component.html [PS-1182] Desktop / Browser: Accessibility - remove appBlurClick, change remaining links to buttons (#2662) 2022-07-25 12:43:10 +02:00
tabs.component.ts [EC-183] Mono Repository - Browser (#2531) 2022-05-03 19:38:55 +02:00