diff --git a/src/pages/SwilibSummaryAnalysis/SwilibSummaryAnalysisPage.tsx b/src/pages/SwilibSummaryAnalysis/SwilibSummaryAnalysisPage.tsx index fde0362..f604ce9 100644 --- a/src/pages/SwilibSummaryAnalysis/SwilibSummaryAnalysisPage.tsx +++ b/src/pages/SwilibSummaryAnalysis/SwilibSummaryAnalysisPage.tsx @@ -50,6 +50,39 @@ const SwilibSummaryAnalysisPage: Component = () => { return [platform, total ? Math.round(coverage / total) : 0]; })); }); + const targetsWithErrors = createMemo(() => { + const analysis = summaryAnalysis(); + if (!analysis) + return []; + + return (devices() ?? []) + .filter((device) => analysis.coverage[device.target] != null) + .map((device) => { + let errors = 0; + let missing = 0; + for (const entry of analysis.entries) { + if (entry.type == SwilibEntryType.EMPTY || entry.coverage[device.platform] == -200) + continue; + if (entry.targets.includes(device.target)) + continue; + + if (device.target in entry.values) { + errors++; + } else { + missing++; + } + } + + return { + model: device.model, + sw: device.sw, + coverage: Math.round(analysis.coverage[device.target]), + errors, + missing, + }; + }) + .filter((target) => target.errors > 0 || target.missing > 0); + }); const handleFilterByType = (e: Event & { currentTarget: HTMLInputElement }) => { if (e.currentTarget.checked) @@ -175,25 +208,82 @@ const SwilibSummaryAnalysisPage: Component = () => { Next free ID: {formatId(summaryAnalysis()!.nextId)} - - - - - - {(platform) => - - } - - - - - - {(platform) => - - } - - -
Coverage by platform
Platform{platform}
Coverage{coverageByPlatform()[platform]}%
+ + + + + + + {(platform) => + + } + + + + + + {(platform) => + + } + + +
Coverage by platform
Platform{platform}
Coverage{coverageByPlatform()[platform]}%
+
+ + + + + + + + {(target) => + + } + + + + + + {(target) => + + } + + + + {(target) => + + } + + + + {(target) => + + } + + +
Targets with errors
Target + + {target.model}
+ v{target.sw} +
+
Coverage{target.coverage}%
Errors 0, + 'table-success': target.errors == 0, + }} + > + {target.errors} +
Missing 0, + 'table-success': target.missing == 0, + }} + > + {target.missing} +
+
{(file) =>