Skip to content

feat: api client support for triggering builds - #388

Merged
Scr4tch587 merged 15 commits into
mainfrom
kai/build-api-client
Aug 4, 2026
Merged

feat: api client support for triggering builds#388
Scr4tch587 merged 15 commits into
mainfrom
kai/build-api-client

Conversation

@Scr4tch587

@Scr4tch587 Scr4tch587 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

What

Adds triggerBuild() and dryRunBuild() to the typed api client (lib/api.ts), both hitting POST /api/v1/build/{name}/{version} — the dry-run variant passes dry-run=true. Adds the BuildResponse and DryRunBuildResponse types (dry-run reuses the existing DataRow shape, same as GET /data).

Why

The browsing UI is deliberately read-only (build-data=false everywhere), so until now the only way to build data was curl. This gives the frontend a typed path to the existing build endpoint ahead of the build-panel UI (next PR in the stack).

Benefit

Builds become explicitly triggerable from the browser, with dry runs available to preview builder output without writing to the db. Errors reuse ApiError, so backend detail messages (e.g. 422 no-valid-timestamps) surface verbatim in the UI.

@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown

@Scr4tch587
Scr4tch587 changed the base branch from kai/proposal-docs to main August 4, 2026 18:27
@Scr4tch587
Scr4tch587 merged commit ea136e9 into main Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants