As a user, when I select a Mission I should be able to view all Personnel, Weapons, Planetary Systems and Enemy targets associated with that Mission.
AC
Given a user visits the missions page they can select and view a mission's detailed info on the dashboard by clicking the View Details on the mission card
Then a user will see the 4 main parts of a single mission as cards
AND a user can click on whatever part of a mission card View Details and see the detailed information about that part Below is Enemy Only
Dev Notes
Create ra-starSmash branch
Create smash.js file in src/javascripts/helpers/datafile
Create getCompleteMission Function with new Promise
getMissionsById
getEnemiesById
-getMissionWeaponsByIdMissionId
-getMissionPersonnelMissionId
-getPlanetarySystemById
-chain these with .then until I have build up the structure of the object I need back from firebase (it will be an array of mission objects)
-forEach loop over the built object
This will make up the card info we want on the DOM as our Mission Card Details
Instead of getAlls, you should be using getById (one) except for personnel and weapons which will have a collection coming back you will need to iterate over.
User Story
As a user, when I select a Mission I should be able to view all Personnel, Weapons, Planetary Systems and Enemy targets associated with that Mission.
AC
Given a user visits the missions page they can select and view a mission's detailed info on the dashboard by clicking the
View Details
on the mission cardThen a user will see the 4 main parts of a single mission as cards
AND a user can click on whatever part of a mission card
View Details
and see the detailed information about that part Below is Enemy OnlyDev Notes
smash.js
file insrc/javascripts/helpers/data
filegetCompleteMission
Function withnew Promise
.then
until I have build up the structure of the object I need back from firebase (it will be an array of mission objects) -forEach loop over the built object