Skip to content
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

[PM-14473] AC - "New" item button #12002

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nick-livefront
Copy link
Collaborator

@nick-livefront nick-livefront commented Nov 14, 2024

🎟️ Tracking

PM-14473

πŸ“” Objective

The ticket is geared towards custom users that cannot create a collection. Those users were only seeing the "new item" button rather than the dropdown to select the cipher type.

This was caused by the hierarchy of logic favoring the user's permissions rather than the extension refresh first. To solve:

  • I moved the check for extension refresh up, so the user will always see the dropdown menu unless they can only create collection1.
    • This does create a little but of duplicate markup, but it will be easy to strip out the non-refresh code once that is enabled.
  • There is internal logic within the dropdown menu to properly show the available options respective of the permissions.

1 I wasn't able to find permissions to test this scenario. Is there a way to get a user who can only create collections?

πŸ“Έ Screenshots

custom-user-create-cipher.mov

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 33.44%. Comparing base (a415679) to head (7cfc1be).
Report is 2 commits behind head on main.

βœ… All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12002   +/-   ##
=======================================
  Coverage   33.44%   33.44%           
=======================================
  Files        2845     2845           
  Lines       89099    89099           
  Branches    16992    16992           
=======================================
  Hits        29803    29803           
  Misses      56950    56950           
  Partials     2346     2346           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details – 5b42060e-2bc7-4ec6-98fd-eabd7a0dbc6f

No New Or Fixed Issues Found

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