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 and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
3 stars 0 forks source link

Update data associated with various journal components. #33

Closed hiyaryan closed 11 months ago

hiyaryan commented 11 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 11 months ago

The final commits of this PR do the following