-
Notifications
You must be signed in to change notification settings - Fork 485
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: Nested Safes #4932
base: dev
Are you sure you want to change the base?
feat: Nested Safes #4932
Conversation
Branch preview✅ Deploy successful! Storybook: |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟡 | Statements | 77.03% (-0.29% 🔻) |
14377/18665 |
🔴 | Branches | 55.91% (-0.23% 🔻) |
3605/6448 |
🟡 | Functions | 61.69% (-0.58% 🔻) |
2137/3464 |
🟡 | Lines | 78.46% (-0.33% 🔻) |
12998/16567 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🟢 | ... / usePredictSafeAddressFromTxDetails.ts |
90% | 82.35% | 100% | 90% |
🟢 | ... / nested-safes.ts |
96% | 100% | 100% | 96% |
🔴 | ... / index.tsx |
43.75% | 0% | 0% | 43.75% |
🟡 | ... / index.tsx |
62.5% | 0% | 0% | 62.5% |
🔴 | ... / index.tsx |
55.56% | 0% | 0% | 55.56% |
🔴 | ... / ReviewNestedSafe.tsx |
33.33% | 0% | 0% | 33.33% |
🔴 | ... / SetupNestedSafe.tsx |
38.89% | 0% | 0% | 39.62% |
🔴 | ... / index.tsx |
46.15% | 0% | 0% | 46.15% |
🟢 | ... / nested-safes.ts |
75% | 100% | 100% | 100% |
🟡 | ... / index.tsx |
71.43% | 100% | 0% | 71.43% |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🟢 | ... / txHistorySlice.ts |
93.18% (+2.27% 🔼) |
72.22% (-0.51% 🔻) |
60% | 94.87% (+2.01% 🔼) |
🟡 | ... / index.ts |
62.22% (-1.88% 🔻) |
100% | 42.11% (+2.11% 🔼) |
65.79% (-0.88% 🔻) |
🟢 | ... / utils.ts |
90.24% (-1.01% 🔻) |
80.65% | 90.91% (+0.43% 🔼) |
95.38% (+0.07% 🔼) |
🟢 | ... / index.ts |
90% (-4.44% 🔻) |
83.33% (+8.33% 🔼) |
100% | 93.33% (-6.67% 🔻) |
🟡 | ... / index.tsx |
57.14% (+2.38% 🔼) |
9.52% (-7.14% 🔻) |
11.11% | 60% (+3.59% 🔼) |
Test suite run success
1853 tests passing in 253 suites.
Report generated by 🧪jest coverage report action from 06cc9ce
📦 Next.js Bundle Analysis for @safe-global/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
1.27 MB (🔴 +291.85 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!
Thirty-seven Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/ |
509 B (🟢 -1 B) |
1.27 MB |
/_offline |
1.07 KB (🟢 -33 B) |
1.27 MB |
/address-book |
23.21 KB (🟡 +140 B) |
1.3 MB |
/apps |
19.31 KB (🟢 -14.42 KB) |
1.29 MB |
/apps/custom |
17.37 KB (🟢 -14.41 KB) |
1.29 MB |
/apps/open |
8.08 KB (🟢 -45.54 KB) |
1.28 MB |
/balances |
29.52 KB (🟢 -194 B) |
1.3 MB |
/balances/nfts |
8.66 KB (🟢 -902 B) |
1.28 MB |
/bridge |
1.81 KB (🟢 -769 B) |
1.28 MB |
/cookie |
8.77 KB (🟡 +1 B) |
1.28 MB |
/home |
38.89 KB (🟢 -20.37 KB) |
1.31 MB |
/licenses |
2.46 KB (🟢 -1 B) |
1.28 MB |
/new-safe/advanced-create |
20.73 KB (🟢 -5.72 KB) |
1.29 MB |
/new-safe/create |
19.87 KB (🟢 -5.72 KB) |
1.29 MB |
/new-safe/load |
5.17 KB (🟢 -938 B) |
1.28 MB |
/privacy |
14.57 KB (🟡 +2 B) |
1.29 MB |
/settings/appearance |
2.25 KB (🟡 +1 B) |
1.28 MB |
/settings/cookies |
1.87 KB (🟡 +1 B) |
1.28 MB |
/settings/data |
1.79 KB (🟢 -1 B) |
1.28 MB |
/settings/environment-variables |
3 KB (🟢 -284 B) |
1.28 MB |
/settings/modules |
2.88 KB (🟢 -1.18 KB) |
1.28 MB |
/settings/notifications |
6.52 KB (🟢 -14.8 KB) |
1.28 MB |
/settings/safe-apps |
4.62 KB (🟢 -13.65 KB) |
1.28 MB |
/settings/security |
2.34 KB (🟡 +2 B) |
1.28 MB |
/settings/setup |
30.39 KB (🟢 -355 B) |
1.3 MB |
/share/safe-app |
6.94 KB (🟢 -640 B) |
1.28 MB |
/stake |
596 B (🟢 -23 B) |
1.27 MB |
/swap |
745 B (🟢 -15 B) |
1.27 MB |
/terms |
12.93 KB (🟡 +1 B) |
1.29 MB |
/transactions |
51.29 KB (🟢 -45.28 KB) |
1.32 MB |
/transactions/history |
51.25 KB (🟢 -45.28 KB) |
1.32 MB |
/transactions/messages |
12.13 KB (🟢 -46.16 KB) |
1.29 MB |
/transactions/msg |
8.29 KB (🟢 -46.26 KB) |
1.28 MB |
/transactions/queue |
1.99 KB (🟢 -45.41 KB) |
1.28 MB |
/transactions/tx |
1010 B (🟢 -45.78 KB) |
1.27 MB |
/welcome |
6.93 KB (🟢 -2 B) |
1.28 MB |
/welcome/accounts |
408 B (🟡 +1 B) |
1.27 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.
apps/web/src/components/tx-flow/flows/CreateNestedSafe/ReviewNestedSafe.tsx
Outdated
Show resolved
Hide resolved
apps/web/src/components/tx-flow/flows/CreateNestedSafe/ReviewNestedSafe.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* feat: Nested Safe breadcrumbs * refactor: check whether parent is a Safe * fix: reversion of query parameters
What it solves
Resolves #4879, #4881 inclusive
How this PR fixes it
This implements "Nested Safes" (previously "Subaccounts").
A new sidebar icon, context menu (accessible via the icon/drawer) and settings have been added that both list and open a "Nested Safe" creation flow.
How to test it
Open a Safe and observe:
Screenshots
Checklist