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

[Epic] Safe Proposers #4426

Merged
merged 23 commits into from
Nov 6, 2024
Merged

[Epic] Safe Proposers #4426

merged 23 commits into from
Nov 6, 2024

Conversation

usame-algan
Copy link
Member

@usame-algan usame-algan commented Oct 25, 2024

What it solves

Resolves Notion

How this PR fixes it

  • Adds support for proposers (prev. known as delegates)
  • Create/Edit/Delete proposers through the settings page
  • Restructures the settings page to have a section called Members
  • Adds analytics events to track usage of the feature
  • Displays proposal transactions in the queue

Screenshots

Screenshot 2024-10-31 at 13 07 35

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) 🧑‍💻

usame-algan and others added 2 commits October 21, 2024 13:42
* feat: Add remove delegate button, adjust delegate list layout

* feat: Update gateway-sdk package, add delegate form

* feat: Optimistically update delegates cache when adding or removing delegate

* fix: Add missing ga events, add enum

* chore: Update gateway-sdk package

* fix: Update setup settings layout

* fix: Add notifications when adding and removing proposer

* fix: Add validation for add proposer

* fix: Rename delegate to proposer

* fix: Rename variable for add proposer dialog

* fix: Align remove icons in tables

* fix: Handle update proposer in rtk query
Copy link

Copy link

Copy link

Add analytics events

Copy link

Add proposer form

Copy link

…#4400)

* init

* feat: Allow deletion of delegate transactions from the queue

* feat: Add text to signer view if tx is from proposer
Copy link

Copy link

github-actions bot commented Oct 25, 2024

Copy link

github-actions bot commented Oct 25, 2024

📦 Next.js Bundle Analysis for safe-wallet-web

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1012.9 KB (🟡 +617 B)
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!

Eighteen Pages Changed Size

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

Page Size (compressed) First Load
/apps 48.42 KB (-1 B) 1.04 MB
/apps/custom 40.06 KB (-1 B) 1.03 MB
/apps/open 55.36 KB (🟡 +179 B) 1.04 MB
/balances 38.26 KB (-2 B) 1.03 MB
/balances/nfts 19.2 KB (🟡 +1 B) 1.01 MB
/settings 451 B (🟡 +1 B) 1013.34 KB
/settings/cookies 7.68 KB (🟢 -1 B) 1020.58 KB
/settings/data 7.58 KB (🟢 -3 B) 1020.48 KB
/settings/environment-variables 9.17 KB (🟡 +3 B) 1022.07 KB
/settings/modules 9.84 KB (🟢 -3 B) 1022.74 KB
/settings/notifications 27.05 KB (-2 B) 1.02 MB
/settings/setup 47.02 KB (🔴 +11.02 KB) 1.04 MB
/transactions 73.87 KB (🟡 +180 B) 1.06 MB
/transactions/history 73.84 KB (🟡 +180 B) 1.06 MB
/transactions/messages 39.38 KB (🟡 +179 B) 1.03 MB
/transactions/msg 29.71 KB (🟡 +180 B) 1.02 MB
/transactions/queue 31.49 KB (🟡 +177 B) 1.02 MB
/transactions/tx 21.27 KB (🟡 +180 B) 1.01 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 Oct 25, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
74.28% (+0.24% 🔼)
13997/18844
🔴 Branches
52.86% (+0.18% 🔼)
3461/6548
🔴 Functions
58.16% (+0.32% 🔼)
2049/3523
🟡 Lines
75.91% (+0.21% 🔼)
12713/16747
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / proposers.ts
27.59% 0% 23.08% 23.08%
🟢
... / useProposers.ts
86.67% 100% 66.67% 100%
🔴
... / ProposerForm.tsx
36.96% 0% 0% 40.48%
🟢
... / TxProposalChip.tsx
80% 100% 0% 100%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡
... / validation.ts
76.06% (-5.48% 🔻)
71.43% (-11.9% 🔻)
50% (-11.54% 🔻)
78.33% (-5.3% 🔻)
🟡
... / index.ts
63.64% (-4.11% 🔻)
100%
36.36% (-9.79% 🔻)
65.52% (-3.71% 🔻)
🟢
... / useIsOnlySpendingLimitBeneficiary.tsx
89.47% (+1.24% 🔼)
60% (-15% 🔻)
50%
94.12% (+0.78% 🔼)
🟢
... / SignOrExecuteForm.tsx
85.71% (+0.17% 🔼)
76.47% (-2.28% 🔻)
42.86%
85% (+0.19% 🔼)
🟡
... / index.tsx
68.52% (-2.64% 🔻)
10.26% (-1.17% 🔻)
66.67%
69.23% (-2.77% 🔻)
🔴
... / index.tsx
38.78%
4.88% (-1% 🔻)
9.09% 41.3%
🟢
... / index.tsx
88.46% (+0.96% 🔼)
47.37% (-2.63% 🔻)
50%
88% (+1.04% 🔼)
🟢
... / index.tsx
100%
86.21% (-5.79% 🔻)
100% 100%

Test suite run success

1608 tests passing in 216 suites.

Report generated by 🧪jest coverage report action from b5b354d

usame-algan and others added 15 commits October 28, 2024 10:33
* fix: Disable add proposer and delete proposer

* fix: Account for owners that are proposers in CheckWallet
# Conflicts:
#	package.json
#	src/store/api/gateway/index.ts
#	yarn.lock
…#4446)

* fix: Remove scrollbar when adding proposer

* fix: Allow owners being added as proposers

* fix: Add check that isProposing only when its also a creation
* feat: Display creator in proposer list

* fix: Correctly update proposers when editing and deleting

* fix: Remove dangling console.log

* fix: Add network switch to delete proposer dialog and reset values when closing
@usame-algan usame-algan merged commit 50e44fe into dev Nov 6, 2024
15 checks passed
@usame-algan usame-algan deleted the epic/safe-proposers branch November 6, 2024 11:33
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants