Skip to content

[FEATURE] UI: make Table Action support Prompt's - #12389

Open
thibsy wants to merge 4 commits into
ILIAS-eLearning:trunkfrom
srsolutionsag:feature/12/ui-data-table-prompts
Open

thibsy wants to merge 4 commits into
ILIAS-eLearning:trunkfrom
srsolutionsag:feature/12/ui-data-table-prompts

Conversation

@thibsy

@thibsy thibsy commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Hi all,

This basically applies #7809 to the latest trunk. It already contains my review and its corrections, so this should be ready to merge after @oliversamoila looked it over inside the GUI.

Also contains one small improvement commit which made reviewing the code much easier (proper typing). I also added a roadmap entry about refactoring the table internals, because this grew into quite a mess IMHO.

Kind regards,
@thibsy

@thibsy thibsy added kitchen sink improvement php Pull requests that update Php code javascript Pull requests that update Javascript code labels Nov 6, 2026
@thibsy
thibsy force-pushed the feature/12/ui-data-table-prompts branch from eb72f0f to 400cc37 Compare November 9, 2026 09:36
@thibsy
thibsy requested a review from kergomard November 9, 2026 09:37
@thibsy

thibsy commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@kergomard your prompt usage was not a simple "make this an URL builder" fix, I am not entirely sure if the changes produce the same behaviour. Perhaps you can have a look? I think it depends on how the object is used, but from only looking at the class itself, I figured its possible to simply generate the prompt when needed.

thibsy and others added 4 commits November 9, 2026 10:44
Improves the typing of the `Table` component family.
We strictly consider the internal interface for actions
and columns, because there is no explicit rendering for
them. In the future we might extend the public interfaces
so custom implementations become possible.
Change `UI\Component\Table\Action\Factory` method signatures
to also accept `UI\Component\Prompt\Prompt`. This changes
the behaviour of Table Actions conceptually, since Prompts
are asynchronous by default.
This makes `UI\Component\Table\Action\Action::withAsync()`
obsolete, which is why this method has been deprecated.

To incorporate Prompt's into Table Action's they were
modified to work with an `UI\URLBuilder` instead of an
`ILIAS\Data\URI`.
Addendum to b81d729 which
replaces usages with `ILIAS\Data\URI` when creating a Prompt
or its Show Signal.
@thibsy
thibsy force-pushed the feature/12/ui-data-table-prompts branch from 400cc37 to 5879782 Compare November 9, 2026 09:44
@thibsy

thibsy commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@mjansenDatabay / @lscharmer I don't think the pipelines have something to do with these changes. Perhaps some libxml issue?

@mjansenDatabay

Copy link
Copy Markdown
Contributor

@thibsy Yes, these are the issues I mentioned in the JF.

@lscharmer provided a PR here #12363

@thibsy

thibsy commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@mjansenDatabay sorry missed that part then. Thx for the info!

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

Labels

improvement javascript Pull requests that update Javascript code kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants