closerdao / closer-ui

closer-ui.vercel.app
1 stars 0 forks source link

Store booking state in URL #18

Closed closerearth closed 1 year ago

closerearth commented 1 year ago

In the first steps of booking, state should be kept in URL (dates, adults etc - the search settings) - then upon selecting a listing, the booking is created and so we should reflect the ID in the URL so that a user can refresh the page etc.

URLs

Loading booking page by booking.status

When I open /booking/:id, if status is open or tokens-staked, redirect to the appropriate page:

Non guest ready Status Descriptions

cancelled: Your booking was cancelled. rejected: Your booking was rejected by space-host pending: Your booking is awaiting confirmation from space-host

Guest ready states

If the booking is in a guest-ready state, let's display additional information (based on status):

status = confirmed & booking start in less than 3 days: Pack your bags! [check in instructions] [TDF today whatsapp group] status = checked-in & booking end > now: We hope you are enjoying your stay! [TDF today whatsapp group] status = checked-in & booking end < now OR status = checked-out: We hope you enjoyed your stay. [Give us your feedback]

sorokinvj commented 1 year ago

what would be the design for "tokens-staked /booking/:id/checkout - Should show the tokens as already staked, and only need fiat payment"?

sorokinvj commented 1 year ago

Could I please see the design for "display additional information" for Guest ready states?

juliencharrel commented 1 year ago

@daneelminev Need to mock the last 2 guest ready states

juliencharrel commented 1 year ago

@sorokinvj checked-in is a state

Image

daneelminev commented 1 year ago

@sorokinvj

The life of a booking card