Skip to content

feat(demo): E2E path for web ↔ API ↔ common fixtures (#18) - #26

Closed
kuyacarlo wants to merge 3 commits into
feat/mvp-wire-api-17from
feat/mvp-demo-18
Closed

feat(demo): E2E path for web ↔ API ↔ common fixtures (#18)#26
kuyacarlo wants to merge 3 commits into
feat/mvp-wire-api-17from
feat/mvp-demo-18

Conversation

@kuyacarlo

Copy link
Copy Markdown
Contributor

Summary

  • Documented + scripted happy path (pnpm demo, docs/mvp/DEMO.md, scripts/demo.sh) that boots Nest API + Next web and proves employees/teams/tasks/well-being over the shared @worksight/common contract.
  • Public /demo page always fetches Nest; NEXT_PUBLIC_USE_API=true wires /admin/users, /tasks, and /dashboard/tasks to the API (fixture fallback on failure).
  • API defaults to :3001 with CORS; README + handoff updated. Fixture-backed only — not Supabase.

Stack

Test plan

  • pnpm --filter @worksight/common build && pnpm --filter @worksight/api build && pnpm --filter @worksight/web build
  • PORT=3001 node apps/api/dist/main.jscurl /users (15), /teams (5), /tasks (8), /tasks/stats/:id (workLifeBalanceScore)
  • next startGET /demo HTTP 200 with Nest API / fixture badges
  • Run pnpm demo end-to-end locally and open http://localhost:3000/demo
  • With NEXT_PUBLIC_USE_API=true, confirm /admin/users shows data: Nest API badge

Closes #18

Made with Cursor

kuyacarlo and others added 3 commits July 25, 2026 10:50
Populate employees, tasks, and survey admin/dashboard views from common
data/utils so the MVP no longer depends on duplicated inline mocks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stack E2E demo (#18) on both sibling PRs so web and API share the
@worksight/common contract in one worktree.
Add a runnable demo (pnpm demo /docs/mvp/DEMO.md) so Nest and Next agree on
the @worksight/common contract: public /demo page, API CORS on :3001, and an
optional NEXT_PUBLIC_USE_API toggle for admin/tasks views. Fixture-backed only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worksight Ready Ready Preview, Comment Jul 25, 2026 3:37am
worksight-api Ready Ready Preview, Comment Jul 25, 2026 3:37am
worksight-docs Ready Ready Preview, Comment Jul 25, 2026 3:37am

@kuyacarlo

Copy link
Copy Markdown
Contributor Author

Rolled up into #27 (feat/mvp-integration), which merges the MVP stack against canary and is verified end to end (type-check, lint, API tests, all three builds, plus a live API + web smoke through /demo). This PR stays open for per-workstream review.

@kuyacarlo

Copy link
Copy Markdown
Contributor Author

Rolled into #27 (merged to canary). Closing child PR.

@kuyacarlo kuyacarlo closed this Jul 25, 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