fix(dashboard): de-emphasize empty verification status
This commit is contained in:
7
.changeset/task-verification-status-placement.md
Normal file
7
.changeset/task-verification-status-placement.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
summary: Hide empty chat verification status and move active results below task metadata.
|
||||
category: fix
|
||||
dev: Keeps task details focused on actionable verification state.
|
||||
@@ -4280,7 +4280,6 @@ export function TaskDetailContent({
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
<TaskVerificationStatus request={verificationRequest} />
|
||||
<div className="detail-meta">
|
||||
{/*
|
||||
FNXC:QuickAddActionRow 2026-07-16-16:00:
|
||||
@@ -4760,6 +4759,8 @@ export function TaskDetailContent({
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{/* FNXC:TaskVerificationStatus 2026-07-19-12:00: Verification status moved below metadata controls per UX feedback — empty state "No chat verification requested" was appearing too prominently near the top of the card. */}
|
||||
<TaskVerificationStatus request={verificationRequest} />
|
||||
{shouldShowBranchGroupCard && task.branchContext?.groupId && (
|
||||
/* FNXC:BranchGroupDetails 2026-06-30-00:00: Task-detail branch groups must return to their compact collapsed default when users switch tasks, including between members of the same shared branch group. Key by task and group so a manual expansion never leaks into the next task detail view. */
|
||||
<BranchGroupCard
|
||||
|
||||
@@ -14,7 +14,7 @@ function formatDuration(durationMs: number | undefined): string | null {
|
||||
* command control or reimplements the chat/executor permission boundary.
|
||||
*/
|
||||
export function TaskVerificationStatus({ request, compact = false }: { request: TaskVerificationRequest | null; compact?: boolean }) {
|
||||
if (!request) return compact ? null : <p className="task-verification-status task-verification-status--empty">No chat verification requested.</p>;
|
||||
if (!request) return null;
|
||||
|
||||
const running = request.status === "requested" || request.status === "running";
|
||||
const failed = request.status === "failed" || request.status === "rejected";
|
||||
|
||||
@@ -15,9 +15,9 @@ const base: TaskVerificationRequest = {
|
||||
};
|
||||
|
||||
describe("TaskVerificationStatus", () => {
|
||||
it("renders an empty state without a request", () => {
|
||||
render(<TaskVerificationStatus request={null} />);
|
||||
expect(screen.getByText("No chat verification requested.")).toBeInTheDocument();
|
||||
it("renders nothing without a request", () => {
|
||||
const { container } = render(<TaskVerificationStatus request={null} />);
|
||||
expect(container.firstChild).toBeNull();
|
||||
});
|
||||
|
||||
it.each(["requested", "running", "passed", "failed", "rejected"] as const)("renders the %s lifecycle state", (status) => {
|
||||
|
||||
Reference in New Issue
Block a user