Change shape of entry object to support new collection table
- Dominant language
- JavaScript
- Stars
- 19.4k
- Forks
- 3.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
In order to use the new `Table` and `ThumbnailGrid` components in our Collection view, we need to first get the entry object that currently looks like this
```js
{
path: "/collections/posts/entries/2020-4-14-post-number-1",
summary: "This is post # 1 -- 2020/04/14",
image: undefined,
imageField: undefined,
collectionLabel: undefined,
viewStyle: "VIEW_STYLE_LIST"
}
```
to look more like this...
```js
{
id: "db1c29a7-ae02-4272-be7b-f2ca1eb49fbd",
featured: false,
featuredImage: "https://images.unsplash.com/photo-1584303185213-42…6965a646?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9",
category: "Tech",
status: "Draft",
dateModified: "04/12/2020 @ 05:18 AM",
dateCreated: "04/11/2020 @ 23:30 PM",
author: "Karine Jacobs"
}
```
This is mock data, but you get the idea.
Contributor guide
Assessment
This issue has not been assessed yet.