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-12252] Autofill name of new ciphers #11127

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

nick-livefront
Copy link
Collaborator

@nick-livefront nick-livefront commented Sep 18, 2024

🎟️ Tracking

PM-12252

📔 Objective

Autofill the name when creating a new cipher on the extension refresh components

  • Luckily this was already built in, just needed to be populated!

📸 Screenshots

autofill-name.mov

🦮 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

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.08%. Comparing base (afff91e) to head (a463234).
Report is 28 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11127   +/-   ##
=======================================
  Coverage   35.08%   35.08%           
=======================================
  Files        2709     2709           
  Lines       84531    84537    +6     
  Branches    16068    16067    -1     
=======================================
+ Hits        29655    29663    +8     
+ Misses      53905    53903    -2     
  Partials      971      971           

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

Copy link
Contributor

github-actions bot commented Sep 18, 2024

Logo
Checkmarx One – Scan Summary & Detailsd6eb1553-8ebb-4823-b4bc-dca90ef34c71

No New Or Fixed Issues Found

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 good, but I do have a few questions before we merge:

  • Should this be for all cipher types or just Login?
  • If the extension is popped out, should we ignore the current tab? (This looks to be the case with the current extension)

cc: @danielleflinn

@danielleflinn
Copy link
Member

@shane-melton good catch on the type edge case, yes we should only add the default item name for Login item types.

And yes, lets match the popout's behavior to what the existing extension does.

@nick-livefront
Copy link
Collaborator Author

Thanks, @shane-melton and @danielleflinn! Updated as such 01006d3 & 249c655

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.

Oh, looks like we need to fix a few tests then we should be good to go!

// pass along the uri and name
if (!poppedOut && type === CipherType.Login) {
loginDetails.uri = tab?.url;
loginDetails.name = Utils.getHostname(tab.url);
Copy link
Member

Choose a reason for hiding this comment

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

⛏️ tab?.url here as well. Or perhaps we check if the tab is null in the if condition?

@nick-livefront
Copy link
Collaborator Author

nick-livefront commented Sep 19, 2024

Oh, looks like we need to fix a few tests then we should be good to go!

Moving a little too quick for my own good 556ce26

@nick-livefront nick-livefront merged commit 17c9b26 into main Sep 23, 2024
26 checks passed
@nick-livefront nick-livefront deleted the vault/pm-12252/autofill-name branch September 23, 2024 13:55
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.

3 participants