1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00
Commit Graph

851 Commits

Author SHA1 Message Date
Todd Martin
8182f6fa02 chore(deps): Add parse5 to Platform-owned deps 2025-08-19 16:24:58 -04:00
Bryan Cunningham
4449d8baf6 [CL-689][CL-799] Fix Icon button a11y errors (#15750)
* Throw error if appA11yTitle is null in icon button

* Add required label input

* Fix icon button errors in CL components and storeis

* fix popover aria-label errors

* remove commented code

* add labels to icon buttons in browser

* add labels to icon buttons in web

* add labels to icon buttons in license

* add labels to icon buttons in send

* add labels to icon buttons in angular

* fix missing pipe error

* fix sso icon button missed in error

* update labels in vault

* add section expand button label

* Adding labels to icon buttons

* Add lint rule to not allow icon buttons without label input

* rename util file

* trigger updates on title change

* update eslint rule name and folder

* add edit collection label to vault headers

* fix web header story label

* add show/hide summary labels

* update summary message

* fix breadcrumbs label message

* fix JSDoc to use correct input

* remove commented code

* use label as aria-label always. Remove init function

* add moreBreadcrumbs translation message to other apps

* add @bitwarden/team-ui-foundation as code owner for component eslint rules

* switch title to const variable

* add jsdoc comment on what the label input is used for

* [PM-22415] Tax ID notifications for Organizations and Providers (#15996)

* [NO LOGIC] Rename BillableEntity to BitwardenSubscriber

This helps us maintain paraody with server where we call this choice type ISubscriber. I chose BitwardenSubscriber to avoid overlap with RxJS

* [NO LOGIC] Move subscriber-billing.client to clients folder

* [NO LOGIC] Move organization warnings under organization folder

* Move getWarnings from OrganizationBillingApiService to new OrganizationBillingClient

I'd like us to move away from stashing so much in libs and utilizing the JsLibServicesModule when it's not necessary to do so. These are invocations used exclusively by the Web Vault and, until that changes, they should be treated as such

* Refactor OrganizationWarningsService

There was a case added to the Inactive Subscription warning for a free trial, but free trials do not represent inactive subscriptions so this was semantically incorrect. This creates another method that pulls the free trial warning and shows a dialog asking the user to subscribe if they're on one.

* Implement Tax ID Warnings throughout Admin Console and Provider Portal

* Fix linting error

* Jimmy's feedback

* remove duplicate messages keys

* revert changes to popover stories

* add back dupe myItems key for now as it was already here

* fix directive type errors

* remove variable left in error from merge conflict

* revert unintentional change to reports layout

* add back reports change

---------

Co-authored-by: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
2025-08-19 15:15:41 -04:00
renovate[bot]
d01db53f69 [deps]: Update actions/download-artifact action to v5 (#16060)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
2025-08-18 11:30:09 -04:00
Jonathan Prusik
d4bb341847 simplify step conditional (#16040) 2025-08-15 20:36:18 +00:00
Jonathan Prusik
6a65a6ff48 Fix job step order (#16038) 2025-08-15 18:35:41 +00:00
Jonathan Prusik
351a945f02 fix missing token error (#16036) 2025-08-15 17:52:28 +00:00
Jonathan Prusik
7d23a076de [PM-24785] Skip/Exit early from "Autofill BIT checks" workflow if there is no associated pull request or branch (#16034)
* check autofill bit checks workflow job requirements at the start of the job

* add source branch name to executed workflow title
2025-08-15 13:17:38 -04:00
Jonathan Prusik
ef60f5bb51 [PM-5756] Trigger Autofill BIT checks on browser build workflow completion with autofill-affecting file changes (#15960)
* trigger Autofill BIT checks on browser build workflow completion and autofill-affecting file changes

* further adjustments

* hardcode bitwarden owner

* remove unneeded origin_repo data in dispatch payload

* add ownership for workflow

* use actions/create-github-app-token

* update CODEOWNERS line with suggestion
2025-08-13 10:48:02 -04:00
Daniel García
b57238ca99 [PM-23663] Update yao-pkg and migrate CLI to Node 22 (#15622) 2025-08-07 14:34:03 -04:00
Addison Beck
361f7e3447 refactor: introduce @bitwarden/state and other common libs (#15772)
* refactor: introduce @bitwarden/serialization

* refactor: introduce @bitwarden/guid

* refactor: introduce @bitwaren/client-type

* refactor: introduce @bitwarden/core-test-utils

* refactor: introduce @bitwarden/state and @bitwarden/state-test-utils

Creates initial project structure for centralized application state management. Part of modularization effort to extract state code from common.

* Added state provider documentation to README.

* Changed callouts to Github format.

* Fixed linting on file name.

* Forced git to accept rename

---------

Co-authored-by: Todd Martin <tmartin@bitwarden.com>
2025-08-04 11:01:28 -04:00
Andy Pixley
be29a43a59 [BRE-1022] Replacing SPs with managed identity access (#15853) 2025-07-31 16:52:30 -04:00
Andy Pixley
0ebd4a841b Revert "[BRE-1022] Replace SPs with Managed Identities (#15844)" (#15851)
This reverts commit 74bfc1c38b.
2025-07-30 20:46:45 +00:00
Andy Pixley
74bfc1c38b [BRE-1022] Replace SPs with Managed Identities (#15844) 2025-07-30 15:44:33 -04:00
Andy Pixley
ca48c964d2 Revert "[BRE-1022] Switching to use AZ Managed Identities (#15830)" (#15831)
This reverts commit 4b08e9da30.
2025-07-29 19:38:56 +00:00
Andy Pixley
4b08e9da30 [BRE-1022] Switching to use AZ Managed Identities (#15830) 2025-07-29 15:27:03 -04:00
Matt Andreko
449293d74c Add mistakenly removed parameters for Sonar (#15812) 2025-07-29 13:56:25 -04:00
aj-bw
79a71c71e3 BRE-925/switch-web-to-alpine (#15270)
* update dockerfile and entrypoint script

* update entrypoint to sh

* add icu-libs to web container to fix startup errors

* remaining change needed for icu-libs

* pin alpine and update apk add commands
2025-07-28 10:58:30 -04:00
Ruyut
2eb8bf7d44 Fix typo in CODEOWNERS (#15788) 2025-07-28 13:29:12 +00:00
Sunset Mikoto
cd33ea0747 build(firefox): bump max file size limit to 5MB (#15477)
https://github.com/mozilla/addons-linter/pull/5674
2025-07-24 17:42:35 +00:00
Vicki League
d45cacc1af [CL-801] Fix chromatic.yml externals formatting (#15736) 2025-07-23 13:26:35 -04:00
Andy Pixley
6aa59d5ba7 [BRE-831] Fixing PR target permissions (#15729) 2025-07-22 12:46:02 -04:00
Justin Baur
a563e6d910 Add messaging & messaging-internal libraries (#15711) 2025-07-22 11:47:25 -04:00
Andy Pixley
81ee26733e [BRE-831] Fixing permissions (#15713) 2025-07-21 20:17:39 +00:00
Robyn MacCallum
77940116e6 DDG integration files modified workflow (#15665)
* Create alert-ddg-files-modified.yml

* Update alert-ddg-files-modified.yml

* Add encrypted-message-handler.service to alert-ddg-files-modified.yml

* Pin action versions

* Add permissions

* Update alert-ddg-files-modified.yml

* Update alert-ddg-files-modified.yml

* Add parameter to get list of files changed

* Wording update

* Update CODEOWNERS

* Make branch target main
2025-07-21 16:15:39 -04:00
Andy Pixley
83f9061474 [BRE-831] migrate secrets akv (#15158) 2025-07-21 15:54:28 -04:00
Colton Hurst
8811ec41ab [PM-22788] Add Autotype Crate and Windowing Functions (#15317)
* [PM-22783] Add initial feature flag and settings toggle for autotype MVP

* [PM-22783] Undo Cargo.lock changes

* [PM-22783] Disable console.log block

* [PM-22783] Lint fix

* [PM-22783] Small updates

* [PM-22783] Build fix

* [PM-22783] Use combineLatest in updating the desktop autotype service

* [PM-22783] Check if the user is on Windows

* [PM-22783] Undo access selector html change, linting keeps removing this

* [PM-22783] Fix failing test

* [PM-22788] Add initial desktop native autotype crate based on spike ticket investigation

* [PM-22788] cargo fmt

* [PM-22783] Update autotypeEnabled to be stored in service

* [PM-22783] Add todo comments

* [PM-22783] Add SlimConfigService and MainDesktopAutotypeService

* [PM-22783] Small fixes

* [PM-22788] Add get_foreground_window_title() and cleanup

* [PM-22788] Add comment

* [PM-22788] Lint and cross platform build fixes

* [PM-22788] Update windows.rs in autotype_internal

* [PM-22788] Update windows.rs and dummy.rs in autotype_internal

* [PM-22788] cargo fmt

* [PM-22788] Edit napi result types

* [PM-22788] Edit napi result types again

* [PM-22788] Add autofill as a codeowner of the desktop_native/autotype directory

* [PM-22788] Refactor autotype code

* [PM-22788] Move autotype dependency out of windows only due to abstraction change

* [PM-22788] Fix lint errors

* [PM-22788] Updates based on PR comments

* [PM-22788] cargo fmt
2025-07-18 10:30:19 -04:00
Matt Andreko
127fed70ac Update scan workflow to use centralized reusable component (#15635) 2025-07-17 10:01:37 -04:00
Bernd Schoolmann
8250e40c6c [PM-22271] Switch to SDK argon2 implementation, and drop other impls (#15401)
* Switch to SDK argon2 implementation

* Cleanup and update to the latest sdk

* Update package lock

* Remove copy patch

* Fix builds

* Fix test build

* Remove error

* Fix tests

* Fix build

* Run prettier

* Remove argon2 references

* Regenerate index.d.ts for desktop_native napi

* Replace mocked crypto function service type
2025-07-15 11:53:58 +02:00
Tyler
3f7cb674af BRE-883 build(firefox): check file size (#15399)
* build(firefox): check file size

if building `firefox` or `firefox-mv3`

    * check if any file(s) exceeds 4M (megabytes)

        - If true, fail and provide basic message.

* style: add clarity

sytle: add error message

* fix: relocate step

ensure final step of source files before validating

* test: add failure condition

* fix: source file target directory

* fix: test for failure condition

* test: remove failure condition

remove lines used for testing
2025-07-01 22:31:59 +02:00
Justin Baur
172623e050 [PM-20247] Initialize user-core library (#15029)
* Initialize user-core library

* Run `npm install`

* Fix patched generator bug
2025-07-01 15:59:11 -04:00
Justin Baur
4cb80b4a03 Platform logging lib (#15338)
* Add Platform Logging Lib

* Move console log spec and test util back into libs/common

* Fix ConsoleLogServer re-export

* Fix types error
2025-07-01 13:47:02 -04:00
Addison Beck
782dc930ad refactor(storage-test-utils): cut a new library for storage test tools (#15259)
* refactor(platform): generate a storage-test-utils library

* refactor(storage-test-utils): move FakeStorageService out of common
2025-06-30 13:56:26 -04:00
Justin Baur
4c2475a515 [PM-22343] Bump non-cli to Node 22 (#15058)
* Bump non-cli to Node 22

* Fix working-directory

* Lets see what breaks

* Maybe this works
2025-06-26 18:05:37 -04:00
Andy Pixley
78bebe66ea [BRE-848] Add Workflow Permissions (#15328) 2025-06-26 12:57:01 -04:00
Andreas Coroiu
556ec500ff [PM-12416] Fix cli signing issues (#15132)
* Add macOS notarization and signing steps to CI workflow

* Fix

* Fix path

* Test logic changes for signing

* Test logic

* feat: remove runtime hardening option

* feat: try using entitlements instead

* try removing unsigned memory entitlement

* fix: revert changes, unsigned memory required

---------

Co-authored-by: Michal Checinski <mchecinski@bitwarden.com>
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2025-06-24 09:36:14 +02:00
Addison Beck
95841eb078 refactor(storage-core): move storage files out of @bitwarden/common (#15076)
* refactor(platform): generate @bitwarden/storage-core boilerplate

* refactor(storage-core): move storage files out of @bitwarden/common

* chore(naming): rename AbstractStorageService to StorageService
2025-06-23 16:00:54 -04:00
Andy Pixley
a4ef61e1fc [BRE-848] Adding Workflow Permissions (#15250) 2025-06-20 12:34:18 -04:00
Daniel García
92100d1400 Make platform own desktop scripts (#15255) 2025-06-19 14:58:46 +02:00
Addison Beck
e8e61d2796 build(ci): remove the need to cherry pick version bumps to rc (#15188) 2025-06-17 13:57:27 -04:00
Vicki League
df4aae2fb2 [CL-700] Move auth-owned layout components to UIF ownership (#15093) 2025-06-17 13:33:01 -04:00
Todd Martin
b31fcc9442 Add DuckDuckGo to web app for selection when creating a Github issue (#15198)
* Add DDG to available browsers

* Adjusted to use web template and clarified names
2025-06-16 11:26:52 -04:00
Colton Hurst
4ddff8abb0 [PM-22645] Rename Windows Desktop Pack & Sign workflow (#15175) 2025-06-16 09:19:48 -04:00
renovate[bot]
fb9f8a9b33 [deps]: Update crowdin/github-action action to v2 (#15169)
* [deps]: Update crowdin/github-action action to v2

* fix(build): adjust config keys to match crowdin breaking changes

* build(crowdin): add a lint action for crowdin configurations

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: addisonbeck <github@addisonbeck.com>
2025-06-12 17:59:17 -04:00
Addison Beck
ed169335bf Revert "[deps]: Update crowdin/github-action action to v2 (#14929)" (#15159)
This reverts commit e8d73b577f.
2025-06-11 22:05:20 +00:00
renovate[bot]
e8d73b577f [deps]: Update crowdin/github-action action to v2 (#14929)
* [deps]: Update crowdin/github-action action to v2

* fix(build): adjust config keys to match crowdin breaking changes

* fix(build): comply with the new workflow linter for effect files

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Addison Beck <github@addisonbeck.com>
2025-06-11 17:38:47 -04:00
renovate[bot]
f30d6f0105 [deps]: Update dtolnay/rust-toolchain digest to b3b07ba (#14921)
* [deps]: Update dtolnay/rust-toolchain digest to b3b07ba

* fix(build): comply with ci linter in the test workflow

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Addison Beck <github@addisonbeck.com>
2025-06-11 16:14:13 -04:00
Vince Grassia
04e59a0fe2 BRE-889 - Remove checksum assets (#15146) 2025-06-11 15:33:51 -04:00
Oscar Hinton
685f7a0fd8 Confirm we can run the npm published CLI (#15007)
* Confirm we can run the npm published CLI

* Add comment
2025-06-09 11:02:14 +02:00
Addison Beck
e8224fdbe3 feat(nx): add basic-lib generator for streamlined library creation (#14992)
* feat(nx): add basic-lib generator for streamlined library creation

This adds a new nx-plugin library with a generator for creating "common" type
Bitwarden libs. It is set up to accept a lib name, description, team, and
directory. It then
- Creates a folder in the directory (default to libs)
- Sets up complete library scaffolding:
  - README with team ownership
  - Build, lint and test task configuration
  - Test infrastructure
- Configures TypeScript path mapping
- Updates CODEOWNERS with team ownership
- Runs npm i

This will make library creation more consistent and reduce manual boilerplate setup.

The plugin design itself was generated by `npx nx g plugin`. This means we
used a plugin to generate a plugin that exports generators. To create our
generator generator, we first needed a generator.

* fix(dirt/card): correct tsconfig path in jest configuration

Fix the relative path to tsconfig.base in the dirt/card library's Jest config.
The path was incorrectly using four parent directory traversals (../../../../)
when only three (../../../) were needed to reach the project root.

* chore(codeowners): clarify some nx ownership stuff
2025-06-05 14:20:23 -04:00
Joost Meulenbeld
2a17de6dd1 Update desktop.yml to include flatpak as installation method option (#15068) 2025-06-04 17:20:19 +00:00