cognovi-ai / 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

Get Analysis for an Entry. #4

Closed hiyaryan closed 10 months ago

hiyaryan commented 10 months ago

This PR adds a focus button icon to each entry. When pressed, a new analysis view appears in place of the thought list. The user can then see the entry content followed by the analysis of the thought below.

This PR also adds the initial chat text area below analysis section, this is in work on the conversations branch.

Additionally, a bug that made infinite requests for the list of entries was produced from calling the useEffect hook on the Entries component every time the entries state was updated. This was fixed by passing setEntries as a prop to the Entry component that is used to create a new entry.