feat(FN-1103): improve configured workflow steps experience
- Render a dedicated configured-steps state in WorkflowResultsTab with step count, descriptions, and phase badges when results are not yet available - Keep inline workflow step editing available from the configured state and results state, including add/remove and execution-order controls - Refine workflow step loading/edit behavior by aligning callback names and fetching step definitions by project context - Add dashboard styles for the configured workflow step cards and improved edit toggle button treatment - Expand WorkflowResultsTab and TaskDetailModal tests and add electron-updater type declarations to restore workspace build
This commit is contained in:
@@ -4241,7 +4241,7 @@ describe("TaskDetailModal", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("renders empty state when workflow results are empty", async () => {
|
||||
it("renders configured workflow steps state when results are empty", async () => {
|
||||
const { fetchWorkflowResults } = await import("../../api");
|
||||
const mockFetch = vi.mocked(fetchWorkflowResults);
|
||||
mockFetch.mockResolvedValueOnce([]);
|
||||
@@ -4261,8 +4261,8 @@ describe("TaskDetailModal", () => {
|
||||
fireEvent.click(screen.getByText("Workflow"));
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByTestId("workflow-results-empty")).toBeTruthy();
|
||||
expect(screen.getByText("Workflow steps configured but haven't run yet.")).toBeTruthy();
|
||||
expect(screen.getByTestId("workflow-configured-steps")).toBeTruthy();
|
||||
expect(screen.getByTestId("workflow-configured-step-WS-001")).toHaveTextContent("WS-001");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user