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(@desktop/wallet): Create a new send module to clear out old logic and switch the old one to the new one later, once the old sendModal is not used anymore #16986

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Khushboo-dev-cpp
Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp commented Dec 19, 2024

fixes #16919

What does the PR do

Connects the Simple Send to backend.
Created new send module which removed all handling of UI states on the nim side
Uses the new format of router from go side, instead of the old one

Remaining:

  1. Need to replace old send module with new one once old SendModal will be deprecated
  2. Remove old router logic and connections from service

Affected areas

SimpleSendModal

Architecture compliance

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it
Screen.Recording.2024-12-19.at.11.56.56.PM.mov

@status-im-auto
Copy link
Member

status-im-auto commented Dec 19, 2024

Jenkins Builds

Click to see older builds (14)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8903ad2 #1 2024-12-19 11:55:33 ~6 min macos/aarch64 🍎dmg
✔️ 8903ad2 #1 2024-12-19 11:57:30 ~8 min tests/nim 📄log
✔️ 8903ad2 #1 2024-12-19 12:01:48 ~12 min tests/ui 📄log
✔️ 8903ad2 #1 2024-12-19 12:05:45 ~16 min macos/x86_64 🍎dmg
✔️ 8903ad2 #1 2024-12-19 12:07:43 ~18 min linux/x86_64 📦tgz
✔️ 8903ad2 #1 2024-12-19 12:08:41 ~19 min linux-nix/x86_64 📦tgz
✔️ 8903ad2 #1 2024-12-19 12:11:49 ~22 min windows/x86_64 💿exe
✔️ c883d39 #2 2024-12-19 15:05:23 ~4 min macos/aarch64 🍎dmg
✔️ c883d39 #2 2024-12-19 15:07:33 ~6 min tests/nim 📄log
✔️ c883d39 #2 2024-12-19 15:12:15 ~11 min tests/ui 📄log
✔️ c883d39 #2 2024-12-19 15:14:10 ~13 min macos/x86_64 🍎dmg
✔️ c883d39 #2 2024-12-19 15:17:35 ~16 min linux-nix/x86_64 📦tgz
✔️ c883d39 #2 2024-12-19 15:20:48 ~19 min windows/x86_64 💿exe
✔️ c883d39 #2 2024-12-19 15:21:01 ~20 min linux/x86_64 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 77368f4 #3 2024-12-19 18:23:55 ~6 min macos/aarch64 🍎dmg
✔️ 77368f4 #3 2024-12-19 18:25:38 ~7 min tests/nim 📄log
✔️ 77368f4 #3 2024-12-19 18:30:15 ~12 min tests/ui 📄log
✔️ 77368f4 #3 2024-12-19 18:32:47 ~14 min macos/x86_64 🍎dmg
✔️ 77368f4 #3 2024-12-19 18:34:35 ~16 min linux/x86_64 📦tgz
✔️ 77368f4 #3 2024-12-19 18:34:53 ~17 min linux-nix/x86_64 📦tgz
✔️ 77368f4 #3 2024-12-19 18:37:53 ~19 min windows/x86_64 💿exe
77368f4 #4 2024-12-24 06:41:19 ~1 min macos/aarch64 📄log
77368f4 #4 2024-12-24 06:42:06 ~2 min linux-nix/x86_64 📄log
✔️ 77368f4 #4 2024-12-24 06:46:51 ~7 min tests/nim 📄log
✔️ 77368f4 #4 2024-12-24 06:51:54 ~12 min tests/ui 📄log
✔️ 77368f4 #4 2024-12-24 06:54:08 ~14 min macos/x86_64 🍎dmg
✔️ 77368f4 #4 2024-12-24 06:58:36 ~19 min linux/x86_64 📦tgz
✔️ 77368f4 #4 2024-12-24 07:01:14 ~21 min windows/x86_64 💿exe
✔️ cb09738 #5 2025-01-02 07:01:57 ~4 min macos/aarch64 🍎dmg
✔️ cb09738 #5 2025-01-02 07:03:52 ~6 min tests/nim 📄log
✔️ cb09738 #5 2025-01-02 07:08:52 ~11 min tests/ui 📄log
✔️ cb09738 #5 2025-01-02 07:11:44 ~14 min linux/x86_64 📦tgz
✔️ cb09738 #5 2025-01-02 07:12:47 ~15 min linux-nix/x86_64 📦tgz
✔️ cb09738 #5 2025-01-02 07:13:30 ~16 min macos/x86_64 🍎dmg
✔️ cb09738 #5 2025-01-02 07:18:33 ~21 min windows/x86_64 💿exe

@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the feat/16919 branch 2 times, most recently from c883d39 to 77368f4 Compare December 19, 2024 18:17
@Khushboo-dev-cpp Khushboo-dev-cpp marked this pull request as ready for review December 19, 2024 18:32
@Khushboo-dev-cpp Khushboo-dev-cpp requested review from Cuteivist and removed request for a team December 19, 2024 18:32
@Khushboo-dev-cpp Khushboo-dev-cpp changed the title feat(@desktop/wallet): Create a new send module to clear out old logi and switch the old one to the new one later, once the old sendModal is not used anymore feat(@desktop/wallet): Create a new send module to clear out old logic and switch the old one to the new one later, once the old sendModal is not used anymore Dec 20, 2024
@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the feat/buildingSimpleSend branch 3 times, most recently from b6919a3 to a40b6e6 Compare December 24, 2024 05:45
Base automatically changed from feat/buildingSimpleSend to master December 24, 2024 06:39
…c and switch the old one to the new one later, once the old sendModal is not used anymore

fixes #16919
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 overall

Some minor stuff inline

/** input property to set estimated time **/
property string estimatedTime
/** input property to set estimated fees in fiat **/
property string estimatedFiatFees
/** input property to set estimated fees in crypto **/
property string estimatedCryptoFees

/** property to set currently selected send type **/
property string sendType: Constants.SendType.Transfer
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
property string sendType: Constants.SendType.Transfer
property int sendType: Constants.SendType.Transfer

It's an int on Constants

@@ -120,6 +123,17 @@ StatusDialog {
/** Output signal to inform that the forms been updated **/
signal formChanged()

/** function exposed to check if the form is filled correctly **/
function allValuesFilledCorrectly() {
Copy link
Member

Choose a reason for hiding this comment

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

Could be a readonly property?

- key [string] - unique identifier of an asset
- decimals [int] - decimals of the token
- marketDetails [QObject] - collectible's contract address
- currencyPrice [CurrenctAmount] - assets market price in CurrencyAmount
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
- currencyPrice [CurrenctAmount] - assets market price in CurrencyAmount
- currencyPrice [CurrencyAmount] - assets market price in CurrencyAmount

currentCurrency: root.currentCurrency
fnFormatCurrencyAmount: root.fnFormatCurrencyAmount
fnResolveENS: root.fnResolveENS
fnResolveENS: root.fnResolveENS
Copy link
Member

Choose a reason for hiding this comment

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

trailing space

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.

Connect to backend code
3 participants