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

fix(StatusSeedPhraseInput): accept a common prefix suggestion #16302

Conversation

caybro
Copy link
Member

@caybro caybro commented Sep 9, 2024

What does the PR do

  • fix for a corner case prob when there was a valid seedphrase word (e.g. cat) that is at the same time a prefix for other valid suggestions (e.g. category, catalog, ...); it was imposible to select it using Enter key or mouse click from the suggestions popup at the last field
  • add a QML regression test for this issue
  • use standard subcomponents (StatusDropdown, StatusListView) reducing code duplication and unifying UI/UX

Fixes #16291

Affected areas

StatusSeedPhraseInput

Architecture compliance

  • I am familiar with the application architecture and agreed good practices.
    My PR is consistent with this document: Architecture guidelines

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it
Zaznam.obrazovky.z.2024-09-09.23-19-15.mp4

- fix for a corner case prob when there was a valid seedphrase word
(e.g. cat) that is at the same type a prefix for other valid suggestions
(e.g. category, catalog, ...); it was imposible to select it using Enter
key or mouse click from the suggestions popup at the last field
- add a QML regression test for this issue
- use standard subcomponents (StatusDropdown, StatusListView) reducing
code duplication and unifying UI/UX

Fixes #16291
@caybro caybro force-pushed the 16291-hitting-enter-does-not-fill-in-the-word-on-the-enter-seed-modal-if-the-word-is-3-chars-length-and-it-is-the-last-one branch from 74c9ea2 to 4a65df1 Compare September 9, 2024 21:20
@@ -107,6 +104,7 @@ Item {
let seedWordTrimmed = seedWord.trim()
seedWordInput.input.edit.text = seedWordTrimmed
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length
filteredList.clear()
Copy link
Member Author

Choose a reason for hiding this comment

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

The actual one liner fix :)

@status-im-auto
Copy link
Member

status-im-auto commented Sep 9, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4a65df1 #2 2024-09-09 21:27:23 ~6 min tests/nim 📄log
✔️ 4a65df1 #2 2024-09-09 21:30:26 ~9 min macos/aarch64 🍎dmg
✔️ 4a65df1 #2 2024-09-09 21:30:42 ~9 min macos/x86_64 🍎dmg
4a65df1 #2 2024-09-09 21:32:15 ~11 min tests/ui 📄log
✔️ 4a65df1 #2 2024-09-09 21:36:22 ~15 min linux-nix/x86_64 📦tgz
✔️ 4a65df1 #2 2024-09-09 21:37:49 ~16 min linux/x86_64 📦tgz
4a65df1 #3 2024-09-09 22:11:33 ~11 min tests/ui 📄log
✔️ 4a65df1 #4 2024-09-09 22:30:38 ~11 min tests/ui 📄log

@status-im-auto
Copy link
Member

@caybro caybro requested a review from anastasiyaig September 10, 2024 00:44
Copy link
Contributor

@anastasiyaig anastasiyaig left a comment

Choose a reason for hiding this comment

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

Thank you for fixing that!

@caybro caybro merged commit 0a1ebb6 into master Sep 10, 2024
9 checks passed
@caybro caybro deleted the 16291-hitting-enter-does-not-fill-in-the-word-on-the-enter-seed-modal-if-the-word-is-3-chars-length-and-it-is-the-last-one branch September 10, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants