hiyaryan / the-cdj

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!!
https://thecdj.app
3 stars 0 forks source link

Disable Thoughts toolbar for every analysis generation. #56

Closed hiyaryan closed 7 months ago

hiyaryan commented 7 months ago

This PR resolves #53. It pulls isSubmitting state variable in Thoughts component up to parent, Index, to be accessible in Analysis component and set true when a new analysis is being generated disabling the Thoughts toolbar. This makes it so that the user must wait for the analysis to be generated for an entry in order to navigate away.

This is a simple fix for v1. In later versions, idealistically the user would be able to navigate to another page or thought, and once their thought has be re-analyzed, they would be prompted with a link that would allow them to navigate back to the post for review. This gives them the option to do something else while they wait for their post.