Skip to content

feat: add duplicate task button to BackdatedEntryDialog#152

Merged
AdamJ merged 1 commit into
mainfrom
feat/duplicate-task-backdated-entry
May 28, 2026
Merged

feat: add duplicate task button to BackdatedEntryDialog#152
AdamJ merged 1 commit into
mainfrom
feat/duplicate-task-backdated-entry

Conversation

@AdamJ
Copy link
Copy Markdown
Owner

@AdamJ AdamJ commented May 28, 2026

Summary

  • Adds a duplicate task button (copy icon) on each task row in the Add Past Entry dialog — inserts a clone immediately below with same times, project, category, description, and a (copy) title suffix for easy identification
  • Fixes validation bypass: isValid = errors.length === 0 || trueisValid = errors.length === 0 so the Submit button correctly disables when there are validation errors

Test plan

  • Open Archive → Add Past Entry
  • Add a task with title, times, project/category
  • Click the copy icon — verify duplicate appears below with (copy) suffix and same field values
  • Verify copy button visible on single task (no remove button yet shown)
  • Submit with empty task title — verify Submit is disabled
  • Submit valid form — verify saves and dialog closes

🤖 Generated with Claude Code

Adds a copy icon button on each task row that inserts a clone of the
task immediately below it, pre-filled with the same times, project,
category, and description. The cloned title gets a " (copy)" suffix
so users can distinguish it before editing.

Also fixes the disabled validation bypass (`isValid = ... || true`)
so the Submit button correctly blocks submission when errors exist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying timetrackerpro with  Cloudflare Pages  Cloudflare Pages

Latest commit: 12d2a8a
Status: ✅  Deploy successful!
Preview URL: https://6dffede7.timetrackerpro.pages.dev
Branch Preview URL: https://feat-duplicate-task-backdate.timetrackerpro.pages.dev

View logs

@AdamJ AdamJ added the enhancement New feature or request label May 28, 2026
@github-project-automation github-project-automation Bot moved this to To triage in TimeTrackerPro May 28, 2026
@AdamJ AdamJ merged commit 6c1da54 into main May 28, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from To triage to Done in TimeTrackerPro May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant