1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00
bitwarden-browser/libs
Shane Melton c6be3fa19c
[AC-1437] Introduce Feature Flag route guard (#5465)
* Add feature flag route guard and tests

* Add additional test for not showing error toast

* Strengthen error toast test with message check

* Cleanup leaking test state in platformService mock

* Negate if statement to reduce nesting

* Update return type to CanActivateFn

* Use null check instead of undefined

* Introduce interface to support different feature flag types

- Switch to observable pattern to access serverConfig$ subject
- Add catchError handler to allow navigation in case of unexpected exception
- Add additional tests

* Add additional test for missing feature flag

* Remove subscription to the serverConfig observable

Introduce type checking logic to determine the appropriately typed flag getter to use in configService

* Update the feature flag to fallback to blocking the route on an unexpected exception

* Trigger test action

* Fix imports after merge with master
2023-06-08 09:12:52 -07:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
angular [AC-1437] Introduce Feature Flag route guard (#5465) 2023-06-08 09:12:52 -07:00
common Tech-Debt - [PM-2283] - Update ConfigApiService getServerConfig call to send access token if it exists (#5464) 2023-06-07 17:47:30 -04:00
components Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
exporter Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
importer Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
node Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
shared [PM-2328] Fix jest deprecations (#5483) 2023-05-22 20:19:16 +02:00