Step 1 Host Type Selection
Purpose (Product)
UX Flow (What the user sees)
System Flow (How it works)
sequenceDiagram
actor Landlord
participant Frontend as Web App (Next.js)
participant Backend as API (NestJS)
participant DB as Database
participant Auth as Firebase Auth
Landlord->>Frontend: Clicks host type card
Frontend->>Frontend: setSelectedHostType(hostType)
Frontend->>Backend: PATCH /api/users/{userId}
Note over Frontend,Backend: { hostType: 'SHORT_TERM'|'BOTH'|'MID_TERM' }
Backend->>DB: Update user.hostType
Backend-->>Frontend: 200 OK
Frontend->>Auth: updateUserData({ hostType })
Frontend->>Frontend: onNext() - advance to step 2Data Touched
APIs Called
QA Checklist
1
2
3
4
5
6
7