Skip to content

feat(schedule): due date editing, notes Save/Edit, and notes persistence fix - #111

Merged
romahawk merged 2 commits into
mainfrom
feat/schedule-unschedule-due-date
Jun 28, 2026
Merged

feat(schedule): due date editing, notes Save/Edit, and notes persistence fix#111
romahawk merged 2 commits into
mainfrom
feat/schedule-unschedule-due-date

Conversation

@romahawk

@romahawk romahawk commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • × button on due date chip — clears dueDate + time slot, moves task back to Unscheduled list
  • Editable due date field — replaces the read-only chip with a <input type="date"> so the date can be changed directly in the panel; × button still unschedules
  • Explicit Save/Edit flow for notes — textarea with a "Save notes" button (appears when text is entered); after saving, notes render read-only with an "Edit" button to re-enter edit mode
  • Notes persistence fix — moved notes storage from TimeBlock.notes to Task.notes; updateTask was rebuilding the linked TimeBlock from scratch on every category/title/time change, silently wiping any saved notes

Root cause (notes wipe)

updateTask in the store reconstructs the linked TimeBlock at lines 1118–1131 with an explicit field list that never included notes. Any edit to category, description, due date, or times would overwrite the block — and notes — without warning. Task updates use { ...current, ...updates }, so fields absent from updates are always preserved.

Test plan

  • Click a scheduled block → verify the Due date field is editable and changes persist
  • Click × on the due date → verify panel closes and task appears in Unscheduled list
  • Type notes → "Save notes" button appears → click it → notes render in read-only view
  • Click "Edit" → textarea reopens with existing notes → edit and save again
  • Switch to another block and back → verify notes are still there
  • Change Category or Description after saving notes → switch away and back → verify notes survive

🤖 Generated with Claude Code

romahawk and others added 2 commits June 28, 2026 11:59
Clicking × on the due date chip clears dueDate and the time slot,
moving the task back into the Unscheduled tasks list and closing
the edit panel.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
magic-kick Ready Ready Preview, Comment Jun 28, 2026 10:02am
magic-kick-kfb8 Ready Ready Preview, Comment Jun 28, 2026 10:02am

@romahawk
romahawk merged commit f764d57 into main Jun 28, 2026
5 checks passed
@romahawk romahawk changed the title feat(schedule): × button on due date chip to unschedule task feat(schedule): editable due date in block edit panel Jun 28, 2026
@romahawk romahawk changed the title feat(schedule): editable due date in block edit panel feat(schedule): due date editing, notes Save/Edit, and notes persistence fix Jun 29, 2026
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.

1 participant