Skip to content

Commit

Permalink
feat(dashboard): summary cards
Browse files Browse the repository at this point in the history
Changed Summary Cards on Build, Boot and Test tabs.

Closes #251
  • Loading branch information
Lucas Bracher committed Sep 11, 2024
1 parent 9a940b5 commit f6445f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dashboard/src/pages/TreeDetails/Tabs/TestCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DumbListingContent } from '@/components/ListingContent/ListingContent';
import BaseCard, { IBaseCard } from '@/components/Cards/BaseCard';
import ListingItem from '@/components/ListingItem/ListingItem';
import { TTreeTestsData } from '@/types/tree/TreeDetails';
import { TestStatus } from '@/components/Status/Status';
import { TestStatus, GroupedTestStatus } from '@/components/Status/Status';

import { DumbSummary, SummaryItem } from '@/components/Summary/Summary';
import StatusChartMemoized, {
Expand Down Expand Up @@ -144,14 +144,15 @@ const ErrorsSummary = ({
{Object.keys(architectureStatusCounts).map(architecture => {
const statusCounts = architectureStatusCounts[architecture];
const currentCompilers = compilersPerArchitecture[architecture];

return (
<SummaryItem
key={architecture}
arch={{
text: architecture,
}}
leftIcon={
<TestStatus
<GroupedTestStatus
forceNumber={false}
done={statusCounts.DONE}
fail={statusCounts.FAIL}
Expand Down

0 comments on commit f6445f3

Please sign in to comment.