Skip to content

feat: Add "Clone card" feature for Decker task cards#222

Merged
erseco merged 6 commits intomainfrom
copilot/add-clone-card-feature
Mar 6, 2026
Merged

feat: Add "Clone card" feature for Decker task cards#222
erseco merged 6 commits intomainfrom
copilot/add-clone-card-feature

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 5, 2026

  • Add clone_task() static method to Decker_Tasks class (PHP backend)
  • Add REST API endpoint POST /decker/v1/tasks/{id}/clone with capability checks
  • Add "Clone" menu item to task card context menu (class-task.php render_task_menu)
  • Add JS handler for clone action in footer-scripts.php and task-card.js
  • Add localized strings for clone action in class-decker-public.php
  • Add Spanish translations in languages/decker-es_ES.po
  • Write unit tests for clone functionality (9 test cases)
  • After cloning, open the task modal with the cloned task instead of reloading
  • Add missing Spanish translation for 'Task not found.' string
  • Regenerate MO file

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 5, 2026 12:46
…dler, and tests

Co-authored-by: erseco <1876752+erseco@users.noreply.github.com>
Co-authored-by: erseco <1876752+erseco@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Clone card feature for Decker task cards feat: Add "Clone card" feature for Decker task cards Mar 5, 2026
@erseco
Copy link
Copy Markdown
Contributor

erseco commented Mar 5, 2026

@copilot after cloning the task open the modal with the cloned task

Copilot AI and others added 2 commits March 5, 2026 12:55
Co-authored-by: erseco <1876752+erseco@users.noreply.github.com>
…al transition

Co-authored-by: erseco <1876752+erseco@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 5, 2026

@copilot after cloning the task open the modal with the cloned task

Updated in 0a07190. After cloning, the handler now closes any open task modal and opens it with the cloned task using Bootstrap's hidden.bs.modal event for reliable modal transition. If no modal is open (e.g. cloning from board card), it directly opens the modal with the new task.

@erseco
Copy link
Copy Markdown
Contributor

erseco commented Mar 5, 2026

@copilot add the Spanish unstranslated strings

Co-authored-by: erseco <1876752+erseco@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 5, 2026

@copilot add the Spanish unstranslated strings

Added in 2a4ec6e. The missing Spanish translation for "Task not found." (with period, used in the clone REST endpoint) has been added to the PO file and the MO file has been regenerated. All strings from the clone feature now have Spanish translations.

@erseco erseco marked this pull request as ready for review March 5, 2026 23:52
@erseco erseco merged commit 2fb1eb0 into main Mar 6, 2026
7 checks passed
@erseco erseco deleted the copilot/add-clone-card-feature branch March 6, 2026 08:37
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.

2 participants