Skip to content

feat(datasets): pick a storage connection in the create-dataset modal - #653

Merged
jqueguiner merged 1 commit into
mainfrom
feat/dataset-modal-connection-picker
Jul 29, 2026
Merged

feat(datasets): pick a storage connection in the create-dataset modal#653
jqueguiner merged 1 commit into
mainfrom
feat/dataset-modal-connection-picker

Conversation

@jqueguiner

Copy link
Copy Markdown
Owner

What

The "New dataset" modal now lets the user choose a storage connection as the dataset's managed upload target.

  • On org change, the modal loads the org's connections from GET /organizations/{org_id}/storage-connections and lists them in a dropdown (name · purpose · bucket, flags the default).
  • Selecting one passes connection (the connection id) to POST /orgs/{org_id}/datasets. The API already resolves this to a managed target (source_type=managed, source_uri derived from the connection's bucket/prefix).
  • None keeps the existing reference-only behavior.
  • The Source URI input is disabled/greyed when a connection is selected, since the API sets it.

Why

Backend supported DatasetCreate.connection already; the frontend had no way to set it. This wires the picker into the modal.

Files

  • src/web/src/hooks/useDatasets.tsconnection? on CreateDatasetInput, sent in POST body
  • src/web/src/pages/Datasets.tsxConnOption type, per-org connection fetch, selector, source-URI gating

Test

No local typecheck — typescript not installed on this host (prod web is a prebuilt static image). Relies on CI tsc -b.

🤖 Generated with Claude Code

…ataset

Add a storage-connection selector to the "New dataset" modal. On org
change the modal loads the org's storage connections from
GET /organizations/{org_id}/storage-connections and offers them in a
dropdown. Selecting one passes `connection` (id) to the create endpoint,
which the API resolves to a managed upload target (source_type=managed,
source_uri derived from the connection's bucket/prefix). "None" keeps
the existing reference-only behavior. The Source URI input is disabled
when a connection is chosen since the API sets it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jqueguiner
jqueguiner merged commit f35fffb into main Jul 29, 2026
10 checks passed
@jqueguiner
jqueguiner deleted the feat/dataset-modal-connection-picker branch July 29, 2026 14:27
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