various edits
This commit is contained in:
+8
-1
@@ -230,9 +230,16 @@ function updateExplorer() {
|
||||
scorecardLabel(row).toLowerCase().includes(query),
|
||||
);
|
||||
visibleScorecards = sortedScorecards(matches, sortMode);
|
||||
const cohortCount = visibleScorecards.length;
|
||||
let summary = "0 supported sample cohorts.";
|
||||
if (cohortCount > 0 && cohortCount <= 12) {
|
||||
summary = `${cohortCount} supported sample cohort${cohortCount === 1 ? "" : "s"}; all shown.`;
|
||||
} else if (cohortCount > 12) {
|
||||
summary = `${cohortCount} supported sample cohorts; showing ${Math.min(cohortCount, 18)} cards and 12 chart rows.`;
|
||||
}
|
||||
setText(
|
||||
"result-summary",
|
||||
`${visibleScorecards.length} supported sample cohort${visibleScorecards.length === 1 ? "" : "s"}; showing up to 18 cards and 12 chart rows.`,
|
||||
summary,
|
||||
);
|
||||
byId("empty-results").hidden = visibleScorecards.length > 0;
|
||||
renderCohortDotPlot(byId("cohort-dot-plot"), visibleScorecards);
|
||||
|
||||
Reference in New Issue
Block a user