InseeFr / Pogues

Questionnaire designer
MIT License
19 stars 16 forks source link

Dynamic tables - UI for every control levels #724

Open romaintailhurat opened 5 months ago

romaintailhurat commented 5 months ago

Lunatic 2 offers dynamic tables with controls. Those controls can be at three levels:

Pogues doesn't currently have this capability. We fist need to add a conditional Level field (:fr: Niveau) for controls over a table question.

A simple UI would be 👇

image

romaintailhurat commented 5 months ago

As noted by @BulotF : we will need a way to attach the cell controls to the right cells.

Two possibilities:

  1. a declarative field (appears when we choose the cell level)
  2. a implicit mecanism based on the variable used in the VTL expression (hard)
BulotF commented 3 months ago

The Cell Control would be replaced by a Text format Check : https://github.com/InseeFr/Pogues/issues/746

The Row Control UI is described above.

pogues-model: In the ControlType, add an element "Scope" with minOccurs = 0. It would be filled only for "Line Checks"

DDI: Add 3 TypeOfComputationItem : line-warning ; line-stumblingblock ; line-informational

romaintailhurat commented 2 months ago

UI for the table controls seems good, but when creating a controls for a simple question, i'm getting a generation error:

Unknown error during generation: SpEL mapping expression defined on property 'criticality', for format DDI, in class fr.insee.eno.core.model.navigation.Control, failed on object ComputationItemTypeImpl[id=lvc0qg2v-CI-1]

nsenave commented 2 months ago

Eno java error: these table line controls are not implemented yet in DDI -> Lunatic