Add calendar view for tasks by due date #22
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Add a calendar view, parallel to the existing board view, that lays tasks out by
due_dateinstead ofstatus. Same underlying task data and filters as the board view — a different axis of organization, not a separate data model.Scope & Routing
Mirrors board view exactly:
/calendar/— personal calendar/calendar/team/<id>/— team calendarNew
CalendarView, reusingboard_tasks_qs(board)/visible_tasks_qs(user)fromapps/tasks/selectors.pyrather than duplicating query logic.Layout
SavedFilterpersistence. Board's due-date filter is hidden/ignored in calendar mode since month navigation replaces it.Day Cell Content
TaskStatus.color) + truncated title.due_timesort chronologically and show aHH:MMprefix; date-only tasks group together (e.g. top of cell, "all-day").+X more— click expands into a day popover/modal listing the rest.due_date, not done): red/warning accent.is_donestatus): shown, visually muted (strikethrough/greyed) rather than hidden.Interactions
due_date. New endpoint (e.g.POST /calendar/tasks/<pk>/reschedule/) analogous to the existingTaskMoveView; extend the hand-rolled DnD code instatic/app.js(samedragstart/dragover/droppattern used for board cards) rather than pulling in a library.due_date. Drag a dated card into the pane → clearsdue_date(symmetric drop zones, same mental model as board columns).due_datepre-filled to that day.Navigation
?year=2026&month=9) — bookmarkable, shareable, works with browser back/forward.Explicitly out of scope for v1
recurrence_days/recurrence_fromis ignored for calendar purposes — a recurring task shows only on its singledue_date, no virtual/ghost occurrences.Implementation notes
_task_matches_column-style filtering logic, but group bydue_dateinstead of lane/status.templates/calendar/calendar.html(page shell),templates/calendar/_grid.html(day cells),templates/calendar/_no_date_pane.html— reusingtemplates/partials/task_card.htmlwhere feasible (may need a slimmer calendar-specific card variant given cramped cell width).due_timealready exists onTask— no schema change needed for time-of-day sorting.🤖 Generated with Claude Code