1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-14 01:01:31 +01:00
Commit Graph

2178 Commits

Author SHA1 Message Date
Jared Snider
7ab9225af1
PM-8113 - TwoFactorAuthComp - Add loginSuccessHandlerService 2025-02-03 17:43:47 -05:00
Jared Snider
a5ca2f956e
PM-8113 - 2FA Auth Comp - for form validated 2FA methods, add enter support. 2025-02-02 14:44:58 -05:00
Jared Snider
118aea38f4
PM-8113 - Refactor all 2FA flows to use either reactive forms or programmatic submission so we get the benefit of onSubmit form validation like we have elsewhere. 2025-02-02 14:28:59 -05:00
Jared Snider
386315aa90
PM-8113 - TwoFactorAuthYubikey - Clean up design per figma 2025-01-31 16:31:37 -05:00
Jared Snider
762d1c16a2
PM-8113 - TwoFactorAuthAuthenticator - Remove text per figma 2025-01-31 16:26:25 -05:00
Jared Snider
22890e1024
PM-8113 - Two Factor Options - Implement wrapping 2025-01-31 16:09:07 -05:00
Jared Snider
59050558df
Merge remote-tracking branch 'origin/main' into auth/pm-8113/2fa-comps-ui-refresh + oss routing module merge conflict resolution 2025-01-31 15:57:08 -05:00
Vicki League
ca53ecccd0
[CL-569] Optionally allow item content to wrap (#13178) 2025-01-31 13:42:41 -05:00
Vincent Salucci
22edfd4283
fix: move feature flag to correct grouping, update casing, update callers, refs PM-17763 (#13184) 2025-01-31 12:18:17 -06:00
Alec Rippberger
8e70d5b923
feat(auth): [PM-3953] generalize copy for login with device flows
Updates UI text and translations for the login with device feature to be more consistent and clear across desktop, browser and web clients. Changes include:

- Updated titles and content for login via auth request components
- Revised translations for device approval modal
- Updated notification titles and alert messages
- Simplified device management URL handling
- Added missing translations across platforms

Resolves PM-3953
2025-01-31 11:54:41 -06:00
Daniel James Smith
6ae30f5059
Remove dependency on importer/core from libs/angular (#13137)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-31 14:04:35 +01:00
Jared Snider
177fa3fc14
PM-8113 - TwoFactorAuthComp - per figma, put webauthn after checkbox. 2025-01-30 20:35:38 -05:00
Jared Snider
33ab7e6358
PM-8113 - Webauthn Iframe - update translation per figma 2025-01-30 20:31:10 -05:00
Jared Snider
afad4e08cf
PM-8113 - TwoFactorAuthWebAuthn - Add loading state for iframe until webauthn ready 2025-01-30 20:13:03 -05:00
Will Martin
f17cb61183
[UIF] fix toast title type (#13098) 2025-01-30 16:20:41 -05:00
Jimmy Vo
7a1121dff4
[pm-17763] Add limitItemDeletion property to UI. (#13162) 2025-01-30 15:30:34 -05:00
Shane Melton
a404729c9e
[PM-17745] Catch network errors in new device notification guard (#13161)
* [PM-17745] Wrap new device guard applicability check in try/catch to prevent crashes from network errors

* [PM-17745] Fix broken test
2025-01-30 12:18:22 -08:00
Jared Snider
4cce1d788d
PM-8113 - TwoFactorOptions - (1) Sort providers like setup screen (2) Add responsive scaling 2025-01-30 12:27:17 -05:00
Jimmy Vo
cbba1a686c
[pm-17363] Add LimitItemDeletion property to models (#13087) 2025-01-30 11:09:04 -05:00
Oscar Hinton
f8bdd66fbb
[PM-17629] Split up KM lib to km and km-ui (#13093) 2025-01-30 11:20:17 +01:00
Jared Snider
306b08ea09
PM-8113 - 2FA Options Comp rewritten to match figma 2025-01-29 18:58:49 -05:00
Jared Snider
dfacaff005
PM-8113 - TwoFactorOptionsComponent - remove icon disable logic and unused imports 2025-01-29 17:45:38 -05:00
Jared Snider
01314f1aa1
PM-8113 - TwoFactorOptionsComponent - deprecate recovery code functionality 2025-01-29 17:44:46 -05:00
Jared Snider
e2e5a92ef0
PM-8113 - Adjust translations based on meeting with Design 2025-01-29 17:06:48 -05:00
Jordan Aasen
4b45029d23
[PM-17688] - generator dialog - add missing button label i18n keys. fix logic for disabling button (#13140)
* add missing button label i18n keys. fix logic for displaying button label

* Update comment

Co-authored-by:  Audrey  <ajensen@bitwarden.com>

---------

Co-authored-by:  Audrey  <ajensen@bitwarden.com>
2025-01-29 14:06:03 -08:00
Shane Melton
99ecf821dd
[PM-17713] Only use cachedCipherView if the cache was initialized from a cipher (#13133) 2025-01-29 13:40:03 -08:00
Daniel James Smith
ef38a96faf
[PM-16485] Remove legacy generator from change password component (#13132)
* Remove deprecated and unused PasswordGenerationService

* Remove unused state-service

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-29 14:40:48 -05:00
Jared Snider
e368f1afa3
PM-8113 - Mark old two-factor-options component as v1. 2025-01-29 13:28:06 -05:00
Shane Melton
db2b405421
Fix noop notification service registration (#13131)
* Re-order the constructor dependencies to match between Noop and Default notification service

* Fix test file

* One more missed constructor
2025-01-29 12:58:01 -05:00
Jared Snider
7d8686122b
PM-8113 - TwoFactorAuthComp - remove icon from launch duo button per figma 2025-01-29 11:35:26 -05:00
Jared Snider
d579acb3aa
PM-8113 - (1) Add Yubico logo icon (2) Rename Yubikey icon to security key icon 2025-01-29 11:26:31 -05:00
Jared Snider
5a36c8b298
PM-8113 - 2FA Auth Comp - Duo icon works 2025-01-29 11:11:46 -05:00
Daniel James Smith
e73cb3e3ff
Move premium component into billing ownership (#12927)
* Move premium component into billing ownership

Update CODEOWNERS
Move files within libs/angular
Move files within desktop
Adjust import paths

* Remove configService

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-29 08:09:19 -08:00
Jared Snider
2ec3439df1
PM-8113 - TwoFactorAuthDuoComponent Html - remove text that was moved to page subtitle. 2025-01-29 11:01:02 -05:00
Tom
ab197049f5
[PM-14562] Risk insights notification feature flag (#13095)
* Risk insights notification feature flag

* Feature flag should be false
2025-01-29 10:26:54 -05:00
Ike
60e569ed9d
[PM-15605] Add new device protection opt out (#12880)
* feat(newdeviceVerificaiton) : adding component and request model

* feat(newDeviceverification) : adding state structure to track verify devices for active user; added API call to server.

* feat(newDeviceVerification) : added visual elements for opting out of new device verification.

* Fixing tests for account service.
fixed DI for account service

* Fixing strict lint issues

* debt(deauthorizeSessionsModal) : changed modal to dialog. fixed strict typing for the new dialog for deviceVerification.

* fixing tests

* fixing desktop build DI

* changed dialog to standalone fixed names and comments.

* Adding tests for AccountService

* fix linting

* PM-15605 - AccountComp - fix ngOnDestroy erroring as it was incorrectly decorated with removed property.

* PM-15605 - SetAccountVerifyDevicesDialogComponent - only show warning about turning off new device verification if user doensn't have 2FA configured per task description

---------

Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com>
Co-authored-by: Jared Snider <jsnider@bitwarden.com>
2025-01-29 09:49:56 -05:00
Justin Baur
b07d6c29a4
Add Web Push Support (#11346)
* WIP: PoC with lots of terrible code with web push

* fix service worker building

* Work on WebPush Tailored to Browser

* Clean Up Web And MV2

* Fix Merge Conflicts

* Prettier

* Use Unsupported for MV2

* Add Doc Comments

* Remove Permission Button

* Fix Type Test

* Write Time In More Readable Format

* Add SignalR Logger

* `sheduleReconnect` -> `scheduleReconnect`

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Capture Support Context In Connector

* Remove Unneeded CSP Change

* Fix Build

* Simplify `getOrCreateSubscription`

* Add More Docs to Matrix

* Update libs/common/src/platform/notifications/internal/worker-webpush-connection.service.ts

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Move API Service Into Notifications Folder

* Allow Connection When Account Is Locked

* Add Comments to NotificationsService

* Only Change Support Status If Public Key Changes

* Move Service Choice Out To Method

* Use Named Constant For Disabled Notification Url

* Add Test & Cleanup

* Flatten

* Move Tests into `beforeEach` & `afterEach`

* Add Tests

* Test `distinctUntilChanged`'s Operators More

* Make Helper And Cleanup Chain

* Add Back Cast

* Add extra safety to incoming config check

* Put data through response object

* Apply TS Strict Rules

* Finish PushTechnology comment

* Use `instanceof` check

* Do Safer Worker Based Registration for MV3

* Remove TODO

* Switch to SignalR on any WebPush Error

* Fix Manifest Permissions

* Add Back `webNavigation`

* Sorry, Remove `webNavigation`

* Fixed merge conflicts.

---------

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
Co-authored-by: Todd Martin <tmartin@bitwarden.com>
Co-authored-by: Todd Martin <106564991+trmartin4@users.noreply.github.com>
2025-01-29 08:49:01 -05:00
Jared Snider
cbcc2fa8f0
PM-8113 - Add todo 2025-01-28 23:33:41 -05:00
Jared Snider
f7f2fa6037
PM-8113 - TwoFactorAuthComp - more work on getting page title / icons working 2025-01-28 23:14:38 -05:00
Jared Snider
196ff0a616
PM-8113 - TwoFactorAuthComp - progress on adding 2fa provider page icons and subtitles 2025-01-28 18:21:27 -05:00
Jared Snider
1ff50d22ba
PM-8113 - TwoFactorAuthComp - fix comp tests 2025-01-28 18:04:51 -05:00
Jared Snider
01cae160f0
PM-8113 - TwoFactorAuthComponent - use2faRecoveryCode - build out method per discussion with design 2025-01-28 17:56:05 -05:00
Jared Snider
1066c1cb42
PM-8113 - 2fa Email Comp - add style changes per discussion with design 2025-01-28 17:53:36 -05:00
Jared Snider
5df561c1a3
PM-8113 - TwoFactorOptionsComponent - add todos 2025-01-28 14:53:54 -05:00
Jared Snider
af9d132cae
PM-8113 - 2FA Auth Comp - Progress on implementing design changes 2025-01-28 14:53:27 -05:00
Jared Snider
115514da27
PM-8113 - Update icons to use proper classes 2025-01-28 13:40:24 -05:00
Jared Snider
6b7f98eb71
PM-8113 - Update icons with proper svg with scaling via viewbox 2025-01-28 13:35:47 -05:00
Conner Turnbull
26a0594056
[PM-17655] Billing Code Ownership Updates (#13105)
* Moved has-premium.guard under billing

* Moved free-trial.ts to billing

* Moved premium directives to billing

* Moved families-policy.service.ts to billing

* Moved trial initiation from auth to billing
2025-01-28 13:17:00 -05:00
Nick Krantz
331c04a0fa
fix deep import for CipherFormComponent (#13107) 2025-01-28 08:49:48 -08:00
Nick Krantz
7c2bf504a3
[PM-11249] Sync attachment updates across platforms (#11758)
* update extension refresh form when an attachment is added or removed

- This is needed because the revision date was updated on the server and the locally stored cipher needs to match.

* receive updated cipher from delete attachment endpoint

- deleting an attachment will now alter the revision timestamp on a cipher.

* patch the cipher when an attachment is added or deleted

* migrate vault component to use the `cipherViews$` observable

* reference `cipherViews$` on desktop for vault-items

- This avoid race conditions where ciphers are cleared out in the background. `cipherViews` should always emit the latest views

* return CipherData from cipher service so that consumers have the updated cipher right away

* use the updated cipher from attachment endpoints to refresh the details within the add/edit components on desktop
2025-01-28 10:01:23 -06:00