Skip to content

Resources

Raymond Vo edited this page Dec 13, 2018 · 2 revisions

Overview

The resource page is supposed to provide links regarding to each category of the self assessment to help the user improve in their transition into civilian life. It shows the user their lowest scoring category and the score and recommends that he/she starts there. To view the links for each category, the user clicks on the "Learn more" link which should open up a text box containing links. Currently, there are only mock resources.

Getting data

Makes an http request to get the user's self assessment history and iterates through all of it's values, getting the lowest score and its key (currently it only goes through the 0th index of the chart history). It also puts the lowest score and category in the user's backend data model.

Categories

Each self assessment category is created in the "resources" array variable, with each item being an object with the title and message. The information in each object is displayed as a category. When the user clicks on "Learn more" on a category, it opens up a modal with mock data/links.

Clone this wiki locally