Skip to content

feat: build trigger ui#389

Open
Scr4tch587 wants to merge 3 commits into
kai/build-api-clientfrom
kai/build-ui
Open

feat: build trigger ui#389
Scr4tch587 wants to merge 3 commits into
kai/build-api-clientfrom
kai/build-ui

Conversation

@Scr4tch587

@Scr4tch587 Scr4tch587 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

What

Adds build-panel.tsx to the top of the dataset detail view: start/end date pickers (default last 30 days), a dry-run checkbox, and a build button wired to the api client from #388.

  • Real build: success toast + invalidates the dataset's data query and the dataset list, so the table and the has_data dot refresh without a reload
  • Dry run: produced rows render inline in a DataTable (capped at 50 timestamps) with the JSON modal per row, so builder output can be inspected before committing anything
  • Pending state: button disables with a note that builds run synchronously server-side (the request stays open for the whole build)
  • Errors: backend detail renders in an inline error box; 401s go through the central handler

Why

Builds could only be triggered via curl; browsing intentionally never builds. The default window is smaller than the 5-year browse window because builds are heavy.

Benefit

Datasets can be built and validated (dry-run first, then for real) entirely from the UI.

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.

1 participant