Skip to content

Commit 7b53db2

Browse files
authored
Merge branch 'main' into PM-22836-Defect-Browser-crash-on-import-screen-after-closing-extension-pop-up-and-selecting-choose-file
2 parents f78e6f9 + 338ea95 commit 7b53db2

File tree

395 files changed

+15466
-4845
lines changed

Some content is hidden

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

395 files changed

+15466
-4845
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/workflows/build-browser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/build-cli.yml

Lines changed: 2 additions & 2 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
[

0 commit comments

Comments
 (0)