Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
645 stars 103 forks source link

feat(tooltips): add the date as a tooltip #20

Closed s-blu closed 2 years ago

s-blu commented 2 years ago

Hello!

Thank you for your neat plugin! :) I'm using it for tracking several metadata I collect in my dailies. Sometimes I have gaps in these overviews and find it very hard to figure out which date is lacking the data. To battle this problem I added a basic tooltip displaying the localized date of the box and a little hover effect to see if I'm on the right box.

Maybe you want to consider adding this change to the plugin so others can use it as well. I also allowed myself to do a little refactor to get rid of some code duplication, I hope you don't mind. I'm open for suggestions of improvements and hope, if that's in your interest as well, to contribute a few more things to this plugin, if my time allows.

You're having no ongoing development branch, if I see that right, so I'm opening this request against the master.

Have a good weekend!

Richardsl commented 2 years ago

hi, can you add a screenshot?

s-blu commented 2 years ago

Hello Richard,

of course! The hover effect looks like this:

grafik

or, to see it in action: obsidianheatmap-showtooltips

Mind that the tooltip is produced by running toLocaleDateString, so the tooltip is in the german date format in my case.

s-blu commented 2 years ago

Since the main branch has changed incompatible to these changes and I didn't received feedback if this functionality is desired, I close this Pull Request for now. If this functionality should be added to the main repository after all, feel free to reach out to me and I'll try to update the branch with the latest changes!