Skip to content

[PM-23360] - Hide restricted cipher types in "File -> New Item" on desktop #15743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 23, 2025

Conversation

jaasen-livefront
Copy link
Collaborator

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-23360

📔 Objective

This PR hides restricted cipher types in file menu on desktop.

📸 Screenshots

Screenshot 2025-07-22 at 4 06 51 PM

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@jaasen-livefront jaasen-livefront changed the title [PM-23360] - Hides restricted cipher types in "File -> New Item" on desktop [PM-23360] - Hide restricted cipher types in "File -> New Item" on desktop Jul 22, 2025
Copy link
Contributor

github-actions bot commented Jul 22, 2025

Logo
Checkmarx One – Scan Summary & Details6f393159-841c-40c1-ab61-f62ff5f35c2c

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Jul 22, 2025

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 37.60%. Comparing base (c379651) to head (1fce04c).
Report is 10 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/desktop/src/main/menu/menu.file.ts 0.00% 11 Missing ⚠️
apps/desktop/src/app/app.component.ts 0.00% 3 Missing ⚠️
apps/desktop/src/main/menu/menubar.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15743      +/-   ##
==========================================
+ Coverage   37.58%   37.60%   +0.01%     
==========================================
  Files        3320     3321       +1     
  Lines       94806    94871      +65     
  Branches    14343    14350       +7     
==========================================
+ Hits        35629    35672      +43     
- Misses      57681    57702      +21     
- Partials     1496     1497       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@shane-melton shane-melton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Glad we didn't need to add all those dependencies to main.ts 😌

Just had a couple comments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 I don't think we need to modify this base super class. I don't see the _restrictedCipherTypes being used anywhere.

export class MenuUpdateRequest {
activeUserId: string;
accounts: { [userId: string]: MenuAccount };
restrictedCipherTypes: CipherType[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Should we make this CipherType[] | null?
We set it to null in the app component when there are no accounts.

@jaasen-livefront
Copy link
Collaborator Author

@shane-melton Thanks for the feedback, items are now addressed.

@jaasen-livefront jaasen-livefront requested review from shane-melton and removed request for justindbaur July 23, 2025 15:40
Copy link

Copy link
Member

@shane-melton shane-melton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Great work!

@jaasen-livefront jaasen-livefront merged commit 2040be6 into main Jul 23, 2025
56 checks passed
@jaasen-livefront jaasen-livefront deleted the PM-23360 branch July 23, 2025 16:33
BryanCunningham pushed a commit that referenced this pull request Jul 23, 2025
…sktop (#15743)

* hide restricted cipher types in file menu on desktop

* fix bitwarden menu

* small fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants