Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkoh committed Oct 15, 2024
1 parent 9193332 commit beb64a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,24 @@ const CodeAnalysisAccordionItem = forwardRef<
<Title size="h3">{`Team ${teamNumber}`}</Title>
</Accordion.Control>
<Accordion.Panel bg={getTutorialHighlightColor(7)}>
<Tabs value={viewMode} onChange={(value) => setViewMode(value as 'overview' | 'timeline')}>
<Tabs
value={viewMode}
onChange={value => setViewMode(value as 'overview' | 'timeline')}
>
<Tabs.List>
<Tabs.Tab value="overview" style={{ fontSize: '16px' }}>Overview</Tabs.Tab>
<Tabs.Tab value="timeline" style={{ fontSize: '16px' }}>Timeline</Tabs.Tab>
<Tabs.Tab value="overview" style={{ fontSize: '16px' }}>
Overview
</Tabs.Tab>
<Tabs.Tab value="timeline" style={{ fontSize: '16px' }}>
Timeline
</Tabs.Tab>
</Tabs.List>

<Tabs.Panel value="overview" pt="xs">
<CodeAnalysisOverview latestData={latestData} executedDate={latestExecutionDate} />
<CodeAnalysisOverview
latestData={latestData}
executedDate={latestExecutionDate}
/>
</Tabs.Panel>
<Tabs.Panel value="timeline" pt="xs">
<CodeAnalysisTimeline codeData={codeData} />
Expand All @@ -55,4 +65,3 @@ const CodeAnalysisAccordionItem = forwardRef<
});

export default CodeAnalysisAccordionItem;

Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ const CodeAnalysisOverview: React.FC<CodeAnalysisOverviewProps> = ({
>
{quality_gate_status}
</Text>
<Text
c={getColorForQualityGate(quality_gate_status)}
>
<Text c={getColorForQualityGate(quality_gate_status)}>
{quality_gate_status === 'OK'
? 'Code is free from critical errors.'
: quality_gate_status === 'WARN'
? 'Code has some issues that need to be addressed.'
: 'Code has critical errors that need to be fixed.'}
? 'Code has some issues that need to be addressed.'
: 'Code has critical errors that need to be fixed.'}
</Text>
</Card>
</Grid.Col>
Expand Down
6 changes: 1 addition & 5 deletions multi-git-dashboard/src/components/views/CodeAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ const CodeAnalysis: React.FC<CodeAnalysisProps> = ({ courseId }) => {

return (
<ScrollArea.Autosize mt={20} style={{ height: '95vh', overflow: 'auto' }}>
<Accordion
multiple
variant="separated"
mx={20}
>
<Accordion multiple variant="separated" mx={20}>
{Object.keys(data).map(teamNumber => (
<CodeAnalysisAccordianItem
key={teamNumber}
Expand Down

0 comments on commit beb64a6

Please sign in to comment.