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

1779 Commits

Author SHA1 Message Date
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
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
bw-ghapp[bot]
f8121d666f
Autosync the updated translations (#13171)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-01-31 11:01:10 +01:00
Jared Snider
33ab7e6358
PM-8113 - Webauthn Iframe - update translation per figma 2025-01-30 20:31:10 -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
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
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
Daniel Riera
d2fec919b3
PM-14355 (#13110)
- Initial structure
- Implement flag where needed
- Apply dynamic styling
2025-01-29 11:17:50 -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
Justin Baur
320a459e38
Fix lint errors from merge (#13122) 2025-01-29 16:04:15 +01: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
f7f2fa6037
PM-8113 - TwoFactorAuthComp - more work on getting page title / icons working 2025-01-28 23:14:38 -05:00
Jared Snider
d0c372c7f1
PM-8113 - Browser Translations - update duoTwoFactorRequiredPageSubtitle to match design discussion 2025-01-28 22:35:51 -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
af9d132cae
PM-8113 - 2FA Auth Comp - Progress on implementing design changes 2025-01-28 14:53:27 -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
Oscar Hinton
70ea75d8f7
[PM-17496] Migrate eslint to flat config (#12806)
The legacy config is deprecated and will be removed in eslint 10. The flat config also allows us to write js functions which will assist in handling limitations with multiple identical rules.
2025-01-28 16:40:52 +01:00
Nick Krantz
08c42a8a27
[PM-13388] Extension: Persist Scroll from Vault (#12325)
* add service to track scroll position of the vault tab in the popup

* add data attribute to individual vault items
- Allows query selector to focus on the specific element

* stop scroll service when a cipher is deleted

* start scroll listener when the vault page is initialized

* fix strict linting errors

* remove focus reset when navigating back to the vault screen

* skip recording the first scroll from the automatic scroll

* combine filters into a single observable

* do not start the scroll service until filters have loaded in

* refactor allFilters to come from the vault popup list filters service

* use assertion on scroll position

* hide virtual scrolling element while scrolling is restored

* update comments

* fix failing tests to use different matcher

* remove visibility trick for restoring scroll position after chatting with design

---------

Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
2025-01-28 09:12:56 -06:00
Jared Snider
ab38b3bd89
PM-8113 - TwoFactorAuthComponent - add setAnonLayoutDataByTwoFactorProviderType and handle email case as POC 2025-01-27 19:07:37 -05:00
Jared Snider
fd1cb3c51b
PM-8113 - Test ExtensionTwoFactorAuthWebAuthnComponentService 2025-01-27 18:05:22 -05:00
Jared Snider
b7cd1f83d8
PM-8113 - ExtensionTwoFactorAuthEmailComponentService - add tests 2025-01-27 18:00:50 -05:00
Jared Snider
d954801929
PM-8113 - Test ExtensionTwoFactorAuthDuoComponentService 2025-01-27 17:47:00 -05:00
renovate[bot]
c3bb76bee0
[deps] Architecture: Update eslint-plugin-tailwindcss to v3.18.0 (#12966)
* [deps] Architecture: Update eslint-plugin-tailwindcss to v3.18.0

* Fix linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
2025-01-27 11:12:12 -05:00
Daniel James Smith
682e62cb6b
[PM-16485] Remove deprecated and unused PasswordGenerationService (#13053)
* Remove deprecated and unused PasswordGenerationService

* Remove unused state-service

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-27 10:12:20 -05:00
Daniel James Smith
750cb4888a
Add icons to settings page (#13052)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-27 12:10:11 +01:00
bw-ghapp[bot]
0eecc93165
Autosync the updated translations (#13080)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-01-27 07:30:19 +01:00
Jared Snider
c4e3585b8a
PM-8113 - ExtensionTwoFactorAuthComponentService tests 2025-01-25 21:11:38 -05:00
Github Actions
049877c4ce Bumped client version(s) 2025-01-24 21:44:04 +00:00
Jared Snider
7d90d1aa5e
PM-8113 - TODO: test all comp services 2025-01-24 16:37:35 -05:00
Jared Snider
e6e3cf623a
PM-8113 - Clean up used service method + TODO as I've confirmed it works for other flows. 2025-01-24 16:32:32 -05:00
bw-ghapp[bot]
524ba99b95
Autosync the updated translations (#13065)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-01-24 20:02:03 +00:00
✨ Audrey ✨
1fc20b55f2
[PM-15200] add "generated credential" screen reader notification (#12877)
replaces website$ dependency with `GenerateRequest`
2025-01-24 13:44:42 -06:00
Jordan Aasen
40606ee8af
[PM-15943] - Revert When filling a password, the extension flickers (#13061)
* Revert "use requestAnimationFrame instead of arbitrary timeout"

This reverts commit 09a236b1e7.

* Revert "fix failing test"

This reverts commit cb24266e9d.
2025-01-24 11:09:04 -08:00
Jared Snider
b583b52cc4
Merge remote-tracking branch 'origin/main' into auth/pm-8113/2fa-comps-ui-refresh 2025-01-24 13:49:24 -05:00
Github Actions
b396dda406 Bumped client version(s) 2025-01-24 17:59:54 +00:00
Justin Baur
5f57aae526
Move max-old-space-size option so it's in all builds (#13033) 2025-01-24 11:43:37 -05:00
Github Actions
dd1047cd0b Bumped client version(s) 2025-01-24 16:08:39 +00:00
Brandon Treston
b23a41ac86
[PM-17465] refactor PolicyService.getAll$ to make userId not optional (#13031)
* refactor PolicyService.getAll$ to make userId not optional

* add fix to browser

* fix test to read from mock singleUserState

* remove nested pipes, cleanup
2025-01-24 09:58:38 -05:00
bw-ghapp[bot]
9497f5b4c5
Autosync the updated translations (#13042)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-01-24 10:18:21 +01:00
Jordan Aasen
362745ad57
[PM-15943] - When filling a password, the extension flickers (#12900)
* use requestAnimationFrame instead of arbitrary timeout

* fix failing test
2025-01-23 15:45:26 -08:00
Jared Snider
171d9511db
PM-8113 - Update ExtensionTwoFactorAuthComponentService to close email 2FA single action popouts. 2025-01-23 18:28:27 -05:00
Jared Snider
dd4ef7b812
PM-8113 - AuthPopoutWindow - Add new single action popout for email 2FA so we can close it programmatically 2025-01-23 18:27:59 -05:00
Jared Snider
37ac40098c
Merge remote-tracking branch 'origin/main' into auth/pm-8113/2fa-comps-ui-refresh + merge conflict fixes 2025-01-23 18:14:37 -05:00
Jared Snider
09f4a468c9
PM-8113 - TwoFactorAuth + Webauthn - Refactor logic 2025-01-23 17:23:52 -05:00
Evan Bassler
8a2aa1eac2
[PM-16807] Update text and behavior for show id/card vault settings (#12808)
* update text and behavior for show id/card vault settings

* add new crowdin entry

* update crowdin entries

* revert default

---------

Co-authored-by: Evan Bassler <evanbassler@Mac.attlocal.net>
2025-01-23 13:59:39 -06:00
Matt Gibson
f9f30f8ec4
[PM-17479] Load-sdk-once (#12764)
* create service to load sdk on application init

* Eagerly load CLI SDK

* Remove wasm logging to api

* Fix imports

* Eagerly load Desktop renderer SDK

Note: If the main process ever requires an SDK, we'll need to load it there, too.
In that event, it's probably a good idea to move to IPC for all SDK functions to avoid
loading the SDK for every window.

* init wasm module from sdk load service

* Use default client factory

* Fix type imports

* Resolve jest module import errors

A CLI sdk load service that async imports our wasm binary doesn't seem to be needed to run, but jest isn't dealing with the ESM import properly.

* Fix linting

* remove example code
2025-01-23 14:34:22 -05:00