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(Safenet): pending tx status #5046

Draft
wants to merge 4 commits into
base: safenet
Choose a base branch
from
Draft

Feat(Safenet): pending tx status #5046

wants to merge 4 commits into from

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Feb 20, 2025

What it solves

Resolves https://github.com/safe-global/safenet/issues/408

Todo

  • Monitor tx

How this PR fixes it

  • Sets transaction status to Submitting once fully signed for Safenet enabled Safes
  • Monitors Safenet transaction through processor API

How to test it

  • Create a Safenet enabled account
  • Fully sign a transaction
  • Observe it being in the submitting pending state

Screenshots

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

Copy link

github-actions bot commented Feb 20, 2025

Copy link

github-actions bot commented Feb 20, 2025

📦 Next.js Bundle Analysis for @safe-global/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1.06 MB (🟡 +71.47 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load
/new-safe/safenet-create 27.6 KB 1.09 MB

Thirty-three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 508 B (🟢 -2 B) 1.06 MB
/address-book 23.24 KB (🟡 +172 B) 1.08 MB
/apps 35.84 KB (🟡 +2.11 KB) 1.09 MB
/apps/custom 33.9 KB (🟡 +2.12 KB) 1.09 MB
/apps/open 55.74 KB (🟡 +2.13 KB) 1.11 MB
/balances 29.97 KB (🟡 +273 B) 1.09 MB
/balances/nfts 9.55 KB (🟡 +10 B) 1.07 MB
/bridge 2.56 KB (🟡 +2 B) 1.06 MB
/cookie 8.77 KB (🟡 +1 B) 1.07 MB
/home 61.56 KB (🟡 +2.3 KB) 1.12 MB
/new-safe/advanced-create 28.63 KB (🟡 +2.18 KB) 1.09 MB
/new-safe/create 28.08 KB (🟡 +2.49 KB) 1.09 MB
/new-safe/load 6.15 KB (🟡 +66 B) 1.06 MB
/privacy 14.57 KB (🟡 +2 B) 1.07 MB
/settings/appearance 2.25 KB (🟡 +7 B) 1.06 MB
/settings/cookies 1.88 KB (🟡 +6 B) 1.06 MB
/settings/data 1.79 KB (🟡 +5 B) 1.06 MB
/settings/environment-variables 3.28 KB (🟡 +5 B) 1.06 MB
/settings/modules 4.24 KB (🟡 +186 B) 1.06 MB
/settings/notifications 6.33 KB (🟢 -14.98 KB) 1.06 MB
/settings/safe-apps 20.41 KB (🟡 +2.13 KB) 1.08 MB
/settings/security 2.34 KB (🟡 +3 B) 1.06 MB
/settings/setup 31.14 KB (🟡 +420 B) 1.09 MB
/share/safe-app 7.56 KB (🟢 -5 B) 1.07 MB
/swap 761 B (🟡 +1 B) 1.06 MB
/terms 12.93 KB (🟡 +1 B) 1.07 MB
/transactions 99.6 KB (🟡 +3.03 KB) 1.16 MB
/transactions/history 99.57 KB (🟡 +3.03 KB) 1.16 MB
/transactions/messages 60.4 KB (🟡 +2.1 KB) 1.12 MB
/transactions/msg 56.65 KB (🟡 +2.1 KB) 1.11 MB
/transactions/queue 49.5 KB (🟡 +2.11 KB) 1.11 MB
/transactions/tx 48.86 KB (🟡 +2.1 KB) 1.11 MB
/welcome/accounts 409 B (🟡 +2 B) 1.06 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

github-actions bot commented Feb 20, 2025

Coverage report for apps/web

St.
Category Percentage Covered / Total
🟡 Statements
73.96% (-0.03% 🔻)
15049/20347
🔴 Branches
51.59% (-0.02% 🔻)
3598/6974
🔴 Functions
56.26% (-0.06% 🔻)
2112/3754
🟡 Lines
75.54% (-0.03% 🔻)
13670/18096
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / safenetTxMonitor.ts
26.32% 0% 0% 27.78%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / useTxPendingStatuses.ts
77.61% (+0.11% 🔼)
62.5% (-1.56% 🔻)
69.57% (+1.38% 🔼)
86.21% (-0.2% 🔻)

Test suite run success

1802 tests passing in 243 suites.

Report generated by 🧪jest coverage report action from d963964

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.

1 participant