Skip to content

Conversation

@Drakeoon
Copy link
Contributor

Done:

  • Display proper list of all supported tokens
  • Add sorting & filtering logic to display tokens closer to what user wants to do
  • Export staticTokensMap that is used as cache by AssetValue
  • Load static tokens outside of react tree (might cause issues with deployment, need to keep an eye out)

Next improvements:

  • show only the tokens supported by chains our wallet is connected to (better ux, perf)
  • reduce re-calculations of filtered tokens to minimum (better perf)

Preview:

CleanShot.2025-11-14.at.17.25.02.mp4

@Drakeoon Drakeoon marked this pull request as ready for review November 14, 2025 16:52
@Drakeoon Drakeoon force-pushed the feat/improve-token-selection-ui-sorting-filtering branch 2 times, most recently from 7679cc5 to d7831ac Compare November 14, 2025 17:08
@ice-chillios ice-chillios requested a review from towanTG November 17, 2025 08:17
* 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
@Drakeoon Drakeoon force-pushed the feat/improve-token-selection-ui-sorting-filtering branch from 1f93ab0 to 8172ce1 Compare November 18, 2025 17:12
Drakeoon and others added 4 commits November 19, 2025 11:27
* 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
@towanTG towanTG merged commit a6ff9c9 into develop Nov 19, 2025
5 checks passed
@towanTG towanTG deleted the feat/improve-token-selection-ui-sorting-filtering branch November 19, 2025 13:38
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.

3 participants