Skip to content

Commit

Permalink
fix biome formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Jun 21, 2024
1 parent c6fabcb commit dde2ba6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion typescript/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"semicolons": "asNeeded",
"trailingComma": "all"
"trailingCommas": "all"
}
},
"json": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,41 @@ const TestStatusMessage: React.FC<{ testStatus: DoneTestStatusType }> = ({ testS
}
}

const TestStatusIcon: React.FC<{ testRunStatus: TestStatusType; testStatus?: DoneTestStatusType; traceUrl?: string }> =
({ testRunStatus, testStatus, traceUrl }) => {
const testStatusIcon = (
<div className='text-vscode-descriptionForeground'>
const TestStatusIcon: React.FC<{
testRunStatus: TestStatusType
testStatus?: DoneTestStatusType
traceUrl?: string
}> = ({ testRunStatus, testStatus, traceUrl }) => {
const testStatusIcon = (
<div className='text-vscode-descriptionForeground'>
{
{
{
queued: 'Queued',
running: <VSCodeProgressRing className='h-4' />,
done: (
<div className='flex flex-row items-center gap-1'>
{testStatus && <TestStatusMessage testStatus={testStatus} />}
{traceUrl && <Link2Icon className='hover:underline icon-link w-3 h-3 inline text-center' />}
</div>
),
error: (
<div className='flex flex-row items-center gap-1'>
<div className='text-vscode-testing-iconFailed'>Unable to run</div>
</div>
),
}[testRunStatus]
}
</div>
)

return traceUrl ? (
<a className='hover:underline' href={traceUrl}>
{testStatusIcon}
</a>
) : (
testStatusIcon
)
}
queued: 'Queued',
running: <VSCodeProgressRing className='h-4' />,
done: (
<div className='flex flex-row items-center gap-1'>
{testStatus && <TestStatusMessage testStatus={testStatus} />}
{traceUrl && <Link2Icon className='hover:underline icon-link w-3 h-3 inline text-center' />}
</div>
),
error: (
<div className='flex flex-row items-center gap-1'>
<div className='text-vscode-testing-iconFailed'>Unable to run</div>
</div>
),
}[testRunStatus]
}
</div>
)

return traceUrl ? (
<a className='hover:underline' href={traceUrl}>
{testStatusIcon}
</a>
) : (
testStatusIcon
)
}

type FilterValues = 'queued' | 'running' | 'error' | 'llm_failed' | 'parse_failed' | 'passed'
const filterAtom = atom(new Set<FilterValues>(['running', 'error', 'llm_failed', 'parse_failed', 'passed']))
Expand Down

0 comments on commit dde2ba6

Please sign in to comment.