Skip to content

Conversation

@Grafikart
Copy link
Collaborator

@Grafikart Grafikart commented Nov 9, 2023

This is a DRAFT that serves as a proof of concept on how to handle filter in list for various component in Lunatic

Bowie Issue https://github.com/InseeFr/Concevoir-Workplace/issues/65

CheckboxGroup

For checkbox group we could add a new conditionFilter for every response in responses

{
	"id": "new_id_4",
	"label": {
		"value": "\"Vous étiez à la retraite ou proche de la retraite\"",
		"type": "VTL"
	},
+	"conditionFilter": { "value": "cast(AGE, number) >= 50", "type": "VTL" },
	"response": { "name": "CHECK6" }
},

CheckboxOne / Radio / Dropdown

For unique checkbox / radio we could add a new conditionFilter for every option in options

{
  "id": "check6",
  "label": {
    "value": "\"Vous étiez à la retraite ou proche de la retraite\"",
    "type": "VTL"
  },
+ "conditionFilter": {
+   "value": "cast(AGE, number) >= 50",
+   "type": "VTL"
+ },
  "value": "CHECK6"
},

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants