feat(web): pnpm workspace with ticket, admin and partner apps (#5) #120

Merged
amiryahaya merged 3 commits from feat/5-web-workspace into main 2026-10-28 20:50:29 +01:00
Owner

Part of #5 (the issue stays open until you close it).

What

  • web/: pnpm workspace (Node 22, pnpm via corepack, exact versions) with three Vite + React + TS apps (apps/ticket|admin|partner), a shared @kws/ui package (Page, with a test) and @kws/api-client, the generated TypeScript client moved from api/openapi/clients/typescript. Each app imports the client, so a spec change that breaks an app call fails pnpm typecheck.
  • CI: new web job (install --frozen-lockfile, typecheck, test, build) added to ci-gate.needs; detect-changes.sh gets a web= output (web/, api/openapi/, the client script, workflows) with tests. generate-clients.sh typescript now uses the workspace.
  • mobile/ticket/README.md placeholder (PWA vs Flutter is #54). Docs: web/README.md, CLAUDE.md layout/CI lines.

Review

Dual pass: ponytail (no must-fix; fixed: build/dev generate the client first, a needless flag, empty VITE_API_URL) and correctness (no Critical/Important; clean-copy install, typecheck, test, build pass).

Coverage

make cover: 91.3% total (minimum 80%). No Go code changed.

Not verified

Forgejo runner behaviour (corepack/pnpm there), the Dart path of generate-clients.sh (needs Docker), the TS client generated twice on spec changes (web + clients jobs; left as is).

🤖 Generated with Claude Code

Part of #5 (the issue stays open until you close it). ## What - `web/`: pnpm workspace (Node 22, pnpm via corepack, exact versions) with three Vite + React + TS apps (`apps/ticket|admin|partner`), a shared `@kws/ui` package (`Page`, with a test) and `@kws/api-client`, the generated TypeScript client moved from `api/openapi/clients/typescript`. Each app imports the client, so a spec change that breaks an app call fails `pnpm typecheck`. - CI: new `web` job (install `--frozen-lockfile`, typecheck, test, build) added to `ci-gate.needs`; `detect-changes.sh` gets a `web=` output (`web/`, `api/openapi/`, the client script, workflows) with tests. `generate-clients.sh typescript` now uses the workspace. - `mobile/ticket/README.md` placeholder (PWA vs Flutter is #54). Docs: `web/README.md`, CLAUDE.md layout/CI lines. ## Review Dual pass: ponytail (no must-fix; fixed: build/dev generate the client first, a needless flag, empty `VITE_API_URL`) and correctness (no Critical/Important; clean-copy install, typecheck, test, build pass). ## Coverage `make cover`: 91.3% total (minimum 80%). No Go code changed. ## Not verified Forgejo runner behaviour (corepack/pnpm there), the Dart path of `generate-clients.sh` (needs Docker), the TS client generated twice on spec changes (web + clients jobs; left as is). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Moves the generated TypeScript client to web/packages/api-client, adds the
shared @kws/ui package and three Vite/React apps, a mobile/ticket placeholder,
a web CI job (detect-changes web output, tested) and docs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(web): generate the client before dev (#5)
All checks were successful
ci / changes (pull_request) Successful in 20s
ci / clients (pull_request) Successful in 1m22s
ci / web (pull_request) Successful in 1m7s
ci / api (pull_request) Successful in 22m9s
ci / ci-gate (pull_request) Successful in 6s
97e55e59ee
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/kws!120
No description provided.