Skip to content

OBJ-90 — Vite + React app scaffold - #41

Merged
objectgyan merged 1 commit into
mainfrom
objectgyan/obj-90-m81-vite-react-app-scaffold-pointing-at-the-api
May 17, 2026
Merged

objectgyan merged 1 commit into
mainfrom
objectgyan/obj-90-m81-vite-react-app-scaffold-pointing-at-the-api

Conversation

@objectgyan

Copy link
Copy Markdown
Owner

Summary

  • Scaffolds ui/ with Vite + React + TypeScript (pnpm create vite --template react-ts)
  • Configures Vite proxy: /api → VITE_API_BASE (default http://localhost:5000) and /ws for WebSocket
  • Implements fetchDocuments API client helper; landing route / lists documents from GET /api/documents; stub route /doc/:id renders "Document {id}"
  • Adds ui-lint-typecheck CI job to ci.yml (pnpm lint + tsc --noEmit)
  • Playwright E2E test seeds a doc, starts pnpm dev, asserts seeded title visible on /

Test plan

  • pnpm lint exits 0
  • pnpm typecheck (tsc --noEmit) exits 0
  • pnpm build exits 0
  • Playwright test: loads /, asserts seeded document title visible
  • scripts/validate-obj-90.ps1 exits 0

@linear-code

linear-code Bot commented May 17, 2026 •

Copy link
Copy Markdown
OBJ-90 M8.1 — Vite + React app scaffold pointing at the API

Milestone: M8 — Basic test UI · Wave: 3

Summary

Scaffold a Vite + React + TypeScript test UI under ui/. Wired to API base URL via env. Login disabled (uses dev no-op auth).

Acceptance

  • pnpm dev boots a UI on localhost:5173 that hits the API
  • A landing page lists documents from GET /api/documents
  • Vite config proxies /api to the API
  • Lint + typecheck pass

Validation

  • DB check: seed a doc; UI list shows it; DB row matches what UI displays
  • Live API check: Playwright UI test loads /, asserts the seeded doc appears
  • Script: scripts/validate-obj-NNN.ps1

Branch / PR

Branch from main; target main. No trailers/footer.

Review in Linear

@objectgyan
objectgyan merged commit aaa06c7 into main May 17, 2026
3 of 5 checks passed
objectgyan added a commit that referenced this pull request May 17, 2026
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