| ^{simpleLink (toWidget sheetName) (CSheetR tid ssh csh sheetName SSubsR)}
$if groupsPossible
@@ -39,15 +41,19 @@
| #{showDiffDays ciMin}
| #{showAvgsDays ciTot ciCorrected}
| #{showDiffDays ciMax}
+
+
_{MsgCorrectionCorrectors}
+
| _{MsgCorrector}
| _{MsgGenericAll}
| _{MsgCorDeficitProportion}
| _{MsgCorrectionTime}
- $forall shn <- sheetNames
+ $# Always iterate over sheetList for consistent sorting! Newest first, except in this table
+ $forall (shn,_) <- sheetList
| #{shn}
$# ^{simpleLinkI (SomeMessage MsgMenuCorrectors) (CSheetR tid ssh csh shn SCorrR)}
|
@@ -56,13 +62,14 @@
| _{MsgGenericMin}
| _{MsgGenericAvg}
| _{MsgGenericMax}
- $forall _shn <- sheetNames
+ $# Always iterate over sheetList for consistent sorting! Newest first, except in this table
+ $forall _shn <- sheetList
| _{MsgCorProportion}
| _{MsgNrSubmissionsTotalShort}
| _{MsgGenericNumChange}
| _{MsgNrSubmissionsNotCorrectedShort}
| _{MsgGenericAvg}
- $forall (CorrectionInfo{ciCorrector, ciSubmissions=ciSubmissionsNr, ciCorrected, ciMin, ciTot, ciMax}) <- Map.elems corrMap
+ $forall (CorrectionInfo{ciCorrector, ciSubmissions=ciSubmissionsNr, ciCorrected, ciMin, ciTot, ciMax}) <- corrInfos
$with (nameW,loadM) <- getCorrector ciCorrector
|
| ^{nameW}
@@ -77,7 +84,8 @@
| #{showDiffDays ciMin}
| #{showAvgsDays ciTot ciCorrected}
| #{showDiffDays ciMax}
- $forall (shn, CorrectionInfo{ciSubmissions=sheetSubmissionsNr}) <- Map.toList sheetMap
+ $# Always iterate over sheetList for consistent sorting! Newest first, except in this table
+ $forall (shn, CorrectionInfo{ciSubmissions=sheetSubmissionsNr}) <- sheetList
|
$maybe SheetCorrector{sheetCorrectorLoad, sheetCorrectorState} <- Map.lookup shn loadM
#{showCompactCorrectorLoad sheetCorrectorLoad sheetCorrectorState}
@@ -101,7 +109,7 @@
|
|
|
- $if 0 < length sheetNames
+ $if not (null sheetList)
|
| Σ
$with ciSubmissionsNr <- ciSubmissions corrMapSum
@@ -112,9 +120,11 @@
| #{showDiffDays (ciMin corrMapSum)}
| #{showAvgsDays (ciTot corrMapSum) (ciCorrected corrMapSum)}
| #{showDiffDays (ciMax corrMapSum)}
- $forall shn <- sheetNames
+ $# Always iterate over sheetList for consistent sorting! Newest first, except in this table
+ $forall (shn, CorrectionInfo{ciSubmissions}) <- sheetList
| #{getLoadSum shn}
- | ^{simpleLinkI (SomeMessage MsgMenuCorrectorsChange) (CSheetR tid ssh csh shn SCorrR)}
+ | #{ciSubmissions}
+ | ^{simpleLinkI (SomeMessage MsgMenuCorrectorsChange) (CSheetR tid ssh csh shn SCorrR)}
^{btnWdgt}
_{MsgAssignSubmissionsRandomWarning}
\ No newline at end of file
| |