1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00
Commit Graph

206 Commits

Author SHA1 Message Date
Alec Rippberger
493fbc0f32 Use continue method unanimously 2024-10-18 16:35:33 -05:00
Alec Rippberger
9ef1e3ce39 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-18 14:19:44 -05:00
Jared Snider
496bc74b51 PM-13820 - RegistrationStartSecondaryComp - add bitLink to link (#11626) 2024-10-18 15:08:08 -04:00
Alec Rippberger
3af2178ad2 Remove height / width from vault icon svg. 2024-10-18 10:23:53 -05:00
Alec Rippberger
a4e74b1ed2 Remove unused setPreviousUrl function. 2024-10-18 10:22:14 -05:00
Alec Rippberger
d4395fb142 Add todo comment re. inline errors. 2024-10-18 10:09:54 -05:00
Alec Rippberger
40dd0dd1d2 Replace loggedEmail with this.emailFormControl.value. 2024-10-18 09:48:40 -05:00
Alec Rippberger
ee1929bcc9 Move getLoginWithDevice call to loadEmailSettings. 2024-10-18 09:37:59 -05:00
Alec Rippberger
a49c4458d3 Replace loggedEmail with this.emailFormControl.value. 2024-10-18 09:30:21 -05:00
Jared Snider
ad40db9ecf PM-13368 - Registration with Email Verification - Registration Finish - Add 2FA support (#11614) 2024-10-18 10:17:23 -04:00
Alec Rippberger
79e177ac24 Only send email in query parameters if set. 2024-10-18 09:12:50 -05:00
Alec Rippberger
398d8e9beb Add new wave icon 2024-10-17 16:32:02 -05:00
Alec Rippberger
3cb428c606 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-17 16:30:15 -05:00
Jared Snider
4b67cd24b4 Auth/PM-8112 - UI refresh - Registration Components (#11353)
* PM-8112 - Update classes of existing registration icons

* PM-8112 - Add new icons

* PM-8112 - Export icons from libs/auth

* PM-8112 - RegistrationStart - Add new user icon as page icon

* PM-8112 - Replace RegistrationCheckEmailIcon with new icon so it displays properly

* PM-8112 - RegistrationFinish - Add new icon across clients

* PM-8112 - Registration start comp - update page icon and page title on state change to match figma

* PM-8112 - RegistrationFinish - adding most of framework for changing page title & subtitle when an org invite is in state.

* PM-8112 - Add joinOrganizationName to all clients translations

* PM-8112 - RegistrationFinish - Remove default page title & subtitle and let onInit logic figure out what to set based on flows.

* PM-8112 - RegistrationStart - Fix setAnonLayoutWrapperData calls

* PM-8112 - RegistrationFinish - simplify qParams init logic to make handling loading and page title and subtitle setting easier.

* PM-8112 - Registration Link expired - move icon to page icon out of main content

* PM-8112 - RegistrationFinish - Refactor init logic further into distinct flows.

* PM-8112 - Fix icons

* PM-8112 - Extension AppRoutingModule - move sign up start & finish routes under extension anon layout

* PM-8112 - Fix storybook

* PM-8112 - Clean up unused prop

* PM-8112 - RegistrationLockAltIcon tweaks

* PM-8112 - Update icons to have proper styling

* PM-8112 - RegistrationUserAddIcon - remove unnecessary svg class

* PM-8112 - Fix icons
2024-10-16 18:28:27 -04:00
Alec Rippberger
a3a2e9e321 Run prettier. 2024-10-15 22:06:54 -05:00
Alec Rippberger
b839c82d9e Remove unused enforcedPasswordPolicyOptions property. 2024-10-15 21:57:28 -05:00
Alec Rippberger
28aae75abf Fix translations. 2024-10-15 16:42:58 -05:00
Alec Rippberger
38051c9e7d Simplify ngOnInit: remove webOnInit and move getLoginWithDevice to defaultOnInit
I couldn't find any usages of qParams.org or qParams.sponsorshipToken on QA (signing up for family membership, creating organization, manually modifying query params), so I think these are safe to remove.
2024-10-15 16:22:47 -05:00
Alec Rippberger
588c65b039 Add DefaultLoginComponent tests. 2024-10-15 16:20:07 -05:00
Alec Rippberger
833582b8d4 Rename goAfterLogIn to evaluatePassword and borrow logic from lock component. 2024-10-15 16:20:06 -05:00
Alec Rippberger
49776193c0 Fix translation error 2024-10-15 14:42:18 -05:00
Alec Rippberger
3354527a5a Merge branch 'auth/pm-8111/browser-refresh-login-component' of https://github.com/bitwarden/clients into auth/pm-8111/browser-refresh-login-component 2024-10-15 12:35:41 -05:00
Alec Rippberger
1241ca1785 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-15 11:22:24 -05:00
Alec Rippberger
31f65ec463 Update Storybook with initialLoginEmail 2024-10-15 10:59:52 -05:00
Jared Snider
7297d0fccd Auth/PM-13318 - AnonLayoutWrapperData Refactor to add full Translation support (#11513)
* PM-13318 - AnonLayoutWrapperData refactor to support all possible string scenarios (untranslated string, translated string, and translated string with placeholders)

* PM-13318 - Fix accidental check in

* PM-13318 - Revert the correct change.

* PM-13318 - Fix test failures
2024-10-11 16:02:47 -04:00
Alec Rippberger
72f07fef55 Remove Web/Desktop comment from html template 2024-10-10 16:07:39 -05:00
Alec Rippberger
3936ccd979 Ensure isLoginWithPasskeySupported is only returns true for web client. 2024-10-10 16:06:23 -05:00
Alec Rippberger
9b2032238c Remove hardcoded colors from Vault Icon 2024-10-10 14:43:12 -05:00
Alec Rippberger
ea685728ca Add back button. 2024-10-10 10:58:01 -05:00
Alec Rippberger
90a24cba67 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-10 10:07:39 -05:00
Alec Rippberger
982da467b4 Directly set clientType in individual login component services. 2024-10-09 18:54:53 -05:00
Alec Rippberger
6d980bfadd Add await to saveEmailSettings function. 2024-10-09 14:32:50 -05:00
Alec Rippberger
47ce605e77 Restructure handAuthResult to ensure we redirect to vault. 2024-10-09 14:01:01 -05:00
Alec Rippberger
6e337e1e7d Use click event to trigger goToHint. 2024-10-09 13:02:59 -05:00
Alec Rippberger
57044a6855 Validate email on enter keypress. 2024-10-09 12:51:40 -05:00
Alec Rippberger
8975b60e1e Ensure Passkey login available for web and desktop. 2024-10-09 11:22:17 -05:00
Alec Rippberger
5aec3e8210 Update "continue" button from "submit" to "button" type. 2024-10-08 21:38:26 -05:00
Alec Rippberger
2bb89a42ba Ensure Login with Passkey button is shown by setting clientType. 2024-10-08 21:27:32 -05:00
Alec Rippberger
994e097eff Address PR feedback: use strict comparison. 2024-10-08 18:33:52 -05:00
Jared Snider
18522e5165 PM-13252 - AnonLayout - Style tweaks to fix scrollbars on browser + add typography to footer content + misc minor refactors. (#11449) 2024-10-08 14:51:08 -04:00
Alec Rippberger
f6d59dcc5c Adjust styles for password hint link. 2024-10-03 21:54:39 -05:00
Alec Rippberger
9308a472c7 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-03 09:31:54 -05:00
Jared Snider
4bd2e158c0 PM-12694 - Fix AnonLayoutStorybook to add router module and hideLogo toggling support (#11368) 2024-10-02 16:17:20 -04:00
Alec Rippberger
c0d37bcc62 Merge branch 'main' into auth/pm-8111/browser-refresh-login-component 2024-10-02 09:45:07 -05:00
Alec Rippberger
acd47c2b79 [PM-12694] Modify logo on AnonLayout to direct to base route on click (#11263)
* Add "back" functionality for Desktop.

* Return user to email field when logo is clicked in Web.

* Update function name.

* Move hideLogo to anchor wrapper.

* Use "/" route for logo back link.
2024-10-02 08:00:37 -05:00
Alec Rippberger
f8f8bb5386 Add comment to explain call to setLoginEmail. 2024-10-02 07:41:18 -05:00
Alec Rippberger
bdc988cc12 Cleanup formatting and remove unused provider. 2024-10-02 07:32:40 -05:00
Jared Snider
9ff1db7573 Auth/PM-9449 - UI Refresh + Client component consolidation into new LockV2 Component (#10451)
* PM-9449 - Init stub of new lock comp

* PM-9449 - (1) Add new lock screen title to all clients (2) Add to temp web routing module config

* PM-9449 - LockV2Comp - Building now with web HTML

* PM-9449 - Libs/Auth LockComp - bring in all desktop ts code; WIP, need to stand up LockCompService to facilitate ipc communication.

* PM-9449 - Create LockComponentService for facilitating client logic; potentially will decompose later.

* PM-9449 - Add extension lock comp service.

* PM-9449 - Libs/auth LockComp - bring in browser extension logic

* PM-9449 - Libs/auth LockComp html start

* PM-9449 - Libs/Auth LockComp - (1) Remove unused dep (2) Update setEmailAsPageSubtitle to work.

* PM-9449 - Add getBiometricsError to lock comp service for extension.

* PM-9449 - LockComp - (1) Save off client type as public comp var (2) Rename biometricLock as biometricLockSet

* PM-9449 - Work on lock comp service getAvailableUnlockOptions

* PM-9449 - WIP libs/auth LockComp

* PM-9449 - (1) Remove default lock comp svc (2) Add web lock comp svc.

* PM-9449 - UnlockOptions - replace incorrect type

* PM-9449 - DesktopLockComponentService -get most of observable based getAvailableUnlockOptions$ logic in place.

* PM-9449 - LockCompSvc - getAvailableUnlockOptions in place for all clients.

* PM-9449 - Add getBiometricsUnlockBtnText to LockCompSvc and put TODO for wiring it up later

* PM-9449 - Lock Comp - Replace all manual bools with unlock options.

* PM-9449 - Desktop Lock Comp Svc - adjust spacing

* PM-9449 - LockCompSvc - remove biometricsEnabled method

* PM-9449 - LockComp - Clean up commented out code

* PM-9449 - LockComp - webVaultHostname --> envHostName

* PM-9449 - Fix lock comp svc deps

* PM-9449 - LockComp - HTML progress

* PM-9449 - LockComp cleanup

* PM-9449 - Web Routing Module - wire up lock vs lockv2 using extension swap

* PM-9449 - Wire up loading state

* PM-9449 - LockComp - start wiring up listenForActiveUnlockOptionChanges logic with reactivity

* PM-9449 - Update desktop & extension lock comp service to use new biometrics service vs platform utils for biometrics information.

* PM-9449 - LockV2 - Swap platform util usage with toast svc

* PM-9449 - LockV2Comp - Bring over user id logic from PM-8933

* PM-9449 - LockV2Comp - Adjust everything to use activeAccount.id.

* PM-9449 - LockV2Comp - Progress on wiring up unlock option reactive stream.

* PM-9449 - LockComp ts - some refactoring and minor progress.

* PM-9449 - LockComp HTML - refactoring based on new idea to keep unlock options as separate as possible.

* PM-9449 - Add PIN translation to web

* PM-9449 - (1) Lock HTML refactor to make as independent verticals as possible (2) Refactor Lock ts (3) LockSvc - replace type with enum.

* PM-9449 - LockV2Comp - remove hardcoded await.

* PM-9449 - LockComp HTML - add todo

* PM-9449 - Web - Routing module - cleanup commented out stuff

* PM-9449 - LockV2Comp - Wire up biometrics + mild refactor.

* PM-9449 - Desktop - Wire up lockV2 redirection

* PM-9449 - LockV2 - Desktop - don't focus until unlock opts defined.

* PM-9449 - Fix accidental check in

* PM-9449 - LockV2 - loading state depends on unlock opts

* PM-9449 - LockV2 comp - remove unnecessary hr

* PM-9449 - Migrate  "yourVaultIsLockedV2" translation to desktop & browser.

* PM-9449 - LockV2 - Layout tweaks for biometrics

* PM-9449 - LockV2 - Biometric btn text

* PM-9449 - LockV2 - Wire up biometrics loading / disable state + remove unnecessary conditions around biometricsUnlockBtnText

* PM-9449 - DesktopLockSvc - Per discussion with Bernd, remove interval polling and just check once for biometric support and availability.

* PM-9449 - AuthGuard - Add todo to remove promptBiometric

* PM-9449 - LockV2 - Refactor primary and desktop init logic + misc clean up

* PM-9449 - LockV2 - Reorder init methods

* PM-9449 - LockV2 - Per discussion with Product, deprecate windows biometric settings update warning

* PM-9449 - Add TODO per discussion with Justin and remove TODO

* PM-9449 - LockV2 - Restore hide password on desktop window hidden functionality.

* PM-9449 - Clean up accomplished todo

* PM-9449 - LockV2 - Refactor func name.

* PM-9449 - LockV2 Comp - (1) TODO cleanup (2) Add browser logic to handleBiometricsUnlockEnabled

* PM-9449 - LockCompSvc changes - (1) Observability for isFido2Session (2) Adjust errors and returns per discussion with Justin

* PM-9449 - Per product, no longer need to support special fido2 case on extension.

* PM-9449 - LockCompSvc - add getPreviousUrl support

* PM-9449 - LockV2 - Continued ts cleanup

* PM-9449 - LockV2Comp - clean up unused props

* PM-9449 - LockV2Comp - Rename response to masterPasswordVerificationResponse

* PM-9449 - LockV2 - Remove unused formPromise prop

* PM-9449 - Add missing translations + update desktop to showReadonlyHostName

* PM-9449 - LockV2 - cleanup TODO

* PM-9449 - LockV2 - more cleanup

* PM-9449 - Desktop Routing Module - only allow LockV2 access if extension refresh flag is enabled.

* PM-9449 - Extension - AppRoutingModule - Add extension redirect + new lockV2 route.

* PM-9449 - Extension - AppRoutingModule - Add lockV2 to the ExtensionAnonLayoutWrapperComponent intead of the regular one.

* PM-9449 - Extension - CurrentAccountComp - add null checks as anon layout components don't have a state today. This prevents the account switcher from working on the new lockV2 comp.

* PM-9449 - Extension AppRoutingModule - LockV2 should use ExtensionAnonLayoutWrapperData

* PM-9449 - LockComp - BiometricUnlock - cancelling is a valid action.

* PM-9449 - LockV2 - Biometric autoprompt cleanup

* PM-9449 - LockV2 - (1) Add TODO for KM team (2) Fix submit logic.

* PM-9449 - Tweak TODO to add task #

* PM-9449 - Test WebLockComponentService

* PM-9449 - ExtensionLockComponentService tested

* PM-9449 - Tweak extension lock comp svc test

* PM-9449 - DesktopLockComponentService tested

* PM-9449 - Add task # to TODO

* PM-9449 - Update apps/browser/src/services/extension-lock-component.service.ts per PR feedback

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* PM-9449 - Per PR feedback, replace from with defer for better reactive execution of promise based functions.

* PM-9449 - Per PR feedback replace enum with type.

* PM-9449 - Fix imports and tests due to key management file moves.

* PM-9449 - Another test file import fix

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-10-01 16:06:18 -04:00
Alec Rippberger
2d5f4dfb70 Convert refactoring todo-rr-bw to standard todos. 2024-10-01 14:40:32 -05:00
Alec Rippberger
f42a391b6f Confirmed inline form errors working and removing todo comments. 2024-10-01 14:36:51 -05:00