1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-22 02:21:34 +01:00
bitwarden-browser/libs/angular/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
..
admin-console/components Individual Vault Item Encryption Feature (#6241) 2023-09-28 08:44:57 -04:00
auth [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
billing/images/cards [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
components [PM-4360] Move auth owned code into auth (#6595) 2023-10-19 08:03:32 +00:00
directives [CL-104] fix overlay + virtual scroll view recycling bug (#6179) 2023-10-12 10:34:53 -04:00
guard [AC-1479][BEEEP] Refactor ConfigService to improve observable usage (#5602) 2023-09-08 10:05:37 -04:00
pipes Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
platform Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00: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
shared/components/password-strength [PM-2367] [BEEEP]: Extract password strength from password-generation-service (#5502) 2023-06-13 23:22:25 +02:00
tools added checked or unchecked validation to send hide email policy subscriber (#6317) 2023-09-18 12:00:04 +02:00
types [EC-7] Org Admin Vault Refresh Client V1 (#3925) 2022-11-02 09:57:25 -07:00
utils [PM-2102] Implement logic to keep row control enable/disable status in sync with the access item properties whenever the parent control is enabled/disabled (#5433) 2023-05-18 10:32:18 -07:00
validators Restrict angular imports (#5597) 2023-06-13 10:03:32 +10:00
vault [PM-1222] Store passkeys in Bitwarden vault (#4715) 2023-10-17 15:34:44 -04:00
jslib.module.ts [PM-2043] Fix additional space and characters copied to clipboard (#5312) 2023-07-17 17:00:50 +01:00