c6p / logseq-habit-tracker

Habit tracker for Logseq
MIT License
95 stars 5 forks source link

Reports of Habits and complete visualization beyond 14 days #2

Closed santiyounger closed 2 years ago

santiyounger commented 2 years ago

Hey! thanks for the awesome plugin. I've been trying to achieve something like this in Logseq for a while, so I'm really happy to have a nice way to visualize my habits.

I'd love to know if there's any way to see beyond the current 2 weeks display image Like shown in the readme screenshot, there are 14 days at any given time.

Would it be possible to have a way to navigate beyond the 14 day limits into the past? or to have ways to know how many days has a habit been done

Or for daily habits, how long have I've kept a perfect streak without missing a day.

Being able to visualize this data or perhaps export it so that it can be visualized in a .csv spreadsheet would be incredible.

Thanks a lot, really appreciate the hard work you've put into this!

c6p commented 2 years ago

Thanks. I was planning to add previous/next 2 weeks buttons, but life intervened.

How many days has a habit done and streaks, are nice touches. The exact day a habit has started may also be shown.

Export to CSV is also a very good idea that I didn't think of before. I need to think about visualizations, maybe I can check other habit tracker applications. Thanks again.

santiyounger commented 2 years ago

awesome! I think the export to .csv would be the best place to start, considering that way the plugin can be immediately super useful for those of use who want to see more advanced reports.

And as the plugin keep progressing more advanced views, would definitely be incredible!

If I come across other apps that do this well I'll let you know for reference.

I'll keep testing out the plugin if I find it beneficial for a wider audience (with some of the .csv suggestions and reports) I'd love to make a video about it in my YouTube channel

Thanks a lot!

c6p commented 2 years ago

@santiyounger added prev/next buttons to at least make it usable beyond 2 weeks.

To implement streaks, CSV and a yearly view, I'm planning a little structural change, stay tuned.

Could you give some info on the structure of CSV desired? Maybe I can provide 2 formats, where habits are columns date, habit1, habit2 ..., and where days are columns. habit, day1, day2 .... CSV will just contain the daily count, or do you want more information?

santiyounger commented 2 years ago

amazing, thank you for adding the prev and next arrows they are super hepful. I get you the CSV comes with it's own challenges, I personally mostly track my habits to know if I did the habit or not that day. So for me it's all about TRUE and FALSE here's what I think would be the ideal structure that I could import into google sheets: image

However I'm aware that this plugin explores more options using current time to show several instances of a habit in one day.

In which case perhaps using numbers where 0 represents FALSE and 1 represents TRUE in the CSV that way those that want to track several instances of a habit in a day would also be able to do that, and it would look something like this image

What do you think? Thanks again for the awesome work!

santiyounger commented 2 years ago

Hey, I just realized that making 2 requests on the same issue was a bad idea, sorry 🙃 considering that now it's possible to go back beyond the previous 14 limits that part of the issue could be considered done.

The aspect of exporting to .csv I think it's pretty important and probably others might like to contribute to it, however since I put it in this same issue it might be hard to find the request for .csv

with that said, let me know if you'd like me to create a new issue for .csv so that you can close this one. or feel free of course to organize things as you prefer and feel free to tag me.

Thank you, love this plugin and I really hope .csv export becomes possible, since that's the only missing piece I have to move my habit tracker to this plugin

thank you!

c6p commented 2 years ago

Sorry for the delay.

Separate issues may have been better. Though, there is no need for it anymore. I think I can implement CSV export within a day. Stay tuned. 😉

c6p commented 2 years ago

@santiyounger check out v0.3.1. If there is any problem, please let me know.

santiyounger commented 2 years ago

hey thanks a lot for this, seems like I lost track of this notification! I just gave it a quick try! incredible work! thanks a lot for working on this

Have a great day!