nss-evening-cohort-10 / nutshell-star-destroyer

0 stars 1 forks source link

Add Personnel to Mission #84

Open rtate2 opened 4 years ago

rtate2 commented 4 years ago

User Story

As a user, I should be able to add Personnel to a Mission.

Acceptance Criteria

GIVEN the user is logged in and visits the Mission page WHEN they select the appropriate mission THEN click on the View Details within the Personnel section/card AND they click the "Add Personnel" button THEN there will be a modal to create a new Personnel member

Dev Notes

• Create an (addMissionPersonnel)axios.post call in the helpers/data/missionPersonnelData.js file that allow the user to add mission personnel to firebase and the DOM

• Create an Add Personnel button right below the page heading that once clicks opens a modal for the user to input information to create a new mission personnel.

• Create a function that reads the values from the input fields to create a new personnelMember object, and then pass the object to addNewMissionPersonnel

• Update the dom with createMissionPersonnelCard function

• The card styling will be as shown on the mockup below

rtate2 commented 4 years ago

Add Personnel Button mockup Screen Shot 2019-11-26 at 11 35 25 AM