Skip to content

feat: Leave Request Wizard - full inline intake flow#2

Open
ssutantoatcaptech wants to merge 7 commits into
claude/build-database-dashboard-ZsdTcfrom
claude/figma-list-files-2JWDJ
Open

feat: Leave Request Wizard - full inline intake flow#2
ssutantoatcaptech wants to merge 7 commits into
claude/build-database-dashboard-ZsdTcfrom
claude/figma-list-files-2JWDJ

Conversation

@ssutantoatcaptech
Copy link
Copy Markdown
Owner

Summary

  • Adds an 8-step Leave Request Wizard as a full inline page (not modal)
  • Steps: Reason for Leave, Child Details (conditional), Work Schedule, Schedule & Duration, Leave Estimate, Compliance, Review & Submit, Confirmation
  • Centralized form state with dynamic step flow, per-step validation, disabled buttons until fields are complete, and smooth slide transitions between steps

What's included

  • src/pages/LeaveWizard.tsx — orchestrator with state management, validation, and navigation
  • src/pages/leave/ — 8 step page components + shared types
  • src/components/leave/ — reusable UI primitives (Card, Stepper, WizardButtons, OptionCard, RadioInline, CheckboxItem)
  • Updated App.tsx, Sidebar.tsx, types/index.ts, and index.css for routing and animations

Test plan

  • Navigate to Leave Wizard from sidebar
  • Select each leave reason and verify conditional child-details step appears only for child-related reasons
  • Fill out all steps and verify validation prevents skipping required fields
  • Verify Review page shows correct data and Edit buttons navigate back
  • Submit and verify Confirmation page displays case number and dynamic content

🤖 Generated with Claude Code

claude and others added 7 commits March 22, 2026 23:10
Adds a new Figma Files page to the dashboard that lets users enter their
Figma Personal Access Token and Team ID to browse team projects and list
files within each project, with thumbnail previews and links to open files.

- Server: two new proxy endpoints for Figma REST API (team projects, project files)
- Frontend: FigmaFiles page component with project/file listing UI
- Navigation: Figma Files entry added to sidebar

https://claude.ai/code/session_017XFr4va8CC4YQSf2AcmMVy
- Add MoO Portal page with dark navy glassmorphism design (Overview, Benefits, Claims)
- Implement full Fluent 2 component library: Button, Input, Select, Checkbox, Toggle, Badge, Avatar, Spinner, ProgressBar, Tag, MessageBar, Tabs
- Add ComponentDemo page showcasing all Fluent 2 components
- Update FigmaFiles page to support direct Project ID browsing
- Add CLAUDE.md referencing Microsoft Fluent 2 as design system source of truth
- Load Inter font for MoO Portal typography

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add moo-tokens.json with W3C format tokens (color, typography, spacing, border radius, components)
- Add Export Design Tokens download link in MoO Portal sidebar
- Fix double sidebar by rendering MoO Portal full-screen
- Add back arrow to return to DB Dashboard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add POST /api/figma/push-variables endpoint to push all design tokens directly to Figma via Variables API
- Add Figma Sync collapsible panel in MoO Portal sidebar with token input, file ID, and push button
- Generate moo-styles.json with color styles, text styles, and effect styles
- Fix moo-tokens.json to use working W3C format ($value/$type with hex colors and plain numbers)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…import

Figma's native Variables importer silently rejects RGBA 8-digit hex values
(#FFFFFF14). Replace all alpha-opacity colors with plain 6-digit hex and
note the intended opacity in the description field instead.

Also adds moo-tokens-colors.json (colors-only file) and a new "↓ Colors"
download button in the FigmaSyncPanel.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements 8-step leave request wizard with centralized form state,
dynamic step flow, per-step validation, and smooth transitions.
Steps: reason, child details, work schedule, duration, estimate,
compliance, review & submit, confirmation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants