feat(GODT-2808): Initial list of categories and questions.

This commit is contained in:
Romain LE JEUNE
2023-08-01 16:48:54 +02:00
committed by Romain Le Jeune
parent 9b88778c43
commit 1b95c290f1
2 changed files with 32 additions and 15 deletions

View File

@ -102,7 +102,7 @@ Item {
label: qsTr(root.label) label: qsTr(root.label)
hint: textInput.text.length + "/" + _maxLength hint: textInput.text.length + "/" + _maxLength
placeholderText: mandatory ? qsTr("%1... (min. %2 characters)").arg(root.text).arg(_minLength) : "" placeholderText: mandatory ? qsTr("%1... (min. %2 characters)").arg(root.tips).arg(_minLength) : ""
function setDefaultValue(defaultValue) { function setDefaultValue(defaultValue) {
textInput.text = root.type === root._typeOpen ? defaultValue : "" textInput.text = root.type === root._typeOpen ? defaultValue : ""

View File

@ -5,30 +5,30 @@
"data_v1.0.0": { "data_v1.0.0": {
"categories": [ "categories": [
{ {
"name": "I can't receive mail", "name": "I am not receiving messages in my email client",
"questions": [0,1,2,3,4] "questions": [0,5,6,4]
}, },
{ {
"name": "I can't send mail", "name": "I am not able to send messages",
"questions": [0,1,2,3,4] "questions": [0,2,3,4]
}, },
{ {
"name": "Bridge is not starting", "name": "Bridge is not starting",
"questions": [0,1,2,3] "questions": [0,2,3,4]
}, },
{ {
"name": "Bridge is slow", "name": "Bridge is running slow",
"questions": [0,1,2,3] "questions": [0,2,7,4]
}, },
{ {
"name": "None of the above", "name": "Something else",
"questions": [0,1,2,3] "questions": [0,1,2,3]
} }
], ],
"questions": [ "questions": [
{ {
"id": 0, "id": 0,
"text": "What happened?", "text": "What happened? Please also let us know if you received any errors",
"tips": "Expected behavior", "tips": "Expected behavior",
"type": "open", "type": "open",
"mandatory": true, "mandatory": true,
@ -39,7 +39,6 @@
"text": "What did you want or expect to happen?", "text": "What did you want or expect to happen?",
"tips": "Result", "tips": "Result",
"type": "open", "type": "open",
"mandatory": true,
"maxChar": 400 "maxChar": 400
}, },
{ {
@ -51,15 +50,33 @@
}, },
{ {
"id": 3, "id": 3,
"text": "Can you reproduce this issue? (If you repeat the actions, the same thing happens.)", "text": "Can you reproduce this issue? (If you repeat the actions, does the same thing happen?)",
"type": "choice", "type": "choice",
"answerList": ["Yes", "No", "I don't know"] "answerList": ["Yes", "No"]
}, },
{ {
"id": 4, "id": 4,
"text": "Can you list the software you are running?", "text": "Can you check the software you are running from the list?",
"type": "multichoice", "type": "multichoice",
"answerList": ["VPN", "Antivirus", "Firewall", "Cache cleaner"] "answerList": ["VPN", "Antivirus", "Firewall", "Cache Cleaner", "None of the above"]
},
{
"id": 5,
"text": "Are you missing messages from the email client or not receiving new ones?",
"type": "choice",
"answerList": ["An old message is missing", "New messages are not arriving"]
},
{
"id": 6,
"text": "Can you locate the messages in the web/mobile applications?",
"type": "choice",
"answerList": ["Yes", "No"]
},
{
"id": 7,
"text": "Are you facing one of the below issues?",
"type": "multichoice",
"answerList": ["Messages arrive with a delay", "Messages are sending slowly", "Bridge is slow to launch", "Bridge is slowing down my computer"]
} }
] ]
} }