forked from longtao.wu/droboticflow
🎨 Give focused task controls a separate header row
This commit is contained in:
parent
9d331e7190
commit
470b171355
@ -18,3 +18,9 @@ Evidence: diagnostic actual server handler reproduced three 200 responses return
|
||||
CUA synthetic UI uses actual session hook, switch and coordinator: default manual and click-existing produce zero claims; on permits allocation; off preserves draft and confirmed in-flight work and stops following requests; reopen stays off; second-tab off updates active tab. Full local snapshot API was started with verify-existing/external processor, BOS disabled. Final built full platform displayed the control beside 4/2 personal buffer; manual Start Work entered an already-owned demo task without enabling continuous mode. Full focused editing is constrained by IAB 1280px viewport versus existing 1413px minimum; no viewport guard bypass or complete focus editing acceptance is claimed.
|
||||
|
||||
Screenshots: main-root local-data/verification/work-mode-20261016/actual-task-pool.png and manual-mode.png. Logs in worktree local-data/pr-checks/work-mode-*. No production business writes or new deployment, PR or push performed.
|
||||
|
||||
## Header spacing follow-up (2026-10-16)
|
||||
|
||||
Customer marked the focused header's task picker overlapping the capture name. Cause: the old 36px header and 390px buffer width wrapped the added controls onto the next line; the status bar also used an absolute left offset. The header now uses three grid columns (controls / status / exit), automatic height with a 44px minimum, a single unwrapped control row and a flexible task picker. Status sits in normal flow; its repeated helper sentence is hidden only in compact layout. No work-mode, request or task-state logic changed.
|
||||
|
||||
Type check, production build, existing 12 executable work-mode/entry regressions and diff checks pass. Static layout measurements used DOM read from the actual built local focused page with the real final CSS at 1413px and 1920px: header 46px, picker/status inside header, capture name below, no overlap. Static snapshot is used because IAB viewport remains 1280px; the live workflow guard remains enforced. Screenshot and measures: main-root local-data/verification/work-mode-20261016/header-spacing.png and header-spacing-measures.json. Local build updated; user page was not refreshed to avoid losing drafts. No push or deployment.
|
||||
|
||||
@ -5920,8 +5920,22 @@ export default function AnnotationOperations({ workPage = false }: { workPage?:
|
||||
) : null}
|
||||
</div>
|
||||
) : null}
|
||||
{workPage && workSession.active ? (
|
||||
<section aria-label="连续工作" className={`${panelClass} space-y-3 p-4`}>
|
||||
<p
|
||||
role="status"
|
||||
className="text-sm"
|
||||
title={workSession.pauseReason || "后台切片期间接续其他任务;真实送检成功后补足容量。"}
|
||||
>
|
||||
{workSession.continuous
|
||||
? "连续工作中:后台切片期间接续其他任务;真实送检成功后补足容量。"
|
||||
: workSession.pauseReason || "手动模式:可直接处理已领取任务,点击随机领取才接取新任务。"}
|
||||
</p>
|
||||
<p className="text-xs text-gray-500">在个人任务池旁切换自动接取或手动接取;选择会在当前浏览器保留。</p>
|
||||
</section>
|
||||
) : null}
|
||||
{workPage ? (
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="annotation-work-page-navigation flex flex-wrap items-center justify-between gap-3">
|
||||
<div>
|
||||
<h1 className="text-lg font-semibold">标注工作页</h1>
|
||||
<p className="text-xs text-gray-500">
|
||||
@ -6090,20 +6104,6 @@ export default function AnnotationOperations({ workPage = false }: { workPage?:
|
||||
)}
|
||||
</div>
|
||||
) : null}
|
||||
{workPage && workSession.active ? (
|
||||
<section aria-label="连续工作" className={`${panelClass} space-y-3 p-4`}>
|
||||
<p
|
||||
role="status"
|
||||
className="text-sm"
|
||||
title={workSession.pauseReason || "后台切片期间接续其他任务;真实送检成功后补足容量。"}
|
||||
>
|
||||
{workSession.continuous
|
||||
? "连续工作中:后台切片期间接续其他任务;真实送检成功后补足容量。"
|
||||
: workSession.pauseReason || "手动模式:可直接处理已领取任务,点击随机领取才接取新任务。"}
|
||||
</p>
|
||||
<p className="text-xs text-gray-500">在个人任务池旁切换自动接取或手动接取;选择会在当前浏览器保留。</p>
|
||||
</section>
|
||||
) : null}
|
||||
{workPage && workSession.supported && !workSession.active ? (
|
||||
<section aria-label="恢复工作会话" className={`${panelClass} space-y-4 p-5`}>
|
||||
<h2 className="font-semibold">继续已领取任务</h2>
|
||||
|
||||
@ -359,13 +359,10 @@
|
||||
display: none;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] [aria-label="连续工作"] {
|
||||
position: absolute;
|
||||
z-index: 46;
|
||||
top: 0;
|
||||
left: 140px;
|
||||
right: 260px;
|
||||
height: 36px;
|
||||
padding: 0 8px;
|
||||
position: static;
|
||||
height: auto;
|
||||
min-width: 0;
|
||||
padding: 4px 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
@ -1395,14 +1392,48 @@
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] .annotation-work-buffer {
|
||||
flex: none;
|
||||
max-width: 390px;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
gap: 10px;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] .annotation-work-buffer > button,
|
||||
.annotation-operations-page[data-workspace-compact] .annotation-work-buffer select[aria-label="任务池容量"] {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] .annotation-work-buffer select[aria-label="个人任务切换"] {
|
||||
max-width: 160px;
|
||||
flex: 1 1 240px;
|
||||
min-width: 100px;
|
||||
max-width: 280px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] [aria-label="连续工作"] {
|
||||
left: 400px;
|
||||
right: 145px;
|
||||
/* Keep controls, status and exit in one measured row; a wrapped task picker
|
||||
must never spill onto the independent capture-name row below it. */
|
||||
.annotation-operations-page[data-work-page][data-workspace-compact] .annotation-workspace-heading {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 680px) minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: auto;
|
||||
min-height: 44px;
|
||||
padding-block: 4px;
|
||||
}
|
||||
.annotation-operations-page[data-work-page][data-workspace-compact] .annotation-work-page-navigation {
|
||||
grid-column: 3;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.annotation-operations-page[data-work-page][data-workspace-compact] .annotation-workspace-filters {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact]
|
||||
.annotation-workspace-heading
|
||||
[aria-label="连续工作"]
|
||||
> p:first-child {
|
||||
display: block;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] [aria-label="连续工作"] > p + p {
|
||||
display: none;
|
||||
}
|
||||
.annotation-operations-page[data-workspace-compact] .annotation-task-heading {
|
||||
padding-right: calc(var(--workspace-editor-width) + 8px);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user