Skip to content

chore: import SwapKit UI into wallets - #86

Draft
towanTG wants to merge 2 commits into
developfrom
chore/import-swapkit-ui
Draft

chore: import SwapKit UI into wallets#86
towanTG wants to merge 2 commits into
developfrom
chore/import-swapkit-ui

Conversation

@towanTG

@towanTG towanTG commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Imports @swapkit/ui and the vite-lite playground from the (private) swapkit/ui repo into this monorepo.

Rebuilt 2026-09-01: the branch was recreated from current develop with 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 to swapkit/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/wallets via workspace:*, 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).
  • Pending @swapkit/ui changesets carried over from the ui repo, plus a migration changeset.
  • Workspace dep alignment for sherif: cosmjs 0.39, cosmjs-types 0.11.0, near-js 2.5.1, ts-pattern 5.9.0, typhonjs 3.1.0.
  • tools/builder/dts.ts builds ui dts; root gains @types/react(-dom), happy-dom, caniuse-lite; lefthook pre-commit from the ui repo.

Deliberately out

  • All infra: devops/ (terraform, cloudbuild, bootstrap) and playgrounds/vite-lite/terraform/ — hosted purely in the devops repo.
  • The dev API key in public/widget.html (scrubbed to empty — this repo is public).
  • ui repo's pr-test.yml / update-swapkit-deps.yml / CODEOWNERS — this repo's hardened ci.yml and auto-update-core.yml already cover both jobs.

CI note

ci.yml's test step is scoped to wallet/sdk/tools suites. packages/ui tests 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.

@towanTG
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
towanTG force-pushed the chore/import-swapkit-ui branch from 71ec7a3 to 7946262 Compare September 1, 2026 09:12
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant