Skip to content

Commit 91b31f2

Browse files
committed
retire legacy web template and split redesign work into tracked issues
1 parent 3f57a71 commit 91b31f2

39 files changed

Lines changed: 44 additions & 9109 deletions

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Spec-aligned (new) pipeline:
1313
- Build output: `th build <schema> --out <dir>` writes `contracts/App.sol`, `compiled/App.json`, `schema.json`, `manifest.json`.
1414
- Deploy: `th deploy <buildDir> --chain anvil|sepolia` (anvil deploy works; sepolia verify still TBD).
1515

16-
Legacy (kept temporarily; deprecated):
16+
Legacy (deprecated path; no longer source-of-truth in this repo):
1717
- Input: legacy `contracts.json` shape (`contracts{}` with `fields`, `initRules`, `readRules`, `writeRules`).
1818
- Generator: `solidityGenerator.js` generates an `App` contract + per-record child contracts (one contract deployed per record).
19-
- UI: Handlebars templates in `tokenhost-web-template/` and generator script `handlebar.cjs` that writes a Next.js app into `site/`.
20-
- Build/deploy: `build.sh` compiles via `solcjs`, generates UI, then deploys via `tokenhost-web-template/contracts/deploy.js` (Foundry `forge create`).
19+
- UI legacy source now lives in separate repo: `tokenhost/app-tokenhost-com-frontend`.
20+
- Build/deploy references to `tokenhost-web-template/` in this repo are retired.
2121

2222
Tests:
2323
- `pnpm test` and `pnpm test:integration` pass.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Token Host Builder is a schema-to-dapp generator framework for EVM CRUD apps.
55
Canonical product behavior is defined in `SPEC.md`.
66
Execution backlog and current gap-tracking is in `AGENTS.md`.
77

8+
## Legacy template status
9+
10+
- `tokenhost-web-template/` is retired from this repo.
11+
- Legacy frontend continuity lives in `tokenhost/app-tokenhost-com-frontend`.
12+
- Preserved migration/behavior notes: `docs/legacy-tokenhost-web-template-notes.md`.
13+
814
## Current generated-app testing model
915

1016
- `th generate <schema> --with-tests` emits generated app tests and a generated app CI workflow.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Legacy `tokenhost-web-template` Notes (Archived)
2+
3+
This document preserves practical insights from the deprecated in-repo `tokenhost-web-template/` before removal.
4+
5+
Status:
6+
- Source of truth now lives outside this repo: `tokenhost/app-tokenhost-com-frontend`.
7+
- In this repo, the legacy template is removed to reduce dependency/security noise and avoid dual UI pipelines.
8+
9+
## What was worth preserving
10+
11+
1. Chain mismatch handling and wallet chain add/switch UX
12+
- Legacy helper implemented explicit `wallet_switchEthereumChain` and fallback `wallet_addEthereumChain`.
13+
- This behavior remains important for local Anvil onboarding and should be retained in generated UI runtimes.
14+
15+
2. Read/write provider separation
16+
- Legacy runtime kept a read-capable contract binding and swapped in a signer-backed contract after wallet connect.
17+
- This pattern avoids write failures during unauthenticated reads and should remain part of runtime architecture.
18+
19+
3. Auth endpoint base URL normalization
20+
- Legacy utility normalized external auth host using `NEXT_PUBLIC_GOOGLE_AUTH_DOMAIN` with trailing-slash cleanup.
21+
- Keep this pattern (or equivalent) whenever cross-origin auth endpoints are used by generated UIs.
22+
23+
4. Practical UX components to keep in mind
24+
- Pagination (`Pager.hbs`) and upload progress UI (`ImageUpload.js`) are useful behavior references.
25+
- The specific implementation/dependencies are outdated, but the interaction patterns are still relevant.
26+
27+
## What was intentionally not preserved
28+
29+
- Dependency stack and lockfile (`next@13`, `web3`, mixed lint/prettier setup) due to drift and security churn.
30+
- Handlebars-era file/layout conventions that conflict with the current THS + generated Next export flow.
31+
32+
## Follow-up expectations
33+
34+
- Any necessary visual/UX patterns should be reintroduced in the spec-aligned UI generator under `packages/templates/next-export-ui`.
35+
- Keep design evolution tied to generated-app test coverage and CI, not legacy template branches.

tokenhost-web-template/.env.example

Lines changed: 0 additions & 18 deletions
This file was deleted.

tokenhost-web-template/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

tokenhost-web-template/assets/sass/styles.scss

Lines changed: 0 additions & 30 deletions
This file was deleted.

tokenhost-web-template/components/Add.hbs

Lines changed: 0 additions & 200 deletions
This file was deleted.

0 commit comments

Comments
 (0)