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(swaps): add dropdown network filter #5174

Merged
merged 31 commits into from
Mar 28, 2024
Merged

feat(swaps): add dropdown network filter #5174

merged 31 commits into from
Mar 28, 2024

Conversation

jh2oman
Copy link
Contributor

@jh2oman jh2oman commented Mar 27, 2024

Description

Dropdown for filtering swap tokens by network

Figma

Screen_recording_20240327_123510.webm
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2024-03-27.at.12.46.38.mp4

Test plan

Updated unit tests

Related issues

https://linear.app/valora/issue/ACT-1098/select-token-by-network

Backwards compatibility

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 93.54839% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 85.76%. Comparing base (836ba87) to head (36d0ba0).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5174      +/-   ##
==========================================
- Coverage   85.76%   85.76%   -0.01%     
==========================================
  Files         744      744              
  Lines       30294    30320      +26     
  Branches     5226     5237      +11     
==========================================
+ Hits        25983    26004      +21     
- Misses       4072     4077       +5     
  Partials      239      239              
Files Coverage Δ
src/analytics/Events.tsx 100.00% <100.00%> (ø)
src/analytics/Properties.tsx 100.00% <ø> (ø)
src/components/FilterChipsCarousel.tsx 100.00% <100.00%> (ø)
.../components/multiSelect/MultiSelectBottomSheet.tsx 100.00% <100.00%> (ø)
...ents/multiSelect/NetworkMultiSelectBottomSheet.tsx 100.00% <ø> (ø)
.../dappsExplorer/DAppsExplorerScreenSearchFilter.tsx 95.41% <100.00%> (ø)
src/dappsExplorer/NoResults.tsx 100.00% <ø> (ø)
src/swap/useFilterChips.ts 100.00% <100.00%> (ø)
src/components/TokenBottomSheet.tsx 95.77% <91.30%> (-1.73%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 836ba87...36d0ba0. Read the comment docs.

@jh2oman jh2oman marked this pull request as ready for review March 27, 2024 19:51
locales/base/translation.json Outdated Show resolved Hide resolved
src/analytics/Properties.tsx Show resolved Hide resolved
src/components/multiSelect/MultiSelectBottomSheet.tsx Outdated Show resolved Hide resolved
src/components/TokenBottomSheet.tsx Show resolved Hide resolved
Copy link

emerge-tools bot commented Mar 28, 2024

1 build increased size

Name Version Download Change Install Change Approval
Celo (test)
org.celo.mobile.test
1.81.0 (146) 24.3 MB ⬆️ 1.9 kB 60.9 MB ⬆️ 8.2 kB (0.01%) N/A

Celo (test) 1.81.0 (146)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 8.2 kB (0.01%)
Total download size change: ⬆️ 1.9 kB

Largest size changes

Item Install Size Change
main.jsbundle ⬆️ 8.2 kB

🛸 Powered by Emerge Tools

locales/base/translation.json Show resolved Hide resolved
src/components/TokenBottomSheet.tsx Outdated Show resolved Hide resolved
src/swap/useFilterChips.ts Show resolved Hide resolved
@jh2oman jh2oman enabled auto-merge March 28, 2024 20:39
@jh2oman jh2oman added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit 69ce7a2 Mar 28, 2024
16 checks passed
@jh2oman jh2oman deleted the swap-network branch March 28, 2024 22:56
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
### Description

Dropdown for filtering swap tokens by network


[Figma](https://www.figma.com/file/gFuRy5HJrV34ehkY0dvWWb/Swap-guidance?type=design&node-id=2708-3698&mode=design&t=l0AoyI5xCPHiauyq-0)


[Android](https://github.com/valora-inc/wallet/assets/8432644/7aaf789f-904b-4a06-988a-a3a8fae23713)


[iOS](https://github.com/valora-inc/wallet/assets/8432644/98ff2060-f4fa-446f-98e3-b6b8de4d7496)

### Test plan

Updated unit tests

### Related issues

https://linear.app/valora/issue/ACT-1098/select-token-by-network

### Backwards compatibility

<!-- Brief explanation of why these changes are/are not backwards
compatible. -->

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [x] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
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.

None yet

2 participants