feat: prevent pasting of Snap name during Snap removal#23993
Merged
montelaidev merged 5 commits intodevelopfrom Apr 17, 2024
Merged
feat: prevent pasting of Snap name during Snap removal#23993montelaidev merged 5 commits intodevelopfrom
montelaidev merged 5 commits intodevelopfrom
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
ui/components/app/snaps/keyring-snap-removal-warning/keyring-snap-removal-warning.tsx
Outdated
Show resolved
Hide resolved
FrederikBolding
previously approved these changes
Apr 17, 2024
Collaborator
Builds ready [14c3765]
Page Load Metrics (1445 ± 672 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #23993 +/- ##
========================================
Coverage 67.52% 67.52%
========================================
Files 1244 1244
Lines 48807 48807
Branches 12747 12747
========================================
Hits 32955 32955
Misses 15852 15852 ☔ View full report in Codecov by Sentry. |
danroc
reviewed
Apr 17, 2024
ui/components/app/snaps/keyring-snap-removal-warning/keyring-snap-removal-warning.test.tsx
Outdated
Show resolved
Hide resolved
…nap-removal-warning.test.tsx Co-authored-by: Daniel Rocha <daniel.rocha@consensys.net>
FrederikBolding
approved these changes
Apr 17, 2024
danroc
approved these changes
Apr 17, 2024
Collaborator
Builds ready [e6def94]
Page Load Metrics (1364 ± 683 ms)
Bundle size diffs
|
Contributor
|
Chrome Version 124.0.6367.93 manual testing steps worked as expected, and the user cannot copy and paste the snap name via the keyboard shortcut or edit menu ✅ chrome-pr-23993-test.movFirefox Version 125.0.3 manual testing steps worked as expected, and the user cannot copy and paste the snap name via the keyboard shortcut or edit menu ✅ firefox-pr-23993-test.mov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The confirmation to remove a snap that has accounts present in the keyring, requires that the user type the snap name to confirm removal. However, the user can just copy and paste the name of the snap being removed. This PR disables the ability to paste the name.
Related issues
Fixes: 21445
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist