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

Release 1.46.0 #4494

Merged
merged 11 commits into from
Nov 7, 2024
Merged

Release 1.46.0 #4494

merged 11 commits into from
Nov 7, 2024

Conversation

usame-algan
Copy link
Member

@usame-algan usame-algan commented Nov 6, 2024

Features

Refactors

Tests

mike10ca and others added 8 commits October 31, 2024 16:40
* chore: create a wrapper on top of signOrExecuteForm to fetch async data before showing the ui

* chore: show the confirmation view component based on the transaction type

* chore: move presentational layer of reviewOwner to SettingsChange component

* chore: do not use showMethodCall to signOrExecuteForm component

* feat: Add a loader in the signOrExecuteForm component while the necessary data is not fetched

* fix: unit tests

* fix: lint errors

* mend

* fix: pass the txInfo in the useTxDetails mock to avoid null pointer exception

* fix: generated snapshots

* fix: generated snapshots

* fix: change the fundReceiver address on snapshots

* fix: remove unnecessary casting

* chore: rename useDetailsHook to be useProposeTx

* fix: grab the transaction id from the txDetails in case the txId is not provided

* fix: rename file from utils to mockData

* chore: move the settings component to be exported directly in the index file

* fix: add the batch button back to the confirmation views

* fix: use the txData component in the confirmation view in case any confirmation view component is found

* feat: show an error screen if something happens while fetching the txDetails

* fix: show contract name when it is a multisend transaction

* fix: eslint errors

* fix: move error condition to top of the confirmation view component

* fix: do not propose transaction for contrafactual safes

* fix: cypress drain e2e test

* fix: remove duplicated data in the DecodedTx component

* fix: Add back showMethodCall and keep prop drilling it

* fix: do not show method call for approve transactions

* fix: add showMethodCall into the confirmationView component

* fix: pass isApproval down to the confirmation view component

* fix: Add isCreation check inside DecodedTx to render partial summary

* fix: Update snapshot and mock hex data generation to be even length

* chore: generated snapshots

* chore: refactor changeThresholdReview screen (#4212)

* Approval editor

* Fix error display in confirmation screen

* chore: unify confirmBatch screen (#4217)

* fix(account-flow-import): change import src in the recover account flow screen

* fix(eslint): eslint hook dependencies

* fix(unit-tests): change txDetails mocked data in unit tests

* fix(eslint): change operators order

* fix(unit-tests): mock useSafeAddress hook

* fix(settings-change): add address name in the change owner screen

* fix(settings-change): duplicated owner name in the add owner flow

---------

Co-authored-by: Usame Algan <[email protected]>
Co-authored-by: katspaugh <[email protected]>
Add tests for multichain sidebar
* Feat: indexing status (SWS-134)

* Add a tooltip

* fix: don’t use nested ternaries

---------

Co-authored-by: Daniel Dimitrov <[email protected]>
* init

* feat: Add remove delegate option and adjust delegate list layout (#4390)

* 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

* feat: Show Proposal chip for unsigned transactions in the queue (#4422)

* feat: Allow deletion of delegate transactions from the queue [SW-297] (#4400)

* init

* feat: Allow deletion of delegate transactions from the queue

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

* fix: Disable add proposer and delete proposer [SW-400] [SW-396] (#4429)

* fix: Disable add proposer and delete proposer

* fix: Account for owners that are proposers in CheckWallet

* fix: Adjust message when proposing transaction (#4435)

* feat: Edit proposer dialog [SW-391] [SW-396] (#4436)

* feat: Show proposer address in queue (#4443)

* fix: Hide tooltip on confirm button for proposers (#4444)

* fix: Use safe owner address for tenderly simulation with proposer (#4445)

* fix: Only show proposal chip if transaction is not pending (#4450)

* fix: Allow owners to be added as proposers [SW-407] [SW-428] [SW-381] (#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

* fix: Update testid to fix add owner smoke test

* fix: Hide batch button for proposers (#4457)

* feat: Support hardware wallets for adding and removing proposers (#4466)

* feat: Display creator in the proposer list [SW-408] [SW-470] (#4471)

* 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

* fix: AdjustVInSignature when managing proposers with a hardware wallet (#4477)

* fix: Add proposers feature flag (#4488)
Copy link

github-actions bot commented Nov 6, 2024

Copy link

github-actions bot commented Nov 6, 2024

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

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

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1012.9 KB (🟢 -1.12 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!

One Page Changed Size

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

Page Size (compressed) First Load
/settings/setup 47.02 KB (🟡 +3 B) 1.04 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 Nov 6, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
74.27% (+0.67% 🔼)
13998/18848
🔴 Branches
52.84% (+1.4% 🔼)
3463/6554
🔴 Functions
58.16% (+1.03% 🔼)
2049/3523
🟡 Lines
75.9% (+0.59% 🔼)
12714/16751
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%
🟢
... / SignOrExecuteForm.tsx
85.54% 76.47% 42.86% 84.81%
🔴
... / ProposerForm.tsx
36.96% 0% 0% 40.48%
🟢
... / index.tsx
92.31% 65.22% 100% 100%
🟢
... / index.tsx
95% 85.71% 100% 100%
🟢
... / ChangeSignerSetupWarning.tsx
100% 100% 100% 100%
🟢
... / useIsMultichainSafe.ts
90.91% 100% 66.67% 100%
🟢
... / context.ts
100% 100% 100% 100%
🟢
... / index.tsx
100% 100% 100% 100%
🟢
... / context.tsx
100% 100% 100% 100%
🟢
... / index.tsx
100% 100% 100% 100%
🟢
... / utils.ts
100% 100% 100% 100%
🟢
... / TxProposalChip.tsx
80% 100% 0% 100%
🔴
... / index.tsx
46.43% 0% 0% 48.15%
🟢
... / SignOrExecuteSkeleton.tsx
100% 100% 100% 100%
🟡
... / index.tsx
62.16% 33.33% 42.86% 61.11%
🟢
... / mockData.ts
100% 100% 100% 100%
🟢
... / mockData.ts
100% 100% 100% 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% 🔻)
🟡
... / hooks.ts
79.26% (-1.78% 🔻)
68.29% (-4.43% 🔻)
70% (-0.59% 🔻)
79.51% (-1.62% 🔻)
🔴
... / SafeTxProvider.tsx
27.5% (-1.45% 🔻)
0%
36.36% (-3.64% 🔻)
27.78% (-1.63% 🔻)
🟢
... / useIsOnlySpendingLimitBeneficiary.tsx
89.47% (+1.24% 🔼)
60% (-15% 🔻)
50%
94.12% (+0.78% 🔼)
🟡
... / 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% 🔼)
🟢
... / useTxPendingStatuses.ts
83.64% (-0.91% 🔻)
68.33% (-1.67% 🔻)
75%
92.63% (-1.05% 🔻)
🟢
... / index.tsx
100%
86.21% (-5.79% 🔻)
100% 100%
🔴
... / index.tsx
57.14% (-3.73% 🔻)
0% 0%
59.26% (-4.38% 🔻)

Test suite run success

1608 tests passing in 216 suites.

Report generated by 🧪jest coverage report action from 2d14d25

@francovenica
Copy link
Contributor

francovenica commented Nov 7, 2024

In the Prod CGW the Proposer sections shows up, but the "Add proposer" button does not.
With the Stg CGW it does show and everything works fine.

Given this all the test regarding proposers were done in the stg cgw

image

@francovenica
Copy link
Contributor

francovenica commented Nov 7, 2024

Blocker issue:

There is an issue where the proposers cannot delete himself for not being the owner of the safe:
image

@francovenica
Copy link
Contributor

francovenica commented Nov 7, 2024

Minor issue. I don't consider this a blocker
This whole status block shouldn't show for a proposer, since the tx is not getting any new signature.
I'd hide it if the person creating the tx is a proposer and is creating a standard tx (I say it like this because it still should show up for when he uses spending limit for example)
image

@francovenica
Copy link
Contributor

The issues reported were fixed:

The add proposer shows now for prod cgw
The proposer can delete himself
The status block doesn't show the +1 anymore during tx creation

#4463)

* fix(staking-tx): Add staking condition back into the confirmation view

* fix(staking-confirmation): remove typo
@usame-algan usame-algan merged commit 2d14d25 into main Nov 7, 2024
15 checks passed
@usame-algan usame-algan deleted the release branch November 7, 2024 13:05
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 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.

7 participants