Draft
Conversation
Co-authored-by: pedeluccasobral <pedeluccasobral@gmail.com>
- Create shared AI client with centralized configuration - Switch default model to xai/grok-4.1-fast-reasoning - Add maxRetries for automatic retry with exponential backoff - Add extractJson utility for parsing AI responses - Add comprehensive unit tests for validators, services, and API utils - Fix bug in handleApiError for null/undefined errors - Fix TypeScript constraint error in db.ts - Create CLAUDE.md documentation - Add database migration script - Configure Vitest for testing 88 tests passing across 5 test files
…eeded) - Replace EmailProvider with CredentialsProvider using phone numbers - Use JWT sessions instead of database sessions - Make AUTH_SECRET optional at build time with default - Remove EMAIL_SERVER and EMAIL_FROM requirements - Update CLAUDE.md documentation
Inspired by Shopify's Winter '26 Renaissance Edition, this plan transforms
MedSpeak from a single-feature demo into a comprehensive health platform.
Key sections:
- Design philosophy capturing Renaissance-inspired aesthetic
- Complete customer journey mapping (landing → analysis → doctor brief)
- Full design system (colors, typography, spacing, shadows)
- Page-by-page specifications with wireframes
- Component library requirements
- Animation & interaction design
- 11 parallel agent tasks with dependency graph
- Backend API alignment (all endpoints already exist)
Design principles:
- Dramatic entrance, gentle journey
- Classical warmth, modern clarity
- Intentional every element
- AI as wise companion ("Sage")
This commit implements a comprehensive UI redesign inspired by Shopify's Winter '26 Renaissance Edition, transforming MedSpeak from a single-feature demo into a full-featured health documentation platform. ## Design System Foundation - Design tokens (colors, typography, spacing, shadows) - Tailwind config with custom theme extensions - Global CSS with animations and utility classes - Playfair Display + Inter font pairing ## Core UI Components (143 tests) - Button, Input, Textarea, Select - Card, Badge, Text, Heading - Skeleton, Spinner, Toast, Tooltip - Progress, Tabs, Modal ## Landing Page - Renaissance Theme (56 tests) - Dramatic hero with "Enlightenment" typography - Chapter-style features (Roman numerals I-IV) - Interactive demo section - Trust badges and CTA footer ## App Shell & Navigation (74 tests) - Header with scroll transition - Mobile drawer navigation - User menu dropdown - Route group layout ## Authentication (76 tests) - Phone number input with formatting - Country code selector - Guest mode option ## Dashboard (86 tests) - Time-based greeting - Action cards (Simplify, Session) - Session list with SWR ## Quick Simplify (83 tests) - Upload zone with OCR - Structured results display - Entity badges with tooltips ## Intake Flow (130 tests) - Multi-step wizard (4 steps) - Progress indicator - Document and symptom forms - Severity slider ## Results Hub (129 tests) - Tab navigation (Summary, Timeline, Insights, Doctor Brief) - Interactive timeline - Insight cards - Action item checkboxes ## Animations & Polish (103 tests) - Scroll animation hooks - Animated text components - Page transitions - Stagger containers ## Accessibility (WCAG 2.1 AA) - Comprehensive audit - Focus management utilities - Screen reader support - Reduced motion respect ## Verification - Design philosophy score: 9/10 - Overall UX score: 8.5/10 - All 880+ tests passing
This fixes the landing page to actually match the Shopify Winter '26 Renaissance Edition reference images: Hero Section: - Dark, moody background evoking Caravaggio chiaroscuro lighting - White bordered frame with golden corner ornaments - "AI" highlighted in golden gradient within "EnlightAInment" - Playful modern element (health icon) breaking the frame - Canvas texture and craquelure effects for aged painting feel Features Section: - Dark dramatic header with golden decorative elements - Cream background content area with framed feature cards - Large Roman numerals (I-IV) in golden serif typography - Corner ornaments on each card Demo Section: - Dark header with golden star ornament - Framed document cards with corner accents - Golden transformation arrow - Contrast between cream "before" and dark "after" cards Trust Section: - Dark background with warm ochre undertones - Framed trust badges with golden accents - Consistent decorative dividers Footer: - Dramatic dark CTA section with bordered frame - Golden highlighted text for key phrase - Consistent dark aesthetic throughout All components maintain: - Full accessibility support (WCAG 2.1 AA) - prefers-reduced-motion support - Responsive design for all breakpoints - TypeScript type safety
This commit updates the entire app to use a subtler version of the Renaissance Edition color palette from the landing page. Design System: - Added app-specific semantic CSS variables (--app-bg, --app-surface, etc.) - Added Renaissance dark color (#0a0608) to design tokens - Added gold-200 muted accent (#E8D48A) - Updated Tailwind config with app color utilities - Full dark mode support for all new variables Color Palette (In-App - Subtler): - Background: cream (#F8F5F0) - Surface/cards: white (#FDFCFA) with cream borders (#E5DED3) - Primary buttons/headers: dark (#0a0608) - Accent/highlights: gold (#D4AF37) - used sparingly - Focus rings: gold instead of purple - Text selection: gold background Components Updated: - App shell (header, sidebar, mobile-nav, user-menu) - Auth pages (sign-in form, phone input) - Dashboard (action cards, session cards, session list) - Intake flow (progress bar, all step components, forms) - Results hub (tabs, timeline, insights, doctor brief, action items) - Core UI (button, card, input, badge, modal, tabs, toast, etc.) Key Changes: - Replaced all purple (#4A1B66, #6B4E9E) with dark or gold - Focus states use gold ring instead of purple - Active states use gold-100 background with dark text - Primary buttons: dark bg with gold hover - Timeline uses gold connecting line - Insights cards have subtle gold left border - Doctor brief has gold header bar All changes maintain: - Full accessibility (WCAG 2.1 AA contrast) - Dark mode support - TypeScript type safety - Existing functionality
- Add Framer Motion and Lucide React - Update Tailwind config with Oatmeal/Bone/Electric palette - Add glassmorphism and noise texture utilities - Refactor Landing Page components (Hero, Features, Demo, Trust, Footer) to use new design system - Implement staggered animations and rounded geometry Co-authored-by: pedeluccasobral <pedeluccasobral@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement the 'Digital Artisan' design system to introduce a warm, tactile, and human-centric UI aesthetic.