Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-ui): surface a runs load failure in the Recent Runs cell (M3)
Diego Zacarias797fb5d9f2f2
diff --git a/desktop-app/ui/src/pages/WorkflowsPage.tsx b/desktop-app/ui/src/pages/WorkflowsPage.tsxindex 8eaa17631..31b06f631 100644--- a/desktop-app/ui/src/pages/WorkflowsPage.tsx+++ b/desktop-app/ui/src/pages/WorkflowsPage.tsx@@ -43,6 +43,11 @@ function RecentRunsCell({}const run = recent.latestRunif (!run) {+ // A failed runs fetch (recent.error) is not the same as "no runs exist":+ // surface the failure instead of the reassuring empty state.+ if (recent.error) {+ return <span className="muted">Failed to load runs</span>+ }return <span className="muted">No runs yet</span>}const when = run.startedAt ?? run.triggeredAtdiff --git a/desktop-app/ui/src/pages/__tests__/WorkflowsPage.test.tsx b/desktop-app/ui/src/pages/__tests__/WorkflowsPage.test.tsxindex 1c1af2394..2b9a476ed 100644--- a/desktop-app/ui/src/pages/__tests__/WorkflowsPage.test.tsx+++ b/desktop-app/ui/src/pages/__tests__/WorkflowsPage.test.tsx@@ -236,6 +236,15 @@ describe('WorkflowsPage', () => {expect(within(table).getAllByText('Succeeded')).toHaveLength(1)})+ // M3: a failed runs fetch (recent.error) must not read as "No runs yet".+ it('shows a load failure in the Recent Runs cell instead of "No runs yet"', () => {+ renderWorkflowsPage({}, { error: 'runs boom', latestRun: null, loading: false })++ const table = screen.getByRole('table')+ expect(within(table).getByText('Failed to load runs')).toBeTruthy()+ expect(within(table).queryByText('No runs yet')).toBeNull()+ })+it('downloads the latest run artifact through the run-scoped workflows API', async () => {const downloadRunArtifact = vi.fn().mockResolvedValue({saved: true,