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): Update recipient data in send sign modal #17164

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

Cuteivist
Copy link
Contributor

Closes #17114

What does the PR do

  • Use recipient delegate in send sign modal to unify the way wallet account is displayed
  • Fetch selected recipient data and pass that to sign send modal

Affected areas

Wallet - simple sign modal

Architecture compliance

Screenshot of functionality (including design for comparison)

image

image

@Cuteivist Cuteivist requested review from micieslak, a team, caybro and alexjba as code owners January 29, 2025 20:14
@Cuteivist Cuteivist force-pushed the feat/recipient-delegate-sign-modal-17114 branch from ed7058a to 07ea8f2 Compare January 29, 2025 20:15
@status-im-auto
Copy link
Member

status-im-auto commented Jan 29, 2025

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 07ea8f2 #1 2025-01-29 20:22:58 ~7 min macos/aarch64 🍎dmg
✔️ 07ea8f2 #1 2025-01-29 20:24:33 ~9 min tests/nim 📄log
✔️ 07ea8f2 #1 2025-01-29 20:26:35 ~11 min tests/ui 📄log
✔️ 07ea8f2 #1 2025-01-29 20:30:33 ~15 min macos/x86_64 🍎dmg
✔️ 07ea8f2 #1 2025-01-29 20:36:14 ~21 min linux-nix/x86_64 📦tgz
✔️ 07ea8f2 #1 2025-01-29 20:38:51 ~23 min linux/x86_64 📦tgz
✔️ 07ea8f2 #1 2025-01-29 20:39:59 ~24 min windows/x86_64 💿exe
✔️ 54c6ef2 #2 2025-02-03 06:41:39 ~5 min macos/aarch64 🍎dmg
✔️ 54c6ef2 #2 2025-02-03 06:45:26 ~9 min tests/nim 📄log
✔️ 54c6ef2 #2 2025-02-03 06:48:24 ~12 min tests/ui 📄log
✔️ 54c6ef2 #2 2025-02-03 06:49:18 ~13 min macos/x86_64 🍎dmg
✔️ 54c6ef2 #2 2025-02-03 06:54:06 ~18 min linux-nix/x86_64 📦tgz
✔️ 54c6ef2 #2 2025-02-03 06:57:13 ~21 min linux/x86_64 📦tgz
✔️ 54c6ef2 #2 2025-02-03 06:58:42 ~22 min windows/x86_64 💿exe

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

LGTM in general

ens [string] - ens of recipient
emoji [string] - emoji of recipient wallet
color [string] - color of recipient wallet
colorId [string] - colorId of recipient wallet
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
colorId [string] - colorId of recipient wallet
colorId [int] - colorId of recipient wallet

Copy link
Member

Choose a reason for hiding this comment

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

Also in the delegate itself, should be an int, not string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Method that is always used together with it indicates it is string.
image

@@ -67,6 +81,29 @@ QObject {
!!selectedAssetContractEntry.item ?
selectedAssetContractEntry.item.address: ""

/** output property of the selected recipient address **/
Copy link
Contributor

Choose a reason for hiding this comment

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

do these need to separate properties here? we can simple expose the item from here do the necessary logic in UI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are passed as separate, because recipient can also be unknown address. In such case item would be empty.
I used separate properties to hide logic of checking for item availability. That way other components don't care whether it is wallet account or saved account or unknown address (only address property).

Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp left a comment

Choose a reason for hiding this comment

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

Some minor comments from me

@Cuteivist Cuteivist force-pushed the feat/recipient-delegate-sign-modal-17114 branch from 07ea8f2 to 54c6ef2 Compare February 3, 2025 06:35
@Cuteivist Cuteivist requested review from caybro and alaibe February 3, 2025 06:39
Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

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

LGTM!

@Cuteivist Cuteivist merged commit 7943293 into master Feb 6, 2025
9 checks passed
@Cuteivist Cuteivist deleted the feat/recipient-delegate-sign-modal-17114 branch February 6, 2025 09:08
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.

Integrate Recipient View into the sign modal
5 participants