chore: import SwapKit UI into wallets - #86
Draft
towanTG wants to merge 2 commits into
Draft
Conversation
towanTG
marked this pull request as draft
July 28, 2026 10:33
Synced to swapkit/ui@250d92c (develop, 2026-08-28). Replaces the June import: rebuilt on current develop with fresh history so no devops config is carried anywhere in the branch. - packages/ui imported with wallets-repo adaptations: @swapkit/wallets via workspace:*, range-style @swapkit pins, no cjs export entries, and the missing-credentials guard (quote/price fetches disabled plus a warning banner when no API key or widget credentials are set). - playgrounds/vite-lite replaced by the ui repo version (terraform excluded; demo api-key scrubbed - wallets is a public repo). - Infra stays out: no devops/, no terraform, no cloudbuild. That config is hosted in the devops repo. - Workspace dep alignment for sherif: cosmjs 0.39, cosmjs-types 0.11, near-js 2.5.1, ts-pattern 5.9.0, typhonjs 3.1.0. - CI test step scoped to wallet/sdk/tools suites; packages/ui tests need the package-local happy-dom preload and are partly red upstream. Run them with: bun --cwd=packages/ui test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
towanTG
force-pushed
the
chore/import-swapkit-ui
branch
from
September 1, 2026 09:12
71ec7a3 to
7946262
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Imports
@swapkit/uiand the vite-lite playground from the (private)swapkit/uirepo into this monorepo.Rebuilt 2026-09-01: the branch was recreated from current
developwith fresh history — the earlier revision of this PR carried terraform/cloudbuild config and a dev API key into this public repo; none of that exists anywhere in the new history.What's in
packages/ui— synced toswapkit/ui@250d92c(develop, 2026-08-28: SDK 5.0 line, Aleo + Hypercore/HyperEVM, token-catalog asset picker, multi-provider routes, org-bucket image URLs). Wallets-repo adaptations:@swapkit/walletsviaworkspace:*, range-style@swapkit/*pins, no cjs export entries, and the missing-credentials guard (quotes/prices disabled + warning banner without an API key / widget credentials).playgrounds/vite-lite— replaced by the ui repo version (Dockerfile + nginx.conf kept; they contain nothing sensitive).@swapkit/uichangesets carried over from the ui repo, plus a migration changeset.tools/builder/dts.tsbuilds ui dts; root gains@types/react(-dom),happy-dom,caniuse-lite; lefthook pre-commit from the ui repo.Deliberately out
devops/(terraform, cloudbuild, bootstrap) andplaygrounds/vite-lite/terraform/— hosted purely in the devops repo.public/widget.html(scrubbed to empty — this repo is public).pr-test.yml/update-swapkit-deps.yml/ CODEOWNERS — this repo's hardenedci.ymlandauto-update-core.ymlalready cover both jobs.CI note
ci.yml's test step is scoped to wallet/sdk/tools suites.packages/uitests need the package-local happy-dom preload (cwd-dependent bunfig) and several sentry/mock.module suites are red upstream in swapkit/ui as well. Run locally:bun --cwd=packages/ui test(94 pass / 17 upstream-red).Verification
bun install(sherif clean) ·bun run build:ci✓ ·bun lint✓ ·bun run type-check:ci✓ (all 6 packages) ·bun test packages/sdk packages/wallet-extensions packages/wallet-hardware packages/wallet-mobile packages/wallets tools→ 114 pass / 0 fail.Important
The old branch history (with terraform + the dev API key
1662…0703) was public since June. Force-pushed commits remain fetchable by SHA until GC — rotate that dev API key and consider asking GitHub support to purge the orphaned commits.