Skip to content

[FIX] UI: remove unintended Prompt\IsPromptContent - #11853

Merged
thibsy merged 1 commit into
ILIAS-eLearning:trunkfrom
srsolutionsag:fix/12/ui-is-prompt-content
Oct 29, 2026
Merged

thibsy merged 1 commit into
ILIAS-eLearning:trunkfrom
srsolutionsag:fix/12/ui-is-prompt-content

Conversation

@thibsy

@thibsy thibsy commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Hi all,

The Modal\Roundtrip and Dropzone\File components inherited Prompt\IsPromptContent unintendedly by Form\Standard, which was parent class of both.

To remove these components from being valid prompt content, the inheritance was changed from Input\Container\Form\Standard to Input\Container\Container. To minimise breaking changes, the withSubmitLabel() was added to the Modal\RoundTrip explicitly. This path was chosen to omit the Prompt\IsPromptContent from being inherited, while still offering the data processing options of an input container, as I believe they were more widely used.

There are four usages of Modal\RoundTrip used as Prompt\IsPromptContent inside ILIAS\MetaData\OERHarvester\ControlCenter\ControlCenterGUI. @schmitz-ilias, how would you like to proceed?

Kind regards,
@thibsy

@thibsy thibsy added php Pull requests that update Php code Looking for Shepherd kitchen sink labels Aug 4, 2026
@thibsy

thibsy commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

For anyone who shepherds this: please only perform a review, I will handle integration myself.

@fhelfer fhelfer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @thibsy,

Thanks for the change. This looks good in general.

Two methods dropped off the public Modal\RoundTrip contract with the move away from Form\Standard, but both are still implemented and used:

getSubmitLabel() is what the modal renderer uses for the submit button.
getPostURL() is what the metadata editor uses when rebuilding the modal after an error.
Please consider declaring both on the interface again.

The OER Harvester prompt usages need to be addressed here or as a follow-up PR

Kind regards, @fhelfer

The `Modal\Roundtrip` and `Dropzone\File` components inherited
`Prompt\IsPromptContent` unintendedly by `Form\Standard`, which
was parent class of both.

To remove these components from being valid prompt content, the
inheritance was changed from `Input\Container\Form\Standard` to
`Input\Container\Container`. To minimise breaking changes, the
`withSubmitLabel()`, `getSubmitLabel()` and `getPostURL()`
methods were explicitly addedd to the `Modal\RoundTrip` instead.
@thibsy
thibsy force-pushed the fix/12/ui-is-prompt-content branch from 1ba2e32 to ca264c0 Compare October 29, 2026 10:41
@thibsy
thibsy merged commit ffd8de2 into ILIAS-eLearning:trunk Oct 29, 2026
5 checks passed
@thibsy

thibsy commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Thx @fhelfer for the review. I added these methods to the roundtrip interface explicitly. Usages of OER harvester are already taken care of by the introduction of secondary prompt contents.

@thibsy

thibsy commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

I'll announce the inheritance change at next JF.

@matthiaskunkel

Copy link
Copy Markdown
Member

Hi @thibsy, thanks for providing this PR. Is this a fix for an UI issue in currently maintained ILIAS versions or an improvement of the UI component that comes with 12? I just need to know in which part of the agenda I'll gonna place it ;-)

@thibsy

thibsy commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@matthiaskunkel I think we can classify this as improvement for 12.

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

Labels

improvement jour fixe kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants