Skip to content

Commit

Permalink
chore: submission status better than ever
Browse files Browse the repository at this point in the history
  • Loading branch information
francisvaut committed May 23, 2024
1 parent d6eb2d8 commit 38d9aff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/assets/lang/app/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,13 @@
"card": {
"open": "Details",
"newProject": "New project",
"noSubmissions": "This project does not have any submissions",
"noSubmissions": "This project does not have any submissions \uD83D\uDE2D",
"submissions": "Submission | Submissions",
"groups": "Group | Groups",
"structureTestsSucceed": "Succeeded structure tests",
"extraTestsSucceed": "Succeeded extra tests",
"testsFail": "Failed tests",
"successfulSubmission": "Successful submissions",
"submit": "Submit"
},
"list": {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/lang/app/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
"structureTestsSucceed": "Geslaagde structuur testen",
"extraTestsSucceed": "Geslaagde extra testen",
"testsFail": "Gefaalde testen",
"successfulSubmission": "Geslaagde indieningen",
"submit": "Indienen"
},
"list": {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/submissions/ProjectMeter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ const meterItems = computed(() => {
return [submissionsFailedItem, structureChecksPassedItem, extraChecksPassedItem]
}
structureChecksPassedItem.color = green
structureChecksPassedItem.icon = 'pi pi-check'
return [submissionsFailedItem, structureChecksPassedItem]
}
return [{ value: (groupsSubmitted / groups) * 100, color: green, label: t('components.card.testsFail'), icon: 'pi pi-times' }]
return [{ value: (groupsSubmitted / groups) * 100, color: green, label: t('components.card.successfulSubmission'), icon: 'pi pi-check' }]
});
</script>

Expand Down

0 comments on commit 38d9aff

Please sign in to comment.