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-4415] Improve form submissions capture for the notification bar #11517

Conversation

cagonzalezcs
Copy link
Contributor

@cagonzalezcs cagonzalezcs commented Oct 11, 2024

🎟️ Tracking

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

📔 Objective

The purpose of these changes is to improve the form submission capture process for the notification bar. These changes incorporate some modifications to how we handle qualification of fields, along with checks to ensure we capture visible buttons when attempting to capture click events on a submission button.

We also incorporate logic that presents the notification to a user when a form redirects from one page to another on submission. This ensures that we are able to present the notification on the location where the user signed up, even if they trigger the notification from the redirected origin.

⏰ 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

Cesar Gonzalez and others added 30 commits October 8, 2024 07:42
…antiation to ensure it can be used in the OverlayContentService
…og-html-tag' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…based on an update within the tab loading state
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
Cesar Gonzalez added 3 commits October 11, 2024 13:54
…og-html-tag' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 67.74194% with 20 lines in your changes missing coverage. Please review.

Project coverage is 33.35%. Comparing base (2673f9b) to head (e0e207f).
Report is 1 commits behind head on autofill/pm-8833-implement-on-page-autofill-menu-for-password-generation.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...src/autofill/content/bootstrap-autofill-overlay.ts 0.00% 5 Missing ⚠️
...utofill/content/bootstrap-autofill-overlay-menu.ts 0.00% 4 Missing ⚠️
...browser/src/autofill/content/bootstrap-autofill.ts 0.00% 3 Missing ⚠️
...src/autofill/background/notification.background.ts 60.00% 2 Missing ⚠️
...ill/background/overlay-notifications.background.ts 81.81% 0 Missing and 2 partials ⚠️
...ontent/bootstrap-autofill-overlay-notifications.ts 0.00% 2 Missing ⚠️
...wser/src/autofill/background/overlay.background.ts 0.00% 1 Missing ⚠️
...utofill/services/dom-element-visibility.service.ts 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                                             Coverage Diff                                              @@
##           autofill/pm-8833-implement-on-page-autofill-menu-for-password-generation   #11517      +/-   ##
============================================================================================================
+ Coverage                                                                     33.31%   33.35%   +0.03%     
============================================================================================================
  Files                                                                          2779     2779              
  Lines                                                                         86586    86607      +21     
  Branches                                                                      16506    16510       +4     
============================================================================================================
+ Hits                                                                          28848    28884      +36     
+ Misses                                                                        55463    55453      -10     
+ Partials                                                                       2275     2270       -5     

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

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Logo
Checkmarx One – Scan Summary & Detailsb3880e3d-0a97-4de2-b996-8f5fe3f1492a

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts: 18 Attack Vector
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts: 18 Attack Vector
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts: 18 Attack Vector
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts: 18 Attack Vector
MEDIUM Client_Privacy_Violation /libs/tools/send/send-ui/src/send-form/components/options/send-options.component.ts: 52 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html: 31
MEDIUM Client_Privacy_Violation /apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.html: 53
MEDIUM Client_Privacy_Violation /libs/tools/generator/components/src/username-generator.component.html: 3

@cagonzalezcs cagonzalezcs changed the title [PM-4415] Improve form submissions for notification bar [PM-4415] Improve form submissions capture for the notification bar Oct 14, 2024
@cagonzalezcs cagonzalezcs marked this pull request as ready for review October 14, 2024 16:25
@cagonzalezcs cagonzalezcs requested a review from a team as a code owner October 14, 2024 16:25
cagonzalezcs and others added 5 commits October 14, 2024 11:26
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
@jprusik
Copy link
Contributor

jprusik commented Oct 15, 2024

…ssword-generation' into autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit
@cagonzalezcs cagonzalezcs merged commit 31e49ba into autofill/pm-8833-implement-on-page-autofill-menu-for-password-generation Oct 16, 2024
24 of 25 checks passed
@cagonzalezcs cagonzalezcs deleted the autofill/pm-4415-detect-password-submissions-on-forms-that-do-not-emit-submit branch October 16, 2024 14:24
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