Ignore local artifacts and wrap worker job text #1
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,6 @@
|
|||||||
.codex/
|
.codex/
|
||||||
|
.codex-tmp/
|
||||||
|
.playwright-mcp/
|
||||||
.vscode/
|
.vscode/
|
||||||
.windsurf/
|
.windsurf/
|
||||||
|
|
||||||
|
|||||||
@@ -676,7 +676,7 @@ export function WorkersPage() {
|
|||||||
)}
|
)}
|
||||||
onClick={() => setSelectedJobId(item.id)}
|
onClick={() => setSelectedJobId(item.id)}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
|
<div className="flex min-w-0 flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
|
||||||
<div className="min-w-0 space-y-2">
|
<div className="min-w-0 space-y-2">
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
<Badge variant="outline">#{item.id}</Badge>
|
<Badge variant="outline">#{item.id}</Badge>
|
||||||
@@ -690,16 +690,16 @@ export function WorkersPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div className="text-base font-semibold text-foreground">
|
<div className="break-all text-base font-semibold text-foreground [overflow-wrap:anywhere]">
|
||||||
{jobTitle(item)}
|
{jobTitle(item)}
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-1 text-sm text-muted-foreground">
|
<div className="mt-1 break-all text-sm text-muted-foreground [overflow-wrap:anywhere]">
|
||||||
{item.worker_name}
|
{item.worker_name}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid gap-2 text-sm text-muted-foreground lg:min-w-[18rem] lg:text-right">
|
<div className="grid min-w-0 gap-2 text-sm text-muted-foreground lg:min-w-[18rem] lg:text-right">
|
||||||
<div>
|
<div>
|
||||||
入队:
|
入队:
|
||||||
{formatDateTime(item.queued_at ?? item.created_at)}
|
{formatDateTime(item.queued_at ?? item.created_at)}
|
||||||
@@ -714,11 +714,11 @@ export function WorkersPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-4 grid gap-3 text-sm text-muted-foreground md:grid-cols-3">
|
<div className="mt-4 grid gap-3 text-sm text-muted-foreground md:grid-cols-3">
|
||||||
<div className="rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
<div className="min-w-0 rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
||||||
<div className="text-[11px] uppercase tracking-[0.18em]">
|
<div className="text-[11px] uppercase tracking-[0.18em]">
|
||||||
请求来源
|
请求来源
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-2 text-foreground">
|
<div className="mt-2 break-all text-foreground [overflow-wrap:anywhere]">
|
||||||
{item.requested_by ?? "system"}
|
{item.requested_by ?? "system"}
|
||||||
<span className="text-muted-foreground">
|
<span className="text-muted-foreground">
|
||||||
{" · "}
|
{" · "}
|
||||||
@@ -726,7 +726,7 @@ export function WorkersPage() {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
<div className="min-w-0 rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
||||||
<div className="text-[11px] uppercase tracking-[0.18em]">
|
<div className="text-[11px] uppercase tracking-[0.18em]">
|
||||||
关联实体
|
关联实体
|
||||||
</div>
|
</div>
|
||||||
@@ -734,7 +734,7 @@ export function WorkersPage() {
|
|||||||
{relatedEntityText(item)}
|
{relatedEntityText(item)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
<div className="min-w-0 rounded-2xl border border-border/60 bg-background/80 px-3 py-3">
|
||||||
<div className="text-[11px] uppercase tracking-[0.18em]">
|
<div className="text-[11px] uppercase tracking-[0.18em]">
|
||||||
尝试
|
尝试
|
||||||
</div>
|
</div>
|
||||||
@@ -760,7 +760,7 @@ export function WorkersPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="mt-2 text-sm leading-6 text-foreground">
|
<div className="mt-2 break-all text-sm leading-6 text-foreground [overflow-wrap:anywhere]">
|
||||||
{progressText}
|
{progressText}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -828,7 +828,7 @@ export function WorkersPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="mt-2 text-sm leading-6 text-foreground">
|
<div className="mt-2 break-all text-sm leading-6 text-foreground [overflow-wrap:anywhere]">
|
||||||
{selectedProgressText}
|
{selectedProgressText}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user