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

feat(@wallet): 5 chars min account keypair name #13414

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

alaibe
Copy link
Contributor

@alaibe alaibe commented Feb 5, 2024

fixes #13384

@status-im-auto
Copy link
Member

status-im-auto commented Feb 5, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ee6c712 #1 2024-02-05 10:13:11 ~6 min tests/nim 📄log
✔️ ee6c712 #1 2024-02-05 10:13:59 ~7 min macos/aarch64 🍎dmg
✔️ ee6c712 #1 2024-02-05 10:17:49 ~11 min tests/ui 📄log
✔️ ee6c712 #1 2024-02-05 10:20:13 ~13 min macos/x86_64 🍎dmg
✔️ ee6c712 #1 2024-02-05 10:24:51 ~18 min linux/x86_64 📦tgz
✔️ ee6c712 #1 2024-02-05 10:39:37 ~32 min tests/e2e 📄log
✔️ ee6c712 #1 2024-02-05 10:42:23 ~35 min windows/x86_64 💿exe
✔️ ac44483 #2 2024-02-06 08:56:06 ~4 min macos/aarch64 🍎dmg
✔️ ac44483 #2 2024-02-06 08:57:20 ~5 min tests/nim 📄log
✔️ ac44483 #2 2024-02-06 08:59:24 ~7 min macos/x86_64 🍎dmg
✖️ ac44483 #2 2024-02-06 08:59:49 ~8 min tests/e2e 📄log
✔️ ac44483 #2 2024-02-06 09:01:54 ~10 min tests/ui 📄log
✔️ ac44483 #2 2024-02-06 09:07:56 ~16 min linux/x86_64 📦tgz
✔️ ac44483 #2 2024-02-06 09:22:15 ~30 min windows/x86_64 💿exe
✔️ ac44483 #3 2024-02-06 12:48:03 ~32 min tests/e2e 📄log

ui/app/AppLayouts/Profile/popups/RenameAccontModal.qml Outdated Show resolved Hide resolved
ui/imports/shared/popups/addaccount/states/Main.qml Outdated Show resolved Hide resolved
@@ -88,6 +88,13 @@ Item {
root.store.addAccountModule.newKeyPairName = text
}

validators: [
StatusMinLengthValidator {
errorMessage: qsTr("Keypair name must be at least %1 characters").arg(Constants.addAccountPopup.keyPairAccountNameMinLength)
Copy link
Member

Choose a reason for hiding this comment

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

Here too

Copy link
Member

Choose a reason for hiding this comment

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

Given the amount of repetition, extract the whole Validator somewhere? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd vote for a AccountNameInput and KeypairNameInput.
Many other things are repeated
If you agree i ll create the issue

Copy link
Contributor

@stefandunca stefandunca left a comment

Choose a reason for hiding this comment

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

Good to go after checking @caybro's recommendations

@alaibe alaibe force-pushed the feat/5-chars-min-account-name branch from ee6c712 to ac44483 Compare February 6, 2024 08:51
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.

Validate account name and keypairs that are under 5 characters
4 participants