User actions: My List
Add actions and a reducer called user
.
The first user actions are about managing the list of accessions the user has selected. Instead of synchronizing the list with the server, use localStorage
to keep the list of UUID
-s of selected accessions.
In the accession DisplayPage, add a checkbox that indicates if the accession is in "My list". On tick it should add it to the list, on untick it will remove the accession from the list.
The state should also keep track of the current count
(size of the list).
state.user = {
...,
mylist: {
count: 0,
accessions: [ ], // contains UUIDs
},
}