Goal: US6 TL; DR: Add New entry button at dashboard and content page, New entry button navigates to /new-entry page which contains New entry form with submit button that sends data to the database aka:
and navigates back to dashboard / route on success!
+ Add EntryFileIcon svg
! Update components/svg/index.js
# Exports the added svg.
+ Add Entry model
# Currently only the entryName field is required.
+ Add pages/api/entry.js api page
# Handles POST method for entry creation.
+ Add NewEntryForm component
# Contains the form of entry creation and handles the POST request.
+ Add pages/new-entry.js page
# Uses the NewEntryForm component.
+ Add NewEntryButton component
# Opens up the NewEntry page.
! Update pages/index.js page
# Now uses the NewEntryButton component.
! Update pages/content.js page
# Now uses the NewEntryButton component.
! Update pages/api/folder.js api page
# Fix status code typo for POST method.
! Update Breadcrumb component
# Add support for NewEntry page.
! Update RecentUploads component
# Miniscule styling changes.
Please take a moment to review ❤️
Goal: US6 TL; DR: Add
New entry
button at dashboard and content page,New entry
button navigates to/new-entry
page which containsNew entry form
with submit button that sends data to the database aka: and navigates back to dashboard/
route on success!Deployment