Skip to content

Conversation

@marcelmarais
Copy link
Owner

@marcelmarais marcelmarais commented Jan 4, 2026

Note

Adds a lightweight habit system with persistence and UI integration.

  • New ipc/habit-reader with Habit types and CRUD utilities (createHabit, deleteHabit, incrementCompletion, decrementCompletion), period helpers, and storage in habits.json via @tauri-apps/plugin-store
  • New hooks in hooks/use-habits for fetching and mutating habits with optimistic cache updates
  • New UI: CreateHabitDialog and HabitOverlay to view and adjust completions inline
  • Integrated habits UI into markdown-file-card and FocusedFileOverlay (open dialog, show per-day totals)
  • Settings: added HabitsCard to list/add/delete habits with confirmation
  • Bump src-tauri/tauri.conf.json version to 0.2.4

Written by Cursor Bugbot for commit fba6035. This will update automatically on new commits. Configure here.

marcelatjamie added 2 commits January 4, 2026 22:52
…itOverlay components

- Implemented CreateHabitDialog for creating new habits with validation and success/error feedback.
- Added HabitOverlay to display and manage habits for a specific date, including incrementing and decrementing completions.
- Integrated habit management hooks for fetching, creating, and deleting habits.
- Updated SettingsDialog to include habit management features.
- Enhanced FileCard and FocusedFileOverlay to support habit creation and display.
@marcelmarais marcelmarais merged commit 20dd242 into main Jan 4, 2026
2 of 3 checks passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

<span className="ml-2 text-foreground">
({todayCount} today)
</span>
)}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misleading "today" label for historical date views

The habit overlay displays todayCount with the label "today" and uses getPeriodLabel() which returns "today", "this week", or "this month" - but these labels are incorrect when viewing historical files. The date prop comes from file.dateFromFilename, which can be any past or future date. When viewing a file from December 25th, the UI would show "(3 today)" when the count is actually for December 25th, not today. Similarly, getPeriodLabel always returns present-tense labels regardless of the actual date being viewed, causing user confusion when tracking historical habit data.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants