Skip to content

Commit b2659f1

Browse files
Feature: Template build details page (#204)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Adds a new template build details page with live, filterable logs and status; updates API spec and server to fetch build info/logs; improves layout/breadcrumbs and links from builds table; enables React Query Devtools. > > - **Dashboard UI**: > - **Build Details Page**: New route `dashboard/[team]/templates/[template]/builds/[build]` with header (status, timings, template link) and virtualized, filterable logs (back/forward pagination, auto-scroll). > - **Builds Table**: Clickable rows navigate to build details; adjusted columns (ID moved, compact ID display, reason styling), duration/started cells tweaked. > - **Shared Components**: Added `CopyButtonInline`, `DetailsRow/DetailsItem`, `loading` re-export for the build page. > - **Layout/Header**: Breadcrumb-style titles via `TitleSegment`; config now functions per-path; sidebar active match widened; added `PROTECTED_URLS.TEMPLATE_BUILD`. > - **Server (tRPC)**: > - New queries: `buildDetails`, `buildLogsBackwards`, `buildLogsForward` using infra client; build DTOs for details/logs; retention check; mapping helpers. > - Repository: functions to get build info/status/logs from infra; existing list/running status unchanged. > - **OpenAPI/Types**: > - Added pagination params, logs types (`LogsDirection`, `LogsSource`, `TemplateBuildLogsResponse`), template/build models, `MachineInfo`, `SandboxNetworkConfig`, `Mcp`. > - New/updated endpoints: `POST /sandboxes/{id}/connect`, `GET /templates/{id}` (with builds), `GET /templates/{id}/builds/{id}/logs`, `POST /v3/templates`; marked several legacy endpoints deprecated. > - Generated `infra-api.types` updated accordingly; `types/api.types` narrows `Template` fields. > - **Client/Infra**: > - Export `useTRPCClient`; enable `@tanstack/react-query-devtools`. > - **Misc**: > - Formatting util `formatDurationCompact` supports decimal seconds. > - Sandbox header refactored to use shared `DetailsRow`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1c4739e. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent b9f668d commit b2659f1

File tree

35 files changed

+3054
-274
lines changed

35 files changed

+3054
-274
lines changed

bun.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@supabase/supabase-js": "^2.48.1",
4545
"@tanstack/match-sorter-utils": "^8.19.4",
4646
"@tanstack/react-query": "^5.90.7",
47+
"@tanstack/react-query-devtools": "^5.91.1",
4748
"@tanstack/react-table": "^8.20.6",
4849
"@tanstack/react-virtual": "^3.13.12",
4950
"@theguild/remark-mermaid": "^0.2.0",
@@ -940,8 +941,12 @@
940941

941942
"@tanstack/query-core": ["@tanstack/[email protected]", "", {}, "sha512-6PN65csiuTNfBMXqQUxQhCNdtm1rV+9kC9YwWAIKcaxAauq3Wu7p18j3gQY3YIBJU70jT/wzCCZ2uqto/vQgiQ=="],
942943

944+
"@tanstack/query-devtools": ["@tanstack/[email protected]", "", {}, "sha512-l8bxjk6BMsCaVQH6NzQEE/bEgFy1hAs5qbgXl0xhzezlaQbPk6Mgz9BqEg2vTLPOHD8N4k+w/gdgCbEzecGyNg=="],
945+
943946
"@tanstack/react-query": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/query-core": "5.90.7" }, "peerDependencies": { "react": "^18 || ^19" } }, "sha512-wAHc/cgKzW7LZNFloThyHnV/AX9gTg3w5yAv0gvQHPZoCnepwqCMtzbuPbb2UvfvO32XZ46e8bPOYbfZhzVnnQ=="],
944947

948+
"@tanstack/react-query-devtools": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/query-devtools": "5.91.1" }, "peerDependencies": { "@tanstack/react-query": "^5.90.10", "react": "^18 || ^19" } }, "sha512-tRnJYwEbH0kAOuToy8Ew7bJw1lX3AjkkgSlf/vzb+NpnqmHPdWM+lA2DSdGQSLi1SU0PDRrrCI1vnZnci96CsQ=="],
949+
945950
"@tanstack/react-table": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/table-core": "8.21.3" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww=="],
946951

947952
"@tanstack/react-virtual": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/virtual-core": "3.13.12" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Gd13QdxPSukP8ZrkbgS2RwoZseTTbQPLnQEn7HY/rqtM+8Zt95f7xKC7N0EsKs7aoz0WzZ+fditZux+F8EzYxA=="],

next.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const config = {
1212
bodySizeLimit: '5mb',
1313
},
1414
authInterrupts: true,
15-
clientSegmentCache: true,
1615
},
1716
turbopack: {
1817
resolveAlias: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"@supabase/supabase-js": "^2.48.1",
8282
"@tanstack/match-sorter-utils": "^8.19.4",
8383
"@tanstack/react-query": "^5.90.7",
84+
"@tanstack/react-query-devtools": "^5.91.1",
8485
"@tanstack/react-table": "^8.20.6",
8586
"@tanstack/react-virtual": "^3.13.12",
8687
"@theguild/remark-mermaid": "^0.2.0",

0 commit comments

Comments
 (0)