Refine premium workbench UX
This commit is contained in:
@@ -105,15 +105,23 @@ export function WorkbenchStatusStrip({
|
||||
state: exports.length > 0 ? 'ready' : 'waiting',
|
||||
},
|
||||
]
|
||||
const readyCount = items.filter((item) => item.state === 'ready').length
|
||||
|
||||
return (
|
||||
<section className="workbench-status-strip" aria-label="Workbench readiness">
|
||||
<div className="status-strip-header">
|
||||
<div>
|
||||
<p className="eyebrow">V1 readiness</p>
|
||||
<h2>Workbench status</h2>
|
||||
<h2>
|
||||
<span className="sr-only">Workbench status: </span>
|
||||
{readyCount === items.length ? 'Mol workbench is ready' : 'Mol workbench needs attention'}
|
||||
</h2>
|
||||
<p className="status-next-action">{nextAction(items)}</p>
|
||||
</div>
|
||||
<div className="status-readiness" aria-label={`${readyCount} of ${items.length} workbench stages ready`}>
|
||||
<strong>{readyCount}/{items.length}</strong>
|
||||
<span>stages ready</span>
|
||||
</div>
|
||||
<p className="status-next-action">{nextAction(items)}</p>
|
||||
</div>
|
||||
<div className="status-strip-grid">
|
||||
{items.map((item) => (
|
||||
|
||||
Reference in New Issue
Block a user