The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(DataTable): replace loading spinner with skeleton rows\n\nThe loading state now renders skeleton rows that match the table's column structure instead of a centred spinner, preventing layout jank when data arrives and preserving the skeleton pattern used by the OAuth integrations grid.\n\nAuto-committed-on: macbook\n
Steven Enamakel99d09c83a9a2
diff --git a/app/src/components/ui/DataTable.test.tsx b/app/src/components/ui/DataTable.test.tsxindex 8cf79df988..ead093189c 100644--- a/app/src/components/ui/DataTable.test.tsx+++ b/app/src/components/ui/DataTable.test.tsx@@ -146,11 +146,28 @@ describe('<DataTable />', () => {expect(screen.queryByRole('table')).toBeNull();});- it('replaces the body with a spinner while loading, keeping the toolbar', () => {- renderTable({ loading: true, toolbarStart: <button type="button">Install</button> });+ /**+ * Skeleton ROWS, not a centred spinner. The columns are known while the data+ * is not, so the table holds its shape instead of collapsing and then jolting+ * back to full width when rows arrive — and a host that had a skeleton before+ * (the OAuth integrations grid, which used one to stop a hardcoded fallback+ * list flashing) does not lose it by moving onto this primitive.+ */+ it('draws skeleton rows in the real columns while loading, keeping the toolbar', () => {+ renderTable({+ loading: true,+ loadingRows: 3,+ loadingTestId: 'skeleton',+ toolbarStart: <button type="button">Install</button>,+ });- expect(screen.queryByRole('table')).toBeNull();- expect(screen.getByRole('status')).toBeInTheDocument();+ // No data rows, but the header and the column grid survive.+ expect(screen.queryByText('Alpha')).toBeNull();+ expect(screen.getAllByRole('columnheader')).toHaveLength(2);++ const region = screen.getByTestId('skeleton');+ expect(region).toHaveAttribute('aria-busy', 'true');+ expect(screen.getAllByTestId('skeleton-row')).toHaveLength(3);expect(screen.getByRole('button', { name: 'Install' })).toBeInTheDocument();});