dynamic list of new workflows in workflow builder and some code refactoring

This commit is contained in:
Joao Correia
2025-01-20 23:32:32 +00:00
parent 39a397d262
commit 01222b3a13
7 changed files with 435 additions and 217 deletions

View File

@@ -1,42 +1,66 @@
[
{
"id": "local-test-id-1",
"id": "kajhfakscbka-asacaca-acawesae",
"name": "name-1",
"module": "reading",
"status": "approved",
"approvers": "prof-1",
"step": "Concluded"
},
{
"id": "local-test-id-2",
"name": "name-2",
"module": "reading",
"modules": [
"reading",
"writing"
],
"status": "pending",
"approvers": "prof-2",
"step": "Concluded"
},
{
"id": "local-test-id-3",
"name": "name-3",
"module": "listening",
"status": "rejected",
"approvers": "prof-3",
"step": "Concluded"
},
{
"id": "local-test-id-4",
"name": "name-4",
"module": "writing",
"status": "approved",
"approvers": "prof-4",
"step": "Concluded"
},
{
"id": "local-test-id-5",
"name": "name-5",
"module": "reading",
"status": "approved",
"approvers": "prof-5",
"step": "Concluded"
"approvers": "prof-1",
"steps": [
{
"stepType": "form-intake",
"stepNumber": 1,
"completed": true,
"completedBy": "Prof. X",
"assignees": [
"Prof. X",
"Prof. Y",
"Prof. Z"
]
},
{
"stepType": "approval-by",
"stepNumber": 2,
"completed": true,
"completedBy": "Prof. Y",
"assignees": [
"Prof. X",
"Prof. Y",
"Prof. Z"
]
},
{
"stepType": "approval-by",
"stepNumber": 3,
"completed": false,
"assignees": [
"Prof. X",
"Prof. Y",
"Prof. Z"
]
},
{
"stepType": "approval-by",
"stepNumber": 4,
"completed": false,
"assignees": [
"Prof. X",
"Prof. Y",
"Prof. Z"
]
},
{
"stepType": "approval-by",
"stepNumber": 5,
"completed": false,
"assignees": [
"Prof. X",
"Prof. Y",
"Prof. Z"
]
}
]
}
]