[X] create a service like favourites but to deal with `collections
[X] simplify the logic of both favourites and collections to treat the current user data as any other user data (except with a computed property as shortcut)
To test it:
In the absence of ways to create a collection from the front-end and in the absence of mirage to fake it ... there is no other way around than creating the bookmarks via postman or equivalent:
create a new POST request addressed to localhost:4200/new-bookmarks/create-collection
copy your user's JWT from the localstorage and paste it a new header: Authorization / Bearer {put your JWT here}
write up a body that looks like that:
{
"name": "this is a collection",
"owner_id": "{put here the id of your user}"
}
send the request, check that it worked and then refresh the /collections page on the FE to see your new collection appear there.
This PR implements DIS-352
Work done:
inline-edit
component from CMPfavourites
but to deal with `collectionsfavourites
andcollections
to treat the current user data as any other user data (except with a computed property as shortcut)To test it: In the absence of ways to create a collection from the front-end and in the absence of mirage to fake it ... there is no other way around than creating the bookmarks via postman or equivalent:
POST
request addressed tolocalhost:4200/new-bookmarks/create-collection
Authorization
/Bearer {put your JWT here}
/collections
page on the FE to see your new collection appear there.