CBASP Companion is an app designed to support people with chronic depression undergoing Cognitive Behavioral Analysis System of Psychotherapy (CBASP) therapy by giving them an app to do different situation-analyses. This App-Project is part of my Capstoneproject for 🐠 @NeueFische's WebDevelopment Bootcamp
As an User
I want to see a start-screen
So that I can go to "My Analyses" and choose there between my different analyses (right now from the data-array)
Description
Acceptance criteria
I want to a button on the page that redirects me to my analyses overview
I want to be able to click on it
Tasks
Create the home-page at pages/index.js
create a button "Meine Analysen"
redirect me to the page "Meine Analysen" from US6 - pages/myanalyses
As an User
I want to have a page with all my Kieslerkreis-Results
So that I can see my behavior, my wanted behavior and more information about the kieslerkreis
Description
Acceptance criteria
have a new page where i see the kieslerkreis
have the results from the entries mapped on the kieslerkreis
take the results from behaviorKieslerkreis and behaviorChangedKieslerkreis
have a description about the kieslerkreis to the bottom
As an User
I want to click on "Innere Situationsanalyse"
So that I can start filling out everything for a new Innere Situationsanalyse/InnerSituationAnalysis
Description
Acceptance criteria
have the fields to be required so i can not submit an empty form
take at least 1 interpretation
have a max. amount of symbols on the input fields
have the max. amount set to 500 for tall fields and to 200 for shorter inputs
in the revision part have fields with the interpretations as values and the posibility for me to revise these interpretations and change them
on submit save the files to an array "entries" with an unique id and type: "InnerSituationAnalysis"
use the entry-component to display the submitted data under the form
Tasks
create the if-case to render the form by click on the radio-button "Innere Situationsanalyse"
render the form for the Innere Situationsanalyse by using descriptions and headlines according to the analysis-type
create input-fields and give them the prop long or short
give the long-input-fields the maxlength 500
give the short-input-fields the maxlength 200
create a submit-function
add the data to allEntries with destructuring and setAllEntries
redirect in the submit-function to the entry-page by using the [id].js-dynamic-route
As an User
I want to get "Action Interpretations" from older analyses as I type
So that I can see and choose previous Action Interpretations if one fits for this analysis again
Description
Acceptance criteria
add the input & functionality to the input forms "Vergangenheitsanalyse", Zukunftsanalyse" "Innere Situationsanalyse"
let the user type into the input field
As the user types have a dropdown appear where he can choose fitting interpretations
Tasks
create a array with all older actionInterpretations
with onChange or onInput create a function that searches the array for the string the user inputs