This repository has been archived by the owner on Jun 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Sample State
Danny Chan edited this page Nov 20, 2019
·
6 revisions
{
entities: {
boards: {
1: {
id: 1,
adminId: 2,
title: 'Assist the Cook',
description: 'The cook forgot to bake a cake for the duke's birthday!'
member_ids: [2, 5],
archived: false
}
},
lists: {
1: {
id: 1,
boardId: 1,
prevListId: null,
nextListId: 2,
title: 'Todo',
},
2: {
id: 2,
boardId: 1,
prevListId: 1,
nextListId: 3,
title: 'Doing',
},
3: {
id: 2,
boardId: 1,
prevListId: 2,
nextListId: null,
title: 'Done',
},
},
cards: {
1: {
id: 1,
listId: 1,
prevCardId: null,
nextCardId: null,
title: 'Obtain flour',
description: 'There's a windmill nearby'
},
2: {
id: 2,
listId: 2,
prevCardId: null,
nextCardId: 3,
title: 'Obtain egg',
description: 'There's a chicken farm across the river'
},
}
comments: {
1: {
id: 1,
authorId: 3,
cardId: 1,
body: 'There's a flour mill north of Lumbridge.'
},
2: {
id: 2,
authorId: 5,
cardId: 1,
body: 'Don't forget to bring an empty pot!'
}
}
labels: {
1: {
id: 1,
cardId: 1,
name: 'Beginner Quest'
}
}
},
users: {
2: {
id: 2,
email: 'newPlayer2007@example.com',
boardsIds: [1],
commentIds: []
},
5: {
id: 2,
email: 'progamer@example.com',
boardsIds: [1],
commentIds: [2]
}
}
ui: {
menu: null (or a specific menu)
modal: null (or a specific modal)
},
errors: {
login: ['Invalid username or password'],
signUpForm: [
'Password must be at least 8 characters',
'Email is already associated with an account',
'Email cannot be blank'
],
boardForm: ['Title cannot be blank'],
board: ['You do not have access to this board'],
listForm: ['Title cannot be blank'],
cardForm: ['Title cannot be blank'],
commentForm: ['Comment cannot be blank'],
labelForm: ['Name cannot be blank']
},
session: {
currentUserId: 5
}
}