grommet / grommet-cms-boilerplate

Grommet CMS Boilerplate
Apache License 2.0
12 stars 3 forks source link

Add file assets link #51

Closed karatechops closed 7 years ago

karatechops commented 7 years ago

This PR links the Assets feature with the hero image in the Dashboard post page. I still need to add this functionality to the content blocks. I believe for this to work properly the user will need to drop the posts and assets tables from their mongo database. upon npm start a new hello world post and asset will be added to the DB.

Images in posts are now treated as references to Assets, this will allow the user to change the Asset in the Asset section and have that change cascade to any Posts using the changed Asset. I'm assuming this will break a few bits where we're calling post.image this will need to updated to post.image.path.

RyanCCollins commented 7 years ago

Looks good to me! Nice work on linking the assets and adding flowtypes! I am going to have to check this out in the am on my local machine.