fixed day time testing
This commit is contained in:
@@ -18,10 +18,10 @@ export default function FailedBanner({ rerunTests, onDecision }) {
|
||||
.map(([device, ids]) => `${device}: ${ids.join(', ')}`)
|
||||
|
||||
return (
|
||||
<div className="flex items-start gap-4 px-6 py-3 bg-red-900/70 border-b border-red-700 text-red-100">
|
||||
<div className="flex items-start gap-4 px-6 py-3 bg-yellow-900/35 border-b border-yellow-700/55 text-yellow-100/85">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className="w-5 h-5 mt-0.5 shrink-0 text-red-300"
|
||||
className="w-5 h-5 mt-0.5 shrink-0 text-yellow-300/80"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
@@ -39,28 +39,10 @@ export default function FailedBanner({ rerunTests, onDecision }) {
|
||||
{' '}require a rerun — not completed in last overnight window:
|
||||
</p>
|
||||
{deviceSummaries.map((summary) => (
|
||||
<p key={summary} className="text-sm font-mono text-red-200 mt-0.5 truncate">
|
||||
<p key={summary} className="text-sm font-mono text-yellow-200/80 mt-0.5 truncate">
|
||||
{summary}
|
||||
</p>
|
||||
))}
|
||||
<p className="text-sm text-red-300 mt-0.5">
|
||||
Estimated rerun time: <span className="font-semibold text-red-100">{timeStr}</span>
|
||||
{' '}— Schedule rerun during daytime today?
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex gap-2 shrink-0">
|
||||
<button
|
||||
onClick={() => onDecision(true)}
|
||||
className="px-3 py-1 text-sm font-medium bg-red-700 hover:bg-red-600 text-white rounded-md border border-red-500 transition-colors"
|
||||
>
|
||||
Yes
|
||||
</button>
|
||||
<button
|
||||
onClick={() => onDecision(false)}
|
||||
className="px-3 py-1 text-sm font-medium bg-gray-700 hover:bg-gray-600 text-gray-100 rounded-md border border-gray-500 transition-colors"
|
||||
>
|
||||
No
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user