Skip to content

feat(calendar): snap drag-create and move/resize to rounding (#893) - #895

Merged
evilguy4000 merged 2 commits into
developfrom
feat/calendar-dnd-rounding-893
Nov 19, 2026
Merged

evilguy4000 merged 2 commits into
developfrom
feat/calendar-dnd-rounding-893

Conversation

@evilguy4000

Copy link
Copy Markdown
Collaborator

Summary

  • Snap calendar drag-create / move / resize to the user’s effective time-rounding interval (15-minute UI default when rounding is off or 1 minute)
  • Port time-entry drag-select, move, and resize into the sidebar /calendar day/week view, with clearer drop-ghost + time-label feedback
  • Fix PUT /api/entry/<id> so FullCalendar toISOString() payloads actually update start/end (invalid times now return 400 instead of a silent success)

Closes #893

Test plan

  • Open Calendar → Calendar View (/calendar?view=week), hard-refresh
  • Drag an empty range → create modal opens with snapped times; create a time entry for a project
  • Drag and resize an existing time entry; times persist after reload
  • Confirm snap matches user rounding (e.g. 5/10/15/30/60); with rounding off, snap is 15 minutes
  • Drop ghost shows the snapped range label while dragging
  • Planning events still move/resize; New Event still creates planning events
  • Optional: /timer/calendar still snaps and move/resize still persists
  • pytest tests/test_timer_calendar_snap.py -q

Wire timer and sidebar calendars to the user's rounding interval, fix
entry updates ignoring FullCalendar ISO timestamps, and add clear drop
ghost feedback so snapped slots are visible while dragging.
Add user-datetime-input to the drag-create start/end fields so they
match the app convention checked by test_all_datetime_local_inputs_are_prefs_aware.
@evilguy4000
evilguy4000 merged commit aaeb202 into develop Nov 19, 2026
27 checks passed
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.

Add Drag-and-Drop Time Entry Creation in Weekly Calendar View

1 participant