hedonihilist / obsidian-habit-calendar

Monthly Habit Calendar for DataviewJS. This plugin helps you render a calendar inside DataviewJS code block, showing your habit status within a month.
MIT License
30 stars 4 forks source link

Bug in Habit Tracker - Two Calendars on One Page Rendering Issue #1

Open afrolino02 opened 1 year ago

afrolino02 commented 1 year ago

When attempting to use the Habit Tracker feature with two calendars displayed on a single webpage, a critical bug is encountered. The bug causes only one calendar to render, and the selected date appears simultaneously on both calendars. This issue significantly impacts the functionality and usability of the Habit Tracker, rendering it ineffective for users who rely on multiple calendars for different purposes.

Steps to Reproduce:

Navigate to the Habit Tracker section of the application. Add or edit an existing habit that requires tracking on specific dates. On the same pa, attempt to display two separate calendars side by side. Observe that only one calendar is rendered. When a date is selected on one calendar, it is also highlighted on the other calendar. Expected Behavior: Each calendar should render independently with the ability to select and track dates unique to each calendar. The calendars should not interfere with each other's rendering or date selection.

Actual Behavior: The presence of two calendars on the same page results in the rendering of only one calendar. Furthermore, the date selection made on one calendar is mirrored on the other calendar, indicating a synchronization issue.

Additional Information: This bug severely impairs the usefulness of the Habit Tracker, particularly for users who rely on multiple calendars to segregate various types of activities or habits. The expected behavior should allow users to simultaneously manage different habits on separate calendars without any unintended interaction.

Environment:

Operating System: Debian linux and Windows 10 Habit Tracker Application Version: 1.2.0 Screenshots: image

image

Currently, the Habit Tracker's calendar feature only supports rendering a single date at a time. I would like to request an enhancement that allows rendering multiple dates simultaneously.

hedonihilist commented 1 year ago

Thanks for raising the issue @afrolino02 and sorry for the delayed reply. I haven't got time for this. Could you please provide more info such as how do you manage to display the calendars side by side? Could you leave some example code so that I can reproduce it and maybe fix it?