H1Trip Planner — Refactor Target (Inline Builder)
H2Goal
Single-surface editing. No sidebar. No step fragmentation. Trip = editable document.
H2UI Model
H3Remove
- sidebar
- stepper navigation
- multi-step flow
H3Replace with
Inline sections:
- Basics
- Route (table)
- Services (per city)
- Hotels
- Options
H2Route UX (core change)
H3Table model
Row = stop
Columns:
- role (computed label)
- city selector
- nights input
- remove
Actions:
-
- Add city (append only)
H3No:
- role selector
- arrival/core/departure buttons
H2Services UX
- Select city (dropdown)
- Edit services for selected
- Apply-to-all button
No step navigation
H2Hotels UX
- Auto-calc on pax change
- Inline override
H2Editing Modes
H3Read mode
TripDetailClient (clean display)
H3Edit mode
Inline editable fields → updates form → normalize → autosave
H2Data Flow (unchanged)
UI → setForm → normalizeStops → persist → engine → UI
H2Assistant (unchanged)
Prompt → intent → merge → normalize → persist
H2Benefits
- single focus surface
- no context switching
- matches “trip builder” mental model
- faster input → output loop