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.48.0 #4667

Merged
merged 97 commits into from
Dec 17, 2024
Merged

Release 1.48.0 #4667

merged 97 commits into from
Dec 17, 2024

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Dec 16, 2024

Features

Refactoring

Bug fixes

Chores

Tests

compojoom and others added 30 commits November 19, 2024 11:09
* chore: update to nextjs 15

* chore: fix tsc lint errors

* chore: fix eslint errors

* chore: fixing failing unit tests

* chore: remove yarn

* chore: update eslint to v9

* chore: update github eslint action

* chore: update cypress to v13.15.2 (#4490)

* chore: update cypress to v13.15.2

* chore: update cypress github action to use v13.15.2

* chore: update mui to v6 (#4499)

* chore: update mui to v6

Applied codemons to update the code

* refactor: fix DatePicker with mui v6

fix: failing Date test

* refactor: use ListItemButton instead of ListItem

the selected and disabled props on ListItem have been removed in v6, but
are available on the ListItemButton

* chore: update snapshots

* refactor: recoveryModal tests use snapshots

* fix: failing bookmarks test with mui v6

* fix: missing DM-Sans font

* fix: drawer was stealing clicks from rest of page

* fix: failing tests

* fix: fonts fail to load

Read the comment in the file and have fun!

* fix: prettier errors

* fix: tsc errors
* Fix: mui accordion background

* Update tests
* Fix: remove old app store button

* Rm import
* Chore: replace @WalletConnect packages with @reown/walletkit

* Fix tests

* Add core
* fix: fetch safe overviews including untrusted token fiatTotal

* test: fix safeOverviews.test.ts

* chore: add comment explaining why trusted needs to be false
Bumps [ethers](https://github.com/ethers-io/ethers.js) from 6.11.1 to 6.13.4.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/main/CHANGELOG.md)
- [Commits](ethers-io/ethers.js@v6.11.1...v6.13.4)

---
updated-dependencies:
- dependency-name: ethers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Feat(Sidebar): Add pinned safes list to sidebar and accounts page [SW-304] (#4412)

* feat: allow pinning and unpinning accounts

* feat: allow pinning multichain safes

* fix: pinning of multichain safes

* feat: simplify all accounts list

* feat: load safe info when safelist item is scrolled into view

* feat: remove safes when unpinning if they werent added before being pinned

* fix: pinning behaviour of multichain safes

* fix: multichain sub itemstyles

* feat: add empty state for pinned list

* fix: lint errors

* fix: show threshold for counterfactual safes

* fix: mobile layout

* restore loading balances for safes

* fix: subaccount item layout, and app crashing on unpin

* feat: expand all accounts if there are no pinned safes

* fix: flickering when loading all safes

* fix: account for default threshold and owner numbers

* reduce transition animation duration for pinning and unpinning safes

* reduce space between chains and balance

* Feat(sidebar): sort safes by name and recently used [SW-307] (#4458)

* Feat: add option to sort by recently visited and by name

* tests: add new properties to unit tests

* fix: make order by preference persist

* feat: sort sub account items by name and recently visited

* refactor: fix incorrect variable names and remove console log

* Feat(sidebar): filter safes by search query [SW-305] (#4484)

* feat: filter safes by search query

* feat: display current order by option. fix text colors

* feat: search by adddress name and chain name

* fix: use ignoreLocation to match the final address characters when searching

* add tracking event for search

* fix: cypress tests

* Feat(sidebar): Add tracking events for search, sorting, and pinning/unpinning safes [SW-308] (#4500)

* track the number of pined safes on the accounts page

* feat: track pinning, unpinning, and sorting

* fix: separate watchlist and pined safes for tracking

* fix: remove wallet from dependency array

* Update src/components/welcome/MyAccounts/useTrackedSafesCount.ts

Co-authored-by: Usame Algan <[email protected]>

* fix: lint

---------

Co-authored-by: Usame Algan <[email protected]>

* Refactor(Sidebar): use feature directory structure for MyAccounts (#4508)

* refactor: move myAccounts to features

* fix:align  queue and status chips with address for large screens

* remove commented code

* fix: chip styles

* fix(sidebar):  fix designs for data widget and empty/disconnected state [SW-507] (#4509)

* fix: add connect wallet button and empty state

* fix: datawidget styles

* Fix(Sidebar): Include sub safe in search results [SW-305] (#4527)

* fix: CF chip dark mode color

* include multichain sub safe names in search

* fix: queue chips being cut off

* Fix: rm Remove option

* Refactor: pinned = added safes [SW-304] (#4552)

* Refactor: pinned = added safes

* Rm Watchlist word

* Fix duplicate cf safes

---------

Co-authored-by: Usame Algan <[email protected]>
Co-authored-by: katspaugh <[email protected]>
Co-authored-by: katspaugh <[email protected]>
* fix: Disable transaction buttons until sdk is initialized

* fix: Failing tests

* fix: Add test case and adjust other tests to use getByText

---------

Co-authored-by: katspaugh <[email protected]>
* Refactor: rm unnecessary tx decoding

* Update tests

* Repropose after sign relayed

* Update SDK type

* Update src/components/tx/confirmation-views/index.tsx

Co-authored-by: Usame Algan <[email protected]>

* Fix Order type

* Make 420 more random

---------

Co-authored-by: Usame Algan <[email protected]>
dependabot bot and others added 6 commits December 16, 2024 09:46
Bumps [next](https://github.com/vercel/next.js) from 15.0.4 to 15.1.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v15.0.4...v15.1.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 6.5.1 to 8.1.0.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](gregberge/svgr@v6.5.1...v8.1.0)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@web3-onboard/coinbase](https://github.com/blocknative/web3-onboard/tree/HEAD/packages/coinbase) from 2.2.6 to 2.4.1.
- [Release notes](https://github.com/blocknative/web3-onboard/releases)
- [Commits](https://github.com/blocknative/web3-onboard/commits/HEAD/packages/coinbase)

---
updated-dependencies:
- dependency-name: "@web3-onboard/coinbase"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: CheckWallet sdk only if safe is also loaded

* fix: Failing test and add another one
Copy link

github-actions bot commented Dec 16, 2024

Copy link

github-actions bot commented Dec 16, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
73.91% (-0.57% 🔻)
14399/19483
🔴 Branches
51.44% (-0.89% 🔻)
3437/6681
🔴 Functions
56.86% (-0.93% 🔻)
2044/3595
🟡 Lines
75.44% (-0.64% 🔻)
13059/17311
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / version.ts
75% 100% 100% 100%
🟡
... / visitedSafesSlice.ts
61.54% 50% 33.33% 60%
🟡
... / orderByPreferenceSlice.ts
58.33% 0% 0% 66.67%
🔴
... / nested-safe-wallet.ts
22% 0% 0% 22.45%
🔴
... / useSelectAvailableSigner.ts
45.45% 0% 0% 50%
🟢
... / useNestedSafeOwners.tsx
100% 100% 100% 100%
🟢
... / signers.ts
100% 90% 100% 100%
🟢
... / useIsNestedSafeOwner.ts
100% 100% 100% 100%
🟢
... / useAllOwnedSafes.ts
100% 50% 100% 100%
🟢
... / useAllSafes.ts
100% 100% 100% 100%
🟢
... / types.ts
100% 100% 100% 100%
🟢
... / useAllSafesGrouped.ts
88.57% 66.67% 84.62% 100%
🟢
... / index.tsx
66.67% 0% 0% 100%
🟢
... / index.tsx
66.67% 100% 0% 100%
🟢
... / index.tsx
82.22% 78.26% 71.43% 83.33%
🟡
... / index.tsx
60% 0% 0% 62.5%
🟢
... / index.tsx
85.71% 0% 0% 100%
🟡
... / index.tsx
61.54% 0% 0% 66.67%
🔴
... / SingleAccountItem.tsx
47.22% 0% 0% 50%
🔴
... / useGetHref.ts
37.5% 0% 0% 42.86%
🟢
... / index.tsx
75% 0% 0% 80%
🟡
... / index.tsx
66.67% 0% 0% 71.43%
🔴
... / MultiAccountItem.tsx
31.25% 0% 0% 35%
🟡
... / index.tsx
63.64% 0% 0% 70%
🔴
... / utils.ts
25% 0% 0% 40%
🔴
... / useSafesSearch.ts
23.33% 0% 0% 25.93%
🔴
... / useTrackedSafesCount.ts
21.28% 0% 0% 23.81%
🔴
... / index.tsx
55.17% 0% 0% 57.14%
🔴
... / index.tsx
45.45% 0% 0% 47.62%
🔴
... / useVisitedSafes.ts
33.33% 0% 0% 35.29%
🟢
... / index.tsx
90% 100% 50% 100%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / index.ts
92.38% (+0.07% 🔼)
80% (-0.28% 🔻)
95.24% (-0.22% 🔻)
93.14%
🟡
... / transaction-guards.ts
72.69% (-5.27% 🔻)
41.05% (-20.9% 🔻)
71.01% (-9.87% 🔻)
73.48% (-6.41% 🔻)
🔴
... / addedSafesSlice.ts
50% (-15.52% 🔻)
33.33% (-41.67% 🔻)
27.27% (-6.06% 🔻)
51.72% (-16.46% 🔻)
🟡
... / cookiesAndTermsSlice.ts
52.38%
0% (-33.33% 🔻)
0% (-20% 🔻)
64.29%
🟡
... / utils.ts
76.24%
58.73% (-1.27% 🔻)
75% (-1.19% 🔻)
78.16%
🟢
... / safeCoreSDK.ts
94.23% (+1.92% 🔼)
73.33% (-11.28% 🔻)
100% 93.48%
🔴
... / dispatch.ts
37.44% (-0.37% 🔻)
34.29% (-1.01% 🔻)
25%
36.51% (-0.39% 🔻)
🟢 src/utils/date.ts
76.19% (+0.58% 🔼)
75% (-15% 🔻)
75%
80.65% (+0.65% 🔼)
🟢
... / useSafeCreationData.ts
98.7% (-0.03% 🔻)
96.3% 100% 100%
🔴
... / index.ts
12.73% (-0.48% 🔻)
100% 0%
25% (-0.93% 🔻)
🟢
... / index.tsx
100%
50% (-50% 🔻)
100% 100%
🟡
... / index.tsx
67.74%
14.29% (-1.1% 🔻)
71.43% 66.67%
🟡
... / useIsValidExecution.ts
70.21% (-0.9% 🔻)
58.33% 60%
70.45% (-0.97% 🔻)
🟡
... / index.tsx
75% (-12.5% 🔻)
35% (-45% 🔻)
50% (-16.67% 🔻)
75% (-13.89% 🔻)
🟡
... / index.tsx
68.75% (-31.25% 🔻)
40% (-26.67% 🔻)
50% (-50% 🔻)
73.33% (-26.67% 🔻)
🟡
... / track-app-usage-count.ts
65.79% (-2.63% 🔻)
25%
70% (-10% 🔻)
77.42%
🟢
... / index.tsx
93.55% (-2.45% 🔻)
94.12% (+0.37% 🔼)
85.71% (-14.29% 🔻)
93.33% (-6.67% 🔻)
🟢
... / index.tsx
90% (-2.86% 🔻)
88.89% 66.67%
89.66% (-2.94% 🔻)
🟢
... / useGlobalImportFileParser.ts
87.93% (-12.07% 🔻)
95.45% (-4.55% 🔻)
100%
87.27% (-12.73% 🔻)
🟡
... / SignOrExecuteForm.tsx
66.37% (-19.17% 🔻)
73.56% (-2.91% 🔻)
27.27% (-15.58% 🔻)
65.14% (-19.67% 🔻)
🔴
... / CounterfactualForm.tsx
43.94% (-24.24% 🔻)
0% (-60.71% 🔻)
0% (-66.67% 🔻)
46.03% (-22.22% 🔻)
🟢
... / ExecuteForm.tsx
95.83%
84.62% (-1.87% 🔻)
100% 95.65%
🟢
... / SignForm.tsx
91.94% (-0.92% 🔻)
85.29% (-1.8% 🔻)
100%
93.1% (-1.13% 🔻)
🟢
... / tx-tracking.ts
87.18% (-2.01% 🔻)
77.78% (-4.58% 🔻)
100%
86.84% (-2.05% 🔻)
🟡
... / index.tsx
75.68% (-0.57% 🔻)
56.25% (+0.99% 🔼)
25% (-15% 🔻)
76.06% (-0.26% 🔻)
🟡
... / useTransactionType.tsx
62.75%
34.69% (-2.56% 🔻)
100% 63.27%
🟢
... / index.tsx
86.21% (-2.25% 🔻)
90.48% (+43.11% 🔼)
33.33% (-16.67% 🔻)
88.89% (+0.89% 🔼)
🟢
... / tokenTransferParams.ts
96.3% (-3.7% 🔻)
80%
80% (-20% 🔻)
95.83% (-4.17% 🔻)
🟢
... / Deposit.tsx
76.92% (-1.65% 🔻)
0% 0%
83.33% (-1.28% 🔻)
🟢
... / useGetSafeInfo.ts
85% (+0.79% 🔼)
15.38% (-4.62% 🔻)
25% (-15% 🔻)
84.21% (-4.02% 🔻)
🟢
... / index.tsx
96% (-0.15% 🔻)
72.22% (+4.04% 🔼)
100% 100%
🟢
... / useTxPendingStatuses.ts
77.5% (-6.14% 🔻)
64.06% (-4.27% 🔻)
68.18% (-6.82% 🔻)
86.41% (-6.22% 🔻)
🟢
... / index.tsx
82.35% (-0.5% 🔻)
80.95% 40%
87.5% (-0.38% 🔻)
🟢
... / index.tsx
94.12% (-0.33% 🔻)
87.5% 100%
93.75% (-0.37% 🔻)
🟡
... / index.tsx
60.14% (+0.27% 🔼)
42.42% (-1.33% 🔻)
55.56%
60.87% (+0.29% 🔼)
🟢
... / safeUpdateParams.ts
95.24% (-4.76% 🔻)
0% (-100% 🔻)
100%
95% (-5% 🔻)
🟢
... / SafeAppsDashboardSection.tsx
84.62% (-10.84% 🔻)
50%
50% (-25% 🔻)
84% (-11.24% 🔻)
🟡 src/pages/_app.tsx
69.23% (-0.51% 🔻)
42.86% 0%
68% (-0.49% 🔻)
🟡
... / index.tsx
66.67% (-1.52% 🔻)
0% 0%
73.68% (-1.32% 🔻)
🔴
... / index.tsx
54.84% (-7.66% 🔻)
0% 0%
56.67% (-8.55% 🔻)
🔴
... / index.tsx
39.29% (-1.07% 🔻)
0% 0%
40% (-1.07% 🔻)
🟡
... / index.tsx
57.14%
0% (-11.76% 🔻)
0% (-14.29% 🔻)
61.54%
🔴
... / ImportDialog.tsx
36.17% (-1.04% 🔻)
0% 0%
36.96% (-1.14% 🔻)
🔴
... / FileListCard.tsx
16.67% (-1.11% 🔻)
0% 0%
18.18% (-1.33% 🔻)
🟢
... / index.tsx
100%
88.89% (-11.11% 🔻)
100% 100%

Test suite run success

1712 tests passing in 232 suites.

Report generated by 🧪jest coverage report action from b942226

Copy link

github-actions bot commented Dec 16, 2024

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

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

This PR introduced no changes to the JavaScript bundle! 🙌

* fix: show featured Safe Apps first on dashboard

* fix: add test coverage

* fix: only return featured/pinned Safe Apps

* Remove unnecessary test
@liliya-soroka
Copy link
Member

liliya-soroka commented Dec 16, 2024

  • Wrong network in the Edit entry pop up _
    Steps:
  1. Open the side menu and try to add name for the safe on Sepolia when connected EOA is on Ethereum
    Expected result: Safe network should be displayed instead of connected EOA network
image

@liliya-soroka
Copy link
Member

liliya-soroka commented Dec 16, 2024

  • Just activated safe has "read-only" mark in the side menu when the owner is connected
    Steps:
  1. create a CF with connected EOA as an owner with Pay later option ( one network)
  2. activate the safe from the dashboard with the same EOA ( owner)
  3. Open side bar after activation
    Current result: The safe has Read-only mark when the owner is connected . The manual page refresh is required to update the sate
image

@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2024
@katspaugh katspaugh reopened this Dec 16, 2024
@safe-global safe-global unlocked this conversation Dec 16, 2024
@francovenica
Copy link
Contributor

francovenica commented Dec 17, 2024

  • minor issue

There is a ticket where we changed signer/signers depending on if there was more than 1 signer.
There is the situation where if a user is removed from a safe with 2 owners, the ending result should say "1 out of 1 signer" but it still says signers:

  • Have a safe with 2 owners
  • Remove one
  • In the review step, just before executing, see the wording

image

katspaugh and others added 2 commits December 17, 2024 08:20
* fix: Cap max expiry for setTimeout in useIsExpiredSwap

* refactor: Extract logic and remove Math.abs
@liliya-soroka
Copy link
Member

@katspaugh katspaugh merged commit b942226 into main Dec 17, 2024
23 checks passed
@katspaugh katspaugh deleted the release branch December 17, 2024 15:10
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.