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(Profile flow): Send a contact request (CR) #13598

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

caybro
Copy link
Member

@caybro caybro commented Feb 16, 2024

What does the PR do

  • make SendContactRequestModal.qml use the common dialog, use the contact details if we already have it
  • make some minimal changes to the "Send ID verification" flow since it shares the same dialog
  • simplify the CommonContactDialog.qml footer/buttons handling
  • adjust the menu item texts
  • emit toasts when the action is performed
  • display a tooltip over the compressed elided key

Fixes #13518

Affected areas

SendContactRequestModal

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it
Zaznam.obrazovky.z.2024-02-16.13-06-49.webm

- make `SendContactRequestModal.qml` use the common dialog, use the
contact details if we already have it
- make some minimal changes to the "Send ID verification" flow since it
shares the same dialog
- simplify the `CommonContactDialog.qml` footer/buttons handling
- adjust the menu item texts
- emit toasts when the action is performed
- display a tooltip over the compressed elided key

Fixes #13518
@caybro caybro linked an issue Feb 16, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Feb 16, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 032b6b2 #1 2024-02-16 12:14:45 ~5 min tests/nim 📄log
✔️ 032b6b2 #1 2024-02-16 12:15:43 ~6 min macos/aarch64 🍎dmg
✔️ 032b6b2 #1 2024-02-16 12:19:29 ~10 min tests/ui 📄log
✔️ 032b6b2 #1 2024-02-16 12:20:58 ~12 min macos/x86_64 🍎dmg
✔️ 032b6b2 #1 2024-02-16 12:25:05 ~16 min linux/x86_64 📦tgz
✔️ 032b6b2 #1 2024-02-16 12:40:46 ~31 min windows/x86_64 💿exe

@status-im-auto
Copy link
Member

✔️ status-desktop/prs/linux/x86_64/tests-nim/PR-13598#1 🔹 ~5 min 54 sec 🔹 032b6b2 🔹 📦 tests/nim package

@@ -38,8 +38,8 @@ QtObject {
signal openImagePopup(var image, string url)
signal openProfilePopupRequested(string publicKey, var parentPopup, var cb)
signal openActivityCenterPopupRequested()
signal openSendIDRequestPopup(string publicKey, var cb)
signal openContactRequestPopup(string publicKey, var cb)
signal openSendIDRequestPopup(string publicKey, var contactDetails, var cb)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't want to open a pandora's box, but what if contact details get changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah good point, some of those dialogs already handle that, some don't. My (ultimate) plan is to unify that in the common dialog. Here the reason for passing var contactDetails thru the signal is simply saving the call when we already have the info

Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

lgtm!

@caybro caybro merged commit 2fa6596 into master Feb 16, 2024
8 checks passed
@caybro caybro deleted the 13518-profile-flow-send-a-contact-request-cr branch February 16, 2024 15:47
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.

[Profile flow] Send a contact request (CR)
4 participants