React + Vite frontend with a component registry (feature parity) #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/react-frontend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rewrites the frontend as a React 19 + Vite 7 + TypeScript single-page app with full feature parity. The Python server and API are unchanged apart from serving the build.
Stack / structure
web/: Vite + React + TS (strict).src/components/registry.tsxmaps every UI action type to a component (PANELS: show_hero, show_cards, show_compare, show_listing_form, show_checkout, show_cash_meetup, show_receipt) or a side effect (EFFECTS: set_theme, toast, clear_panel).src/theme/engine.ts: straight TS port of theme.js (CSS variables, scrim, protected--p-bg/--p-ink, fonts, scoped customCss in@layer user, localStorageam_theme_v1). React renders copy and section order/visibility from the same theme.@layer base, user, protected;is declared first in index.html, so the layer order can't depend on bundle injection order.server.py:/servesstatic/dist/index.html(503frontend_not_builtwith a hint if missing). The traversal check is tightened toSTATIC + os.sep.market/is untouched, and/agent.jsonand/openapi.jsonare byte-identical to main.static/distis git-ignored.deploy.shrunsnpm ci && npm run buildfrom the committed lockfile before stopping the old server, so a failed build keeps the current version up. Added an optionalAM_EXTRA_ENVfor offline (fake-model) test runs.Tests (staging :8795, fake/mock model only, no real model calls)
The real-model theme check is still pending until the free quota resets.