Skip to content

Conversation

@KebabRonin
Copy link

@KebabRonin KebabRonin commented May 29, 2025

This PR changes the TaskManagerClass page, so it will take a long time to upgrade.

(Reopened from #214 )

KebabRonin and others added 8 commits April 9, 2025 14:49
* Update Task livetable to have the same filter excluding 'Template' pages as Kanban, Task Dependencies and Gantt
* Added TaskTemplateList page
* Changed how title works for Template tasks
* Added Create Template button
* Formatting
* Exclude templates from task panel
* Move TaskManagerTemplate to Template space
* Formatting
* Added task template section to admin section
@KebabRonin KebabRonin self-assigned this May 29, 2025
@KebabRonin KebabRonin linked an issue May 29, 2025 that may be closed by this pull request
@trrenty
Copy link

trrenty commented Oct 27, 2025

It doesnt seem to actually change the task manager class

@KebabRonin
Copy link
Author

It used to change a query on a custom displayer for dependencies in the TaskManagerClass. Now that the displayers were moved to separate pages, it doesn't affect the class anymore

Copy link

@trrenty trrenty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I didn't see you prepared the PR for merge

]
});
require(['jquery', 'xwiki-l10n!xwiki-task-template-list-notification-messages'], function ($, l10n) {
var escapeHTML = function(text) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think you need to escape the text for html, do you? I've never seen anyone doing it in the platform, for example

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the html escape, a <script> tag inside the translation gets executed. Maybe an alternative would be to use sanitize.js.

Copy link

@trrenty trrenty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, some tests would be nice so we know this feature works

@KebabRonin KebabRonin marked this pull request as draft November 11, 2025 07:12
@KebabRonin
Copy link
Author

KebabRonin commented Nov 11, 2025

While testing, I found that newer versions of XWiki (like 16.10.13) give an error when creating a template.
I think the cause is https://jira.xwiki.org/browse/XWIKI-21553

* Add tests
* Fix templates on XWiki >14.10
@KebabRonin KebabRonin marked this pull request as ready for review November 13, 2025 15:56
* Re-export TaskManagerTemplate
* Fix some merge conflict
* Change template check in the sheet
@KebabRonin KebabRonin requested a review from trrenty November 18, 2025 12:54
@KebabRonin KebabRonin requested a review from trrenty November 25, 2025 08:25
@trrenty trrenty merged commit fa0ad5b into xwikisas:master Nov 26, 2025
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.

Add the possibility to define a task description template

2 participants