The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
This PR adds client side validation and resolves edge case issues.
User cannot submit empty thoughts, chat messages, or edits.
If there are no entries available, disable chat and ensure all components are not attempting to render components that require entry data.
Additionally, this PR adds additional eslint rules to practice standardized coding styles.
Double and single quotes were both used in various places, now single quotes are used in JavaScript code blocks, and double quotes are used in React components.
File imports and props are now sorted alphabetically.
See .eslintrc.cjs for additional newly added rules.
This PR adds client side validation and resolves edge case issues.
Additionally, this PR adds additional eslint rules to practice standardized coding styles.
.eslintrc.cjs
for additional newly added rules.