-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
AlexDoes edited this page Dec 27, 2021
·
5 revisions
entities: {
users: {
1: {
id: 1,
email: 'aa@fakedomain.com',
first_name: 'app',
last_name: 'academy',
bio: 'demo account!',
}
12: {
id: 12,
email: 'alex@fakedomain.com',
first_name: 'iibi',
last_name: 'inc',
bio: 'Official iibi account!',
}
},
listings: {
1: {
id: 1,
title: 'Heli Pad',
hostId: 1,
description: 'The apartment as elevated as the pad which helicopters land on!' ,
location: 'NYC,US',
guest_limit: 12,
bedrooms: 8,
bathrooms: 4,
price: 1800,
},
2: {
id: 2,
title: 'Leaning Tower',
hostId: 12,
description: 'The condo leaning over the city!' ,
location: 'Philly , US',
guest_limit: 16,
bedrooms: 8,
bathrooms: 3,
price: 2500,
},
3: {
id: 3,
title: 'The Box',
hostId: 3,
description: '' ,
location: 'NYC , US',
guest_limit: 1,
bedrooms: 1,
bathrooms: 1,
price: 1000,
}
},
reservations: {
1: {
id: 1,
listingId: 3,
guestId: 4,
number_of_guests: 4,
check_in_date: 12-25-2021,
check_out_date: 12-27-2021,
}
},
reviews: {
1: {
id: 1,
listingId: 3,
guestId: 4,
rating: 5,
cleanliness: 5,
communication: 4,
check_in: 5,
accuracy: 5,
location: 3,
value: 3,
body: 'Fantastic!',
}
}
},
session: {
currentUserId: 1
}
ui: {
modal: 'signin'
},
errors: {
signin: ["Invalided credentials, please try again with valid credentials."],
listingForm: ["There was an error with your listing submission. Please review and submit again."],
reservationForm: ["There was an error reserving the listing. Please try again."],
reviewForm: ["There was an error with publishing your review. Please try again."]
}
}