Open jisie opened 5 years ago
We need a fetch to get all news articles
New Article form including inputs, labels, and buttons to satisfy the below content:
Check for empty fields Save/ Add button and listener Each article needs to refer to the user who created it. Timestamp needed Sort descending order by timestamp prior to loading the dashboard Populate on the dash in a News List( also involves another fetch) Delete button available for ea News Article
Story
As a user, I should be able to list interesting news articles on my dashboard
Acceptance Criteria
Given a user wants to record a news article on their dashboard When the user performs a gesture on a
New Article
affordance Then a form should be presented to the user in which the following information can be enteredGiven a user has entered in all field values for storing a new article When the user performs a gesture on the
Save Article
affordance Then the article should be saved in the database, and assigned to the user And should have a property of the current timestampGiven a user has saved news articles When the user visits their dashboard Then the news articles should be presented in the
News
components, sorted by date in descending order And each article should have an affordance to delete the news articleGiven a user wants to remove a previously stored news article When the user performs a gesture on the delete affordance Then the article should be deleted