Skip to content

feat(TaskBody): toggle subtasks by clicking the open task - #3304

Open
raffaelemancuso wants to merge 1 commit into
nextcloud:mainfrom
raffaelemancuso:feat/toggle-subtasks-of-open-task
Open

raffaelemancuso wants to merge 1 commit into
nextcloud:mainfrom
raffaelemancuso:feat/toggle-subtasks-of-open-task

Conversation

@raffaelemancuso

Copy link
Copy Markdown

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-HIDESUBTASKS property). 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-by trailer.

🤖 Generated with Claude Code

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>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant