dimitriosxmi / ArtistsReferenceOrganizer

Neue Fische Capstone Project
https://artists-reference-organizer.vercel.app
0 stars 0 forks source link

Feature/us6/new entry button and form #25

Closed dimitriosxmi closed 1 year ago

dimitriosxmi commented 1 year ago

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 contains New entry form with submit button that sends data to the database aka: Screenshot_9 and navigates back to dashboard / route on success!

Deployment

+ 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.
CarstenJahnke commented 1 year ago

Nice Work Bro! 👍