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

Update data associated with various journal components. #33

Closed hiyaryan closed 9 months ago

hiyaryan commented 9 months ago

This PR provides the opportunity to allow the user to update smaller areas of their journal.

The first commit allows the user to update their journal title. It does this by creating a new access endpoint to a specific journal and updates it by accepted request body fields. Currently the only accepted field is the journal title but this is where top level journal settings may be updated conveniently if any more are added.

The journal title may be updated by clicking on journal title in the Entries view page to reveal a TextField used to update the journal title. To update it, the user simply clicks outside of the TextField or may press enter. The Escape button escapes the updating and returns the title to the previous title.

A successful update returns a flash message from the server saying the Title has been updated.

hiyaryan commented 9 months ago

The final commits of this PR do the following