fractal-analytics-platform / fractal-web

Web client for Fractal
https://fractal-analytics-platform.github.io/fractal-web/
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Expose dropdown for Python version, in task-collection #524

Closed tcompa closed 2 months ago

tcompa commented 2 months ago

In the task-collection page, the two tabs "PyPI" and "Local" have a Python-version field. As of fractal-server 2.3.0, the only accepted values are strings "3.9", "3.10", "3.11", "3.12". Let's expose those four values as a dropdown menu, rather than as a free text field.

NOTE: even if those four options are all valid, a given instance may or may not have e.g. "3.12" available. This cannot be known to the web-client, for the moment, and then if the user selects "3.12" the API will respond with a 422 and an error message.

zonia3000 commented 2 months ago

The new dropdown and the error message:

image