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(wallet): in app tx related notifications improvements #16732

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

saledjenic
Copy link
Contributor

@status-im-auto
Copy link
Member

status-im-auto commented Nov 7, 2024

Jenkins Builds

Click to see older builds (35)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 7140558 #1 2024-11-07 13:54:20 ~6 min macos/aarch64 🍎dmg
✔️ 7140558 #1 2024-11-07 13:55:43 ~8 min tests/nim 📄log
✔️ 7140558 #1 2024-11-07 14:00:05 ~12 min tests/ui 📄log
✔️ 7140558 #1 2024-11-07 14:02:40 ~15 min macos/x86_64 🍎dmg
✔️ 7140558 #1 2024-11-07 14:03:57 ~16 min linux-nix/x86_64 📦tgz
✔️ 7140558 #1 2024-11-07 14:09:47 ~22 min windows/x86_64 💿exe
✔️ 7140558 #1 2024-11-07 14:11:16 ~23 min linux/x86_64 📦tgz
✔️ 504236a #2 2024-11-08 11:41:10 ~4 min macos/aarch64 🍎dmg
✔️ 504236a #2 2024-11-08 11:43:52 ~7 min tests/nim 📄log
✔️ 504236a #2 2024-11-08 11:48:53 ~12 min tests/ui 📄log
✔️ 504236a #2 2024-11-08 11:49:16 ~12 min macos/x86_64 🍎dmg
✔️ 504236a #2 2024-11-08 11:50:28 ~14 min linux-nix/x86_64 📦tgz
✔️ 504236a #2 2024-11-08 11:54:56 ~18 min linux/x86_64 📦tgz
✔️ 504236a #2 2024-11-08 12:04:55 ~28 min windows/x86_64 💿exe
✔️ b5125ce #3 2024-11-19 09:53:18 ~5 min macos/aarch64 🍎dmg
✔️ b5125ce #3 2024-11-19 09:56:51 ~8 min tests/nim 📄log
✔️ b5125ce #3 2024-11-19 10:00:34 ~12 min tests/ui 📄log
✔️ b5125ce #3 2024-11-19 10:02:26 ~14 min macos/x86_64 🍎dmg
✔️ b5125ce #3 2024-11-19 10:02:31 ~14 min linux-nix/x86_64 📦tgz
✔️ b5125ce #3 2024-11-19 10:09:59 ~21 min linux/x86_64 📦tgz
✔️ b5125ce #3 2024-11-19 10:10:54 ~22 min windows/x86_64 💿exe
✔️ bf5fafc #4 2024-11-20 06:46:49 ~4 min macos/aarch64 🍎dmg
✔️ bf5fafc #4 2024-11-20 06:49:37 ~7 min tests/nim 📄log
✔️ bf5fafc #4 2024-11-20 06:53:38 ~11 min tests/ui 📄log
✔️ bf5fafc #4 2024-11-20 06:59:34 ~17 min macos/x86_64 🍎dmg
✔️ bf5fafc #4 2024-11-20 07:02:53 ~21 min linux/x86_64 📦tgz
✔️ bf5fafc #4 2024-11-20 07:04:14 ~22 min linux-nix/x86_64 📦tgz
✔️ bf5fafc #4 2024-11-20 07:10:19 ~28 min windows/x86_64 💿exe
✔️ 1dd9733 #5 2024-11-20 07:42:48 ~5 min macos/aarch64 🍎dmg
✔️ 1dd9733 #5 2024-11-20 07:45:32 ~7 min tests/nim 📄log
✔️ 1dd9733 #5 2024-11-20 07:49:57 ~12 min tests/ui 📄log
✔️ 1dd9733 #5 2024-11-20 07:51:20 ~13 min macos/x86_64 🍎dmg
✔️ 1dd9733 #5 2024-11-20 07:51:25 ~13 min linux-nix/x86_64 📦tgz
✔️ 1dd9733 #5 2024-11-20 07:55:47 ~18 min linux/x86_64 📦tgz
✔️ 1dd9733 #5 2024-11-20 08:02:16 ~24 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 0d43683 #6 2024-11-22 13:07:29 ~5 min macos/aarch64 🍎dmg
✔️ 0d43683 #6 2024-11-22 13:09:34 ~7 min tests/nim 📄log
✔️ c40aa1d #7 2024-11-22 13:17:53 ~5 min macos/aarch64 🍎dmg
✔️ c40aa1d #7 2024-11-22 13:20:27 ~8 min tests/nim 📄log
c40aa1d #7 2024-11-22 13:23:44 ~11 min tests/ui 📄log
✔️ c40aa1d #7 2024-11-22 13:26:10 ~14 min linux-nix/x86_64 📦tgz
✔️ c40aa1d #7 2024-11-22 13:29:56 ~17 min macos/x86_64 🍎dmg
✔️ c40aa1d #7 2024-11-22 13:32:13 ~20 min linux/x86_64 📦tgz
✔️ c40aa1d #7 2024-11-22 13:32:36 ~20 min windows/x86_64 💿exe
✔️ c40aa1d #8 2024-11-22 15:00:48 ~11 min tests/ui 📄log

@saledjenic saledjenic force-pushed the fix/issue-16338 branch 3 times, most recently from bf5fafc to 1dd9733 Compare November 20, 2024 07:37
@saledjenic saledjenic marked this pull request as ready for review November 20, 2024 07:37
@saledjenic saledjenic requested review from a team, micieslak, caybro and alexjba as code owners November 20, 2024 07:37
@saledjenic saledjenic requested review from Cuteivist, alaibe and Khushboo-dev-cpp and removed request for a team November 20, 2024 07:37
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.

Just some minor stuff, otherwise LGTM

let toastType = Constants.ephemeralNotificationType.normal
let toastLink = ""

const sender = !!fromName? fromName : SQUtils.Utils.elideText(fromAddr, 6, 4)
Copy link
Member

Choose a reason for hiding this comment

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

Better use Utils.elideAndFormatWalletAddress()?

toastType = Constants.ephemeralNotificationType.danger
icon = "warning"
case Constants.txStatus.failed: {
toastTitle = "Send failed: %1 from %2 to %3"
Copy link
Member

Choose a reason for hiding this comment

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

qsTr() missing

break
}
case Constants.SendType.Swap: {
toastTitle = qsTr("Swapp failed: %1 to %2 in %3").arg(sentAmount).arg(receivedAmount).arg(sender)
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
toastTitle = qsTr("Swapp failed: %1 to %2 in %3").arg(sentAmount).arg(receivedAmount).arg(sender)
toastTitle = qsTr("Swap failed: %1 to %2 in %3").arg(sentAmount).arg(receivedAmount).arg(sender)

@saledjenic
Copy link
Contributor Author

@caybro comments addressed. Thanks.

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 👍

Copy link

@virginiabalducci virginiabalducci left a comment

Choose a reason for hiding this comment

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

These user stories were tested and passed. The failed status was not tested yet.
Failed status will be tested later on a master build or a specific build where we can emulate tx errors to show the fail

SP-431: notifications for sent asset (erc20 + ETH) to non-saved address
SP-432: notifications for sent asset (erc20 + ETH) to saved address or own address
SP-434: notifications for bridge
SP-435: notifications for swap
SP-436: notifications for spending cap and swap

These missing items will be handled in a different issue #16810

  • notifications for WC/BC
  • notifications for Community minting and airdropping

@saledjenic saledjenic merged commit 6cbaf44 into master Nov 25, 2024
9 checks passed
@saledjenic saledjenic deleted the fix/issue-16338 branch November 25, 2024 13: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.

In app tx related notifications improvements
5 participants