Skip to content

Commit 2acc4c9

Browse files
committed
merge main
2 parents db957d6 + de42cf3 commit 2acc4c9

File tree

777 files changed

+35121
-11782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

777 files changed

+35121
-11782
lines changed

.claude/prompts/review-code.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,57 @@
1-
Please review this pull request with a focus on:
1+
# Bitwarden Clients Repo Code Review - Careful Consideration Required
22

3-
- Code quality and best practices
4-
- Potential bugs or issues
5-
- Security implications
6-
- Performance considerations
3+
## Think Twice Before Recommending
74

8-
Note: The PR branch is already checked out in the current working directory.
5+
Angular has multiple valid patterns. Before suggesting changes:
96

10-
Provide a comprehensive review including:
7+
- **Consider the context** - Is this code part of an active modernization effort?
8+
- **Check for established patterns** - Look for similar implementations in the codebase
9+
- **Avoid premature optimization** - Don't suggest refactoring stable, working code without clear benefit
10+
- **Respect incremental progress** - Teams may be modernizing gradually with feature flags
1111

12-
- Summary of changes since last review
13-
- Critical issues found (be thorough)
14-
- Suggested improvements (be thorough)
15-
- Good practices observed (be concise - list only the most notable items without elaboration)
16-
- Action items for the author
17-
- Leverage collapsible <details> sections where appropriate for lengthy explanations or code snippets to enhance human readability
12+
## Angular Modernization - Handle with Care
1813

19-
When reviewing subsequent commits:
14+
**Control Flow Syntax (@if, @for, @switch):**
2015

21-
- Track status of previously identified issues (fixed/unfixed/reopened)
22-
- Identify NEW problems introduced since last review
23-
- Note if fixes introduced new issues
16+
- When you see legacy structural directives (*ngIf, *ngFor), consider whether modernization is in scope
17+
- Do not mandate changes to stable code unless part of the PR's objective
18+
- If suggesting modernization, acknowledge it's optional unless required by PR goals
2419

25-
IMPORTANT: Be comprehensive about issues and improvements. For good practices, be brief - just note what was done well without explaining why or praising excessively.
20+
**Standalone Components:**
21+
22+
- New components should be standalone whenever feasible, but do not flag existing NgModule components as issues
23+
- Legacy patterns exist for valid reasons - consider modernization effort vs benefit
24+
25+
**Typed Forms:**
26+
27+
- Recommend typed forms for NEW form code
28+
- Don't suggest rewriting working untyped forms unless they're being modified
29+
30+
## Tailwind CSS - Critical Pattern
31+
32+
**tw- prefix is mandatory** - This is non-negotiable and should be flagged as ❌ major finding:
33+
34+
- Missing tw- prefix breaks styling completely
35+
- Check ALL Tailwind classes in modified files
36+
37+
## Rust SDK Adoption - Tread Carefully
38+
39+
When reviewing cipher operations:
40+
41+
- Look for breaking changes in the TypeScript → Rust boundary
42+
- Verify error handling matches established patterns
43+
- Don't suggest alternative SDK patterns without strong justification
44+
45+
## Component Library First
46+
47+
Before suggesting custom implementations:
48+
49+
- Check if Bitwarden's component library already provides the functionality
50+
- Prefer existing components over custom Tailwind styling
51+
- Don't add UI complexity that the component library already solves
52+
53+
## When in Doubt
54+
55+
- **Ask questions** (💭) rather than making definitive recommendations
56+
- **Flag for human review** (⚠️) if you're uncertain
57+
- **Acknowledge alternatives** exist when suggesting improvements

.github/CODEOWNERS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ bitwarden_license/bit-web/src/app/dirt @bitwarden/team-data-insights-and-reporti
4747
libs/dirt @bitwarden/team-data-insights-and-reporting-dev
4848
libs/common/src/dirt @bitwarden/team-data-insights-and-reporting-dev
4949

50-
## Localization/Crowdin (Platform and Tools team)
51-
apps/browser/src/_locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
52-
apps/browser/store/locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
53-
apps/cli/src/locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
54-
apps/desktop/src/locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
55-
apps/web/src/locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
50+
## Localization/Crowdin (Platform team)
51+
apps/browser/src/_locales @bitwarden/team-platform-dev
52+
apps/browser/store/locales @bitwarden/team-platform-dev
53+
apps/cli/src/locales @bitwarden/team-platform-dev
54+
apps/desktop/src/locales @bitwarden/team-platform-dev
55+
apps/web/src/locales @bitwarden/team-platform-dev
5656

5757
## Vault team files ##
5858
apps/browser/src/vault @bitwarden/team-vault-dev

.github/renovate.json5

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187
"json5",
188188
"keytar",
189189
"libc",
190-
"log",
191190
"lowdb",
192191
"mini-css-extract-plugin",
193192
"napi",
@@ -216,6 +215,8 @@
216215
"simplelog",
217216
"style-loader",
218217
"sysinfo",
218+
"tracing",
219+
"tracing-subscriber",
219220
"ts-node",
220221
"ts-loader",
221222
"tsconfig-paths-webpack-plugin",
@@ -230,6 +231,7 @@
230231
"webpack-node-externals",
231232
"widestring",
232233
"windows",
234+
"windows-core",
233235
"windows-future",
234236
"windows-registry",
235237
"zbus",
@@ -254,6 +256,11 @@
254256
groupName: "zbus",
255257
matchPackageNames: ["zbus", "zbus_polkit"],
256258
},
259+
{
260+
// We need to group all windows-related packages together to avoid build errors caused by version incompatibilities.
261+
groupName: "windows",
262+
matchPackageNames: ["windows", "windows-core", "windows-future", "windows-registry"],
263+
},
257264
{
258265
// We group all webpack build-related minor and patch updates together to reduce PR noise.
259266
// We include patch updates here because we want PRs for webpack patch updates and it's in this group.

.github/workflows/build-browser.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
zip -r browser-source.zip browser-source
194194
195195
- name: Upload browser source
196-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
196+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
197197
with:
198198
name: ${{matrix.license_type.archive_name_prefix}}browser-source-${{ env._BUILD_NUMBER }}.zip
199199
path: browser-source.zip
@@ -268,7 +268,7 @@ jobs:
268268
npm --version
269269
270270
- name: Download browser source
271-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
271+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
272272
with:
273273
name: ${{matrix.license_type.source_archive_name_prefix}}browser-source-${{ env._BUILD_NUMBER }}.zip
274274

@@ -332,7 +332,7 @@ jobs:
332332
working-directory: browser-source/apps/browser
333333

334334
- name: Upload extension artifact
335-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
335+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
336336
with:
337337
name: ${{ matrix.license_type.artifact_prefix }}${{ matrix.browser.artifact_name }}-${{ env._BUILD_NUMBER }}.zip
338338
path: browser-source/apps/browser/dist/${{matrix.license_type.archive_name_prefix}}${{ matrix.browser.archive_name }}
@@ -341,7 +341,7 @@ jobs:
341341

342342
build-safari:
343343
name: Build Safari - ${{ matrix.license_type.readable }}
344-
runs-on: macos-13
344+
runs-on: macos-15
345345
permissions:
346346
contents: read
347347
id-token: write
@@ -506,7 +506,7 @@ jobs:
506506
ls -la
507507
508508
- name: Upload Safari artifact
509-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
509+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
510510
with:
511511
name: ${{matrix.license_type.archive_name_prefix}}dist-safari-${{ env._BUILD_NUMBER }}.zip
512512
path: apps/browser/dist/${{matrix.license_type.archive_name_prefix}}dist-safari.zip
@@ -548,7 +548,7 @@ jobs:
548548
uses: bitwarden/gh-actions/azure-logout@main
549549

550550
- name: Upload Sources
551-
uses: crowdin/github-action@f214c8723025f41fc55b2ad26e67b60b80b1885d # v2.7.1
551+
uses: crowdin/github-action@08713f00a50548bfe39b37e8f44afb53e7a802d4 # v2.12.0
552552
env:
553553
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
554554
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}

.github/workflows/build-cli.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ jobs:
9393
[
9494
{ base: "linux", distro: "ubuntu-22.04", target_suffix: "" },
9595
{ base: "linux", distro: "ubuntu-22.04-arm", target_suffix: "-arm64" },
96-
{ base: "mac", distro: "macos-13", target_suffix: "" },
97-
{ base: "mac", distro: "macos-14", target_suffix: "-arm64" }
96+
{ base: "mac", distro: "macos-15-intel", target_suffix: "" },
97+
{ base: "mac", distro: "macos-15", target_suffix: "-arm64" }
9898
]
9999
license_type:
100100
[
@@ -268,7 +268,7 @@ jobs:
268268
fi
269269
270270
- name: Upload unix zip asset
271-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
271+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
272272
with:
273273
name: bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}${{ matrix.os.target_suffix }}-${{ env._PACKAGE_VERSION }}.zip
274274
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}${{ matrix.os.target_suffix }}-${{ env._PACKAGE_VERSION }}.zip
@@ -482,15 +482,15 @@ jobs:
482482
}
483483
484484
- name: Upload windows zip asset
485-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
485+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
486486
with:
487487
name: bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
488488
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
489489
if-no-files-found: error
490490

491491
- name: Upload Chocolatey asset
492492
if: matrix.license_type.build_prefix == 'bit'
493-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
493+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
494494
with:
495495
name: bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
496496
path: apps/cli/dist/chocolatey/bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
@@ -503,7 +503,7 @@ jobs:
503503

504504
- name: Upload NPM Build Directory asset
505505
if: matrix.license_type.build_prefix == 'bit'
506-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
506+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
507507
with:
508508
name: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
509509
path: apps/cli/bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
@@ -535,7 +535,7 @@ jobs:
535535
echo "BW Package Version: $_PACKAGE_VERSION"
536536
537537
- name: Get bw linux cli
538-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
538+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
539539
with:
540540
name: bw-linux-${{ env._PACKAGE_VERSION }}.zip
541541
path: apps/cli/dist/snap
@@ -572,7 +572,7 @@ jobs:
572572
run: sudo snap remove bw
573573

574574
- name: Upload snap asset
575-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
575+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
576576
with:
577577
name: bw_${{ env._PACKAGE_VERSION }}_amd64.snap
578578
path: apps/cli/dist/snap/bw_${{ env._PACKAGE_VERSION }}_amd64.snap

0 commit comments

Comments
 (0)