Commit a6ff9c9
feat: improve token selection UI, add better sorting and filtering strategy (#1588)
* feat: remove redundant code
* fix: fix next playground build issues, add exact=true to bunfig
* feat: implement improved token selection UI, rework balance calculation in swapkit context
* feat: improve balance state calculation, improve wallet drawer ui
* fix: fix hook after balance naming changes
* feat: switch to built-in assetValue staticTokensMap, load tokens in the swapkit-context module
* feat: add small optimisation for calculating filtered values
* fix: fix createSwapKit sdk type errors
* fix: fix swapkit ui type errors
* chore: revert WalletConnectButton and keystore dialog changes
* chore: apply changes after review
* chore: revert type changes
* fix: fix types
* feat: improve keystore connect dialog (#1587)
* fix: resolve missing dependencies issue, set exact=true in bunfig.toml
* feat: set up the dialog components for keystore
* feat: add tabs from shadcn/ui, improve dialog footer layout
* feat: restore and refactor some of the keystore connect implementation
* feat: add shadcn/ui components for implementing rich forms
* feat: move keystore connection state outside of swapkit context, use react-hook-form for WalletKeystoreConnectDialog
* feat: add loading states, move file input onChange handler outside of jsx
* chore: reorder imports
* feat: show new keystore connect dialog on keystore click
* chore: remove old keystore dialog, remove dialog components outside of the scope
* chore: update bun.lock
* feat: tweak dialog styles to handle edge cases
* feat: add missing variables, handle styling edge cases
* feat: add v3 quote swap flow (#1590)
* feat: remove redundant code
* fix: fix next playground build issues, add exact=true to bunfig
* feat: implement improved token selection UI, rework balance calculation in swapkit context
* feat: improve balance state calculation, improve wallet drawer ui
* fix: fix hook after balance naming changes
* feat: switch to built-in assetValue staticTokensMap, load tokens in the swapkit-context module
* feat: add small optimisation for calculating filtered values
* fix: fix createSwapKit sdk type errors
* fix: fix swapkit ui type errors
* chore: revert WalletConnectButton and keystore dialog changes
* chore: apply changes after review
* chore: revert type changes
* fix: fix types
* fix: resolve missing dependencies issue, set exact=true in bunfig.toml
* feat: set up the dialog components for keystore
* feat: add tabs from shadcn/ui, improve dialog footer layout
* feat: restore and refactor some of the keystore connect implementation
* feat: add shadcn/ui components for implementing rich forms
* feat: move keystore connection state outside of swapkit context, use react-hook-form for WalletKeystoreConnectDialog
* feat: add loading states, move file input onChange handler outside of jsx
* chore: reorder imports
* feat: show new keystore connect dialog on keystore click
* chore: remove old keystore dialog, remove dialog components outside of the scope
* chore: update bun.lock
* feat: tweak dialog styles to handle edge cases
* feat: add missing variables, handle styling edge cases
* feat: add setup for v3 quote and swap requets
* feat: move into new way of overriding endpoints using SKConfig
* feat: adjust swap flow to match API changes
* chore: remove redundant code, fix smaller issues
* feat: add simple localStorage form integration, remove custom apiKey field
* feat: add `sk-ui-` prefix to widget's tailwindcss config, update @swapkit/ui to use prefixed classNames (#1591)
* feat: update variables and tailwind config to use prefix
* chore: replace tailwind classes in @swapkit/ui to match prefix
* feat: set up sk-ui- prefix in tailwind config, disable preflight, update dependencies
* feat: convert missing classNames to prefixed ones
* chore: clean up assetValue static map export
* chore: dirty fix ts issue tailwind.config.ts no in rootDir
* chore: skip balance test
---------
Co-authored-by: towan <towan@swapkit.dev>1 parent e98f261 commit a6ff9c9
File tree
57 files changed
+1535
-785
lines changed- packages
- helpers
- src
- api/swapkitApi
- modules
- sdk/src
- toolboxes/src/evm/__tests__
- ui
- src
- lib
- react
- components
- composable
- dialogs
- ui
- hooks
- playgrounds
- bun-react
- nextjs
- src
- app
- components
- ui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+1535
-785
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
80 | 102 | | |
81 | 103 | | |
82 | 104 | | |
| |||
187 | 209 | | |
188 | 210 | | |
189 | 211 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
193 | 226 | | |
194 | 227 | | |
195 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments