ancasimon / travel-diary

This project is an online journal that allows users to keep track of destinations on their bucket list and then capture diary entries when they actually get to visit these sites. It was further practice with using data from multiple collections in a Firebase database.
https://traveldiary-78295.web.app/#
1 stars 0 forks source link

Build diary #12

Closed ancasimon closed 4 years ago

ancasimon commented 4 years ago

User Story

As a user, when I am on the Home Page, I can see a Diary section that includes a descending (by timestamp) list of cards listing places I have already been with the following details: the name of the location from the card the user was typing in, the text that was in the text box from that card, timestamp for when the diary entry was created.

AC

WHEN I look at a the Diary section below the Destinations section, THEN I see a list of diary entries, AND each diary entry displays the following: location name, timestamp of when I created it/ clicked Submit, and the notes I entered in the input box, AND all the entries are displayed in ascending order base on their timestamp (Req: "Newest entries should appear at the bottom.")

Dev Notes

ancasimon commented 4 years ago

An article that helped me figure out how to transform the dates into timestamps and compare them and sort them correctly! https://www.codementor.io/@robertwozniak/javascript-story-sorting-records-by-dates-pf8oev5iy