Skip to content

Auto-open New Task form when starting a day#52

Merged
AdamJ merged 2 commits intomainfrom
claude/auto-open-task-form-JMkGb
Feb 2, 2026
Merged

Auto-open New Task form when starting a day#52
AdamJ merged 2 commits intomainfrom
claude/auto-open-task-form-JMkGb

Conversation

@AdamJ
Copy link
Owner

@AdamJ AdamJ commented Feb 2, 2026

Summary

This PR implements an auto-open feature for the New Task form when users start a new day, improving the workflow by immediately presenting the task creation interface without requiring an additional click.

Key Changes

  • NewTaskForm Component: Added defaultOpen prop to control initial open state of the form dialog
  • Index Page: Introduced autoOpenTaskForm state that triggers when startDay() is called, passing this state to the NewTaskForm via the defaultOpen prop
  • Documentation: Updated CLAUDE.md to reflect the new auto-open behavior in the time tracking flow diagram and added version 1.0.2 changelog entry
  • Dependencies: Corrected devOptional flags to dev: true for @swc packages in package-lock.json for consistency

Implementation Details

  • The defaultOpen prop defaults to false to maintain backward compatibility
  • When a user confirms the StartDayDialog and handleStartDayWithDateTime() is called, autoOpenTaskForm is set to true
  • This state is passed to NewTaskForm, which initializes its dialog in the open state
  • The flow now reads: Start Day → TimeTrackingContext updates → New Task form auto-opens → User creates tasks

Testing Recommendations

  • Verify the New Task form opens automatically after starting a day
  • Confirm the form can be closed and reopened normally
  • Test that the form still works with defaultOpen={false} in other contexts

https://claude.ai/code/session_01G7jBqP6aRrYSLsiC82pEZW

When a user starts their work day, the New Task form now automatically
opens instead of showing just the collapsed FAB button. This improves
the user experience by reducing the number of clicks needed to create
their first task.

Changes:
- Added defaultOpen prop to NewTaskForm component
- Track auto-open state in Index.tsx when day starts via dialog
- Updated CLAUDE.md time tracking flow documentation

https://claude.ai/code/session_01G7jBqP6aRrYSLsiC82pEZW
@AdamJ AdamJ merged commit c1b98f7 into main Feb 2, 2026
2 checks passed
AdamJ added a commit that referenced this pull request Feb 2, 2026
* feat: Auto-open New Task form when starting a day

When a user starts their work day, the New Task form now automatically
opens instead of showing just the collapsed FAB button. This improves
the user experience by reducing the number of clicks needed to create
their first task.

Changes:
- Added defaultOpen prop to NewTaskForm component
- Track auto-open state in Index.tsx when day starts via dialog
- Updated CLAUDE.md time tracking flow documentation

* chore: update package-lock.json

Updated lockfile from npm install during development.

---------

Co-authored-by: Claude <noreply@anthropic.com>
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