Skip to content

feat: allow adding tasks to archived days - #271

Merged
AdamJ merged 2 commits into
mainfrom
edit-archive-tasks
Oct 12, 2026
Merged

AdamJ merged 2 commits into
mainfrom
edit-archive-tasks

Conversation

@AdamJ

@AdamJ AdamJ commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Users are now able to add tasks to archived days.

Type of Change

  • New feature
  • Update to existing feature
  • Bug fix
  • Documentation update
  • Other (describe below)

Related Issue

Closes #

Changes Made

Context (TimeTrackingContext.tsx):

  • New addTaskToArchivedDay(dayId, task) method that appends a task to an archived day's task list, recalculates totalDuration, and persists via updateArchivedDay

ArchiveEditDialog (ArchiveEditDialog.tsx):

  • "Add Task" button in the Tasks card header — toggles an inline form row
  • Inline form with title, description (Markdown), category, project, start/end time fields
  • Uses the same components as the existing task edit form (ResponsiveSelect, TimePicker, MarkdownDisplay)
  • Defaults start time to the day's start time and end time to +1 hour when opening the form
  • On submit, creates a new Task with a random ID and saves it to the archived day
    Cancelling resets the form state

Checklist

Complete all items that apply to your change. Check N/A for items that don't apply.

Documentation

Run sync-docs skill with Claude Code to automatically update relevant files.

  • Any notable changes added to the README.md
  • CHANGELOG.md updated accordingly
  • N/A — no README changes

General

  • Branch is up to date with main
  • No unrelated files included in this PR
  • Tested locally by invoking the pnpm test, pnpm lint, and pnpm build

Notes for Reviewers

@AdamJ AdamJ added this to Timetraked Oct 12, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Timetraked Oct 12, 2026
@AdamJ AdamJ self-assigned this Oct 12, 2026
@AdamJ AdamJ moved this from Backlog to In review in Timetraked Oct 12, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Deploying timetrackerpro with  Cloudflare Pages  Cloudflare Pages

Latest commit: 86089be
Status: ✅  Deploy successful!
Preview URL: https://7992b27e.timetrackerpro.pages.dev
Branch Preview URL: https://edit-archive-tasks.timetrackerpro.pages.dev

View logs

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 12, 2026
@AdamJ
AdamJ force-pushed the edit-archive-tasks branch 2 times, most recently from 8df4cc6 to 86089be Compare October 12, 2026 14:07
@AdamJ
AdamJ merged commit 2f49f21 into main Oct 12, 2026
5 checks passed
@AdamJ
AdamJ deleted the edit-archive-tasks branch October 12, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation frontend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant