Skip to content

Period logging improvements + Track Against Time feature#60

Merged
mapgie merged 3 commits into
mainfrom
claude/period-logging-time-tracking-itTyL
May 30, 2026
Merged

Period logging improvements + Track Against Time feature#60
mapgie merged 3 commits into
mainfrom
claude/period-logging-time-tracking-itTyL

Conversation

@mapgie
Copy link
Copy Markdown
Owner

@mapgie mapgie commented May 30, 2026

Summary

Bugs fixed

  • Period log save on back: BackHandler + "Unsaved changes?" dialog prevents data loss when navigating away from a partially-filled period log screen
  • Flow & Symptoms label names: Section headers in the period log screen now read the user-chosen category name from the database (survives renames)
  • Multiple logs per day displayed inline: Day view groups all log entries for the same category into a single row with values joined by ·
  • Beta banner text: Hyperlinked text shortened from "Feedback / Bug reports / Feature suggestions welcome." to "Feedback encouraged."

New features

  1. Stats — time series for numeric categories: "Over Time" chart type is now available for single numeric, dual numeric, and dual mixed-type category combinations
  2. Track Against Time — new per-category setting:
    • Toggle in category settings ("Track against time") for all category types
    • On the log screen, a pre-ticked "Track against time" checkbox appears when the category has this enabled; unchecking it omits the timestamp for that entry
    • For Plus One (increment) categories with this enabled: each +1 tap immediately saves a new timestamped log entry; the screen lists all taps for the day with a remove button
    • In the day log sheet: 3-dot menu appears when any category has time-tracked entries → "Display logs against time" toggle → switches display to HH:mm Value stacked per category

Data layer

  • DB migration 11→12: adds trackAgainstTime (Boolean) to tracking_categories and loggedAt (String, HH:mm) to tracking_logs

Test plan

  • Create/edit a period log, tap back — confirm "Unsaved changes?" dialog appears; Save saves, Discard discards
  • Rename the Flow category in Settings → confirm new name appears in the period log screen Flow section header
  • Log the same category multiple times in a day (with "Allow multiple" on) → day sheet shows values inline
  • Check Beta banner on Stats/History/Settings screens — link text reads "Feedback encouraged."
  • Stats: select a numeric category → confirm "Over Time" option appears alongside Average/Distribution
  • In category settings, enable "Track against time" → log the category → confirm time is stored and shown in day sheet when "Display logs against time" is toggled
  • For a Plus One category with "Track against time" on: log screen shows immediate-save +1 button with a time list

https://claude.ai/code/session_01WgaDZkVLmLkW95574Rdapf


Generated by Claude Code

claude added 3 commits May 30, 2026 18:49
Bugs fixed:
- Period log screen now prompts to save on back navigation (data loss prevention)
- Flow & Symptoms labels in period log screen now reflect user-chosen names
- Day view groups multiple logs per category inline (·-separated values)
- Beta banner link text shortened to "Feedback encouraged"

New features:
- Stats: TIME_SERIES chart type added for single/dual numeric categories
- Track Against Time: new category setting that records HH:mm with each log entry
  - Toggle in category settings for all category types
  - Pre-ticked "Track against time" checkbox on the log screen
  - Day log 3-dot menu: "Display logs against time" shows timestamped entries
  - Increment + trackAgainstTime: each tap saves a new timestamped entry immediately
- DB migration 11→12 adds trackAgainstTime to tracking_categories and loggedAt to tracking_logs

https://claude.ai/code/session_01WgaDZkVLmLkW95574Rdapf
When an increment category has trackAgainstTime enabled, each quick-tap
from the home screen now saves a separate timestamped log entry (matching
the full log screen behavior) instead of upsetting a shared counter.
Undo is also updated: for timed entries it deletes the specific log row
rather than decrementing the counter.

https://claude.ai/code/session_01WgaDZkVLmLkW95574Rdapf
@mapgie mapgie merged commit b55b3b6 into main May 30, 2026
4 checks passed
@mapgie mapgie deleted the claude/period-logging-time-tracking-itTyL branch May 30, 2026 20:05
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