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

Make Recent Thoughts recent. #77

Open hiyaryan opened 7 months ago

hiyaryan commented 7 months ago

Currently the Recent Thoughts section lists all of the users thoughts. This could lead to very long load times as the journal entries grow.

There are a few options to consider when showing which thoughts are considered recent. It could be the latest 10 entries, or all of the entries posted that day.

Right now I'm leaning toward making it 10 then loading more as the user hits the bottom of the entries box. This will require an infinite scroll effect. Ensure that no errors are thrown if there are no entries to fetch because no entries have been made yet or because the user has scrolled to the very first one.