Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: add Input\Container::withInput for awesome flexibility #8746

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

klees
Copy link
Member

@klees klees commented Dec 17, 2024

Hi all,

this is something that came up when @jeph864 and I were discussing Activitities and webservices.

The current plan is to use the inputs from the UI framework as a description for the input to Activities. @jeph864 is looking how these Activities can be published via a json-via-http API and, for this purpose, will need a way to provide values to the input. At first we thought that we might want to teach the UI framework how to deal with JSON input in a ServerRequestInterface, but then we found this solution to be more flexible and also simpler. This could open up the inputs from the UI framework to even more forms of user interface, such as the CLI.

The implementation should be quite obvious, but I'll wait until I have approval from @Amstutz and @thibsy here.

What do you think?

Kind regards!

@klees klees assigned klees, Amstutz and thibsy and unassigned klees Dec 17, 2024
@klees klees force-pushed the 11/UI/withInputData branch from bd1ec69 to 259588a Compare December 17, 2024 16:40
Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

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

Hi @klees,

Thx a lot for your contribution to the UI components!

Introducing a flexible way on our input containers to provide input data seems plausible and should interact seamlessly with our existing logic.

We have one minor change, which should not stop this from going to JF or postpone your implementation. However, please implement the following changes:

  • withInputData(): please rename this method to withInput() so it is similar to the Input::withInput() method. withInputData() may be more appropriate, but since it essentially does the same thing, we should try to be consistent here.

Kind regards,
@Amstutz and @thibsy

@klees
Copy link
Member Author

klees commented Dec 19, 2024

@thibsy/@Amstutz: Done. I also added the implementation now.

@klees klees changed the title UI: add Input\Container::withInputData for awesome flexibility UI: add Input\Container::withInput for awesome flexibility Dec 19, 2024
@klees klees force-pushed the 11/UI/withInputData branch from 9b87723 to 9838405 Compare December 19, 2024 15:03
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.

3 participants