Repository navigation
feat(TaskBody): toggle subtasks by clicking the open task - #3304
raffaelemancuso wants to merge 1 commit into
Conversation
Clicking a task that is already open in the details view did nothing. It now hides or shows the task's subtasks, like "Hide subtasks" and "Show subtasks" in the actions menu, and the details view stays open. Opening the task again shows its subtasks, as before. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Raffaele Mancuso <54762742+raffaelemancuso@users.noreply.github.com>
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Clicking a task that is already open in the details view currently does nothing, and the open task always shows its subtasks, so it cannot be folded from the list (see #2028).
With this change, clicking the title area of the open task hides or shows its subtasks, like "Hide subtasks" / "Show subtasks" in the actions menu (same
X-OC-HIDESUBTASKSproperty). The details view stays open, and opening the task again later shows its subtasks as before.Unchanged: clicks on tasks that are not open (they still open them), tasks without subtasks, the checkbox, tags and actions menu, and double click to edit the summary (the second click of a double click is ignored; a double click on a task that is already open still toggles once before editing).
Tests: new
tests/javascript/unit/components/TaskBody.spec.js(5 tests, 4 of them fail without the change); the full suite and eslint pass.AI disclosure: the code, the tests and this description were drafted with Claude Code (claude-opus-5-5), as recorded in the
Assisted-bytrailer.🤖 Generated with Claude Code