As a user, I should be able to Add a reference to a News article onto my dashboard.
Acceptance Criteria
GIVEN a user wants to record a news article on their dashboard
WHEN the user performs clicks on the add News Post
THEN a popup modal with a form should be presented to the user in which the following information can be entered
News title
Synopsis
URL
GIVEN a user has entered in all field values for creating a new article
WHEN the user performs clicks on the Save button
THEN the article should be saved in the database, and assigned to the user
Developer Notes
Create an Add News button with an addEventListener that calls a modal.
Create a Save button with an addEventListener that makes an Axios.post request that adds News Feed to firebase.
Create a Cancel Button that closes the modal without saving any data.
Create formStringBuilder function to add an html form to the modal. The form should have three inputs elements for News Title, Synopsis, URL.
User Story
As a user, I should be able to Add a reference to a News article onto my dashboard.
Acceptance Criteria
GIVEN a user wants to record a news article on their dashboard WHEN the user performs clicks on the add News Post THEN a popup modal with a form should be presented to the user in which the following information can be entered
News title Synopsis URL
GIVEN a user has entered in all field values for creating a new article WHEN the user performs clicks on the Save button THEN the article should be saved in the database, and assigned to the user
Developer Notes