show completion in frontend
This commit is contained in:
@@ -46,7 +46,7 @@ function formatConfig(config) {
|
||||
return formattedEntries.length > 0 ? formattedEntries.join('; ') : '—'
|
||||
}
|
||||
|
||||
export default function TestCard({ test }) {
|
||||
export default function TestCard({ test, isPrevious = false }) {
|
||||
const style = STATUS_STYLES[test.status] ?? STATUS_STYLES.pending
|
||||
const deviceAccentClass = getDeviceAccentClass(test.device)
|
||||
const cardRef = useRef(null)
|
||||
@@ -90,7 +90,7 @@ export default function TestCard({ test }) {
|
||||
return (
|
||||
<div ref={cardRef} className="relative">
|
||||
<div
|
||||
className={`relative px-1.5 py-0.5 pl-3 rounded border text-xs font-mono truncate cursor-default select-none ${style}`}
|
||||
className={`relative px-1.5 py-0.5 pl-3 rounded border text-xs font-mono truncate cursor-default select-none ${style} ${isPrevious ? 'opacity-60' : ''}`}
|
||||
style={{ maxWidth: '100%' }}
|
||||
>
|
||||
<span className={`absolute inset-y-0 left-0 w-1 rounded-l ${deviceAccentClass}`} aria-hidden="true" />
|
||||
|
||||
Reference in New Issue
Block a user