willayy / DAT257-Agile

Agile project in DAT257
1 stars 0 forks source link

US-003 Create Event List Item #8

Closed 0-Gixty-0 closed 6 months ago

0-Gixty-0 commented 6 months ago

What:

A concise and wide react component containing the following information from the police event api:

Uses a "show more" button to display and hide additional information which includes explicit type, GPS location, and link to event on police webpage. A CSS stylesheet has also been created for the component.

How:

Created through a new .tsx file called EventCard as a client side react component. Uses "useState" hook to implement show more functionality.

Why:

To be able to view and look through many police events it is important that they are clear, concise, and small. The component has been made in such a way that it can be stacked vertically with the show more button being used to keep the entry concise and easy to sift through. In general the component is created to be used in a list.

0-Gixty-0 commented 6 months ago

I have included the test route with included test data for reviewing purposes. It is not necessary to merge it. However, it could be useful to see an example before integrating the component into other tasks and user stories. I leave this decision up to the reviewer and the rest of the group.