Spaces:
Sleeping
Sleeping
Commit History
-
feat(client): Task 5 — React frontend Chat UI + Onboarding for PC Pal
Implements the complete elderly-friendly React frontend: - globals.css: 18px+ fonts, high-contrast colors, large touch targets, CSS vars - useChat.js: WebSocket hook with init/typing/response/error handling + auto-reconnect - useUser.js: localStorage persistence, GET/POST/PUT user API calls - ChatWindow.jsx: full-height layout, auto-scroll, typing indicator - MessageBubble.jsx: user/assistant alignment, safety alert banner - MessageInput.jsx: 56px+ input, Enter-to-send, auto-focus, disabled while typing - OnboardingFlow.jsx: 3-step wizard (name, OS, comfort level), progress dots - Header.jsx: branded header with user info display - App.jsx: onboarding gate → chat UI routing via useUser - main.jsx: imports globals.css, renders App in StrictMode - index.css: stripped to minimal reset (globals.css handles styling) - Removed Vite boilerplate: App.css, assets/react.svg, assets/vite.svg Build verified: vite build completes with 0 errors (28 modules, 201KB JS). Co-Authored-By: Claude Sonnet…fca46f5 -
Task 1: Project setup and database schema
- Initialize Node.js/Express backend with all required dependencies (express, ws, better-sqlite3@12.8.0, @anthropic-ai/sdk, uuid, dotenv, cors) and dev dependencies (jest, nodemon, concurrently) - Scaffold React + Vite frontend in client/ with proxy config for /api and /ws pointing to localhost:3001 - Create server/db/schema.sql with all 6 tables: users, conversations, messages, step_sequences, skill_events, safety_events - Create server/db/database.js with better-sqlite3 initialization, WAL mode, FK enforcement, and schema auto-execution - Create server/config.js for centralized env config via dotenv - Create all 6 model files (User, Conversation, Message, SkillEvent, SafetyEvent, StepSequence) with full CRUD operations - Add .env.example and .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0737291