InseeFrLab / onyxia

🔬 Data science environment for k8s
https://onyxia.sh
MIT License
432 stars 78 forks source link

create a new render for the launcher #796

Closed fcomte closed 1 month ago

fcomte commented 3 months ago

We should create a new render for an array. At the moment we only display a textPanel which is not really good.

One standard use case is the standard :

env: 
  - name: toto
    value: titi

this could be controlled with this json schema :

"env": {
    "type": "array",
    "title": "Array of Environment Variables",
    "description": "A list of environment variables, where each variable includes a name and a value.",
    "items": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the environment variable."
        },
        "value": {
          "type": "string",
          "description": "The value of the environment variable."
        }
      },
      "required": ["name", "value"],
      "additionalProperties": false
    }    
}

I am not sure how we can handle that. Should we go a generic approach ? or a specific one for this use case. @garronej

fcomte commented 3 months ago

A generic approach would be better I guess all object inside items should respect all the usual field for injection x-onyxia, render like slider etc Add a new item can be done with a + button obviously

fcomte commented 1 month ago

duplicate issue #802