nss-evening-cohort-11 / nutshell-ewoks-droids

Star Destroyer
0 stars 2 forks source link

View Personnel, Weapons, Planetary Sectors, and Enemy targets associated with Mission #115

Open Nikababy01 opened 4 years ago

Nikababy01 commented 4 years ago

USER STORY

As a user, when I select a Mission I should be able to view all Personnel, Weapons, Planetary Sectors and Enemy targets associated with that Mission.

AC

WHEN the page loads I should see all boards THEN click a button to see all missions AND click a button to return back to mission

WIREFRAMES

image

DEV NOTES


*create a div in index.html with an id of 'the-mission, add a class of "hide"
*update authData.checkLoginStatus and add removeClass into the if statement for 'the-mission'
*create a 'mission' component with a function called 'printMission' add this function to the export default
*'printMission' should call missionData.getAllMissions promise 'console.error('unable to get mission')
*on success of 'missionData.getAllMissions' promise should build up a 'domString' with a h2 tag and loop over all the mission and for each mission l call 'missionComponent.buildMission'
*Create 'missionComponent' - make 'buildMission' function and export it
*'buildMission' should return a 'domString' that is a card for the mission
*'printMission' should call 'utils.printToDom' and pass in 'the-mission' as the id

RELATED TICKETS

EX. #1