Commit Graph
3 Commits
Author SHA1 Message Date
Danny White d458429081 fix(studio): clarify pipeline validation feedback (#52055)
## Problem

Pipeline review shows validation failures below the cost estimate, far
from the settings that need changes. Publication-loading failures also
appear in several places with conflicting retry instructions.

## Solution

Attach full-width errors and warnings to their Connection or Data
sections. Keep the current scroll position and show description-only
guidance above the footer. Consolidate publication-loading failures into
one Data-step error with Continue to retry, preserving the existing
sheet behaviour.

_The main fix, spreading out the error and warnings to their respective
sections:_

| Before | After |
| --- | --- |
| <img width="1280" height="1522" alt="New Pipeline Supabase"
src="https://github.com/user-attachments/assets/36df1814-e73f-4440-b338-79b672431c60"
/> | <img width="1280" height="1522" alt="15619"
src="https://github.com/user-attachments/assets/08e39cdd-0e69-4318-b992-dfa81ad8a6c2"
/> |
| _All at bottom_ | _Attached to each section_ |

_Misc fixes for API blocks:_

| Before | After |
| --- | --- |
| <img width="1516" height="1350" alt="CleanShot 2026-10-21 at 15 19
24@2x"
src="https://github.com/user-attachments/assets/56ac9cf7-9c30-4129-8fbc-2708f35a51b9"
/> | <img width="1520" height="1232" alt="CleanShot 2026-10-21 at 15 22
56@2x"
src="https://github.com/user-attachments/assets/c4f4b039-38de-4af0-9bb9-b487ff6ddb63"
/> |

## To test

1. Enable **Pipeline creation wizard** in Feature Previews and open
`/project/<ref>/database/pipelines/new`. Complete Connection and Data to
reach Review.
2. In Chrome DevTools → Network, right-click a captured POST ending
`/replication/<ref>/destinations/validate` (Connection) or
`/replication/<ref>/pipelines/validate` (Data), then select **Override
content**. Reach Review before enabling the destination override. Keep
HTTP status **200** and save:

```json
{"validation_failures":[{"name":"Test validation issue","reason":"Test failure for the review screen.","failure_type":"critical"}]}
```

3. Click **Start pipeline**. Expect a flush Admonition at the bottom of
the matching section and danger guidance above the footer, without
automatic scrolling. Change `critical` to `warning` to check warning
guidance and **Start pipeline anyway**. Edit and retry to confirm values
persist.
4. On Data, block the GET ending
`/replication/v2/<ref>/sources/<id>/publications/<name>`. Expect one
flush publication-loading failure above the footer, including with
Advanced settings open. **Continue** retries; remove the block and retry
to recover.
5. Check desktop and phone widths. Stop before confirming creation, then
remove overrides and request blocks.
2026-10-22 00:07:06 +00:00
Danny White 306cd88a2b feat(studio): edit pipeline setup sections from review (#51901)
## Problem

Review only offers Back, so users must traverse earlier steps to change
a specific section. This follows #51900 in the pipeline wizard slices
from #49243.

## Solution

- Add **Edit** beside Destination, Connection and Data on Review.
- Reuse step navigation and preserve entered values. Existing validation
still controls access to later steps.
- Keep the sheet unchanged.

| After |
| --- |
| <img width="1462" height="968" alt="CleanShot 2026-10-19 at 11 51
16@2x"
src="https://github.com/user-attachments/assets/ac76788c-d64c-49ef-9365-ee7bcb81887a"
/> |
| _Edit button is new in this PR_ |


## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-review-ed-a84254-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project and enable **Pipeline creation wizard**. Open the
[wizard
preview](https://studio-staging-git-dnywh-featpipeline-review-ed-a84254-supabase.vercel.app/dashboard/project/_/database/pipelines/new)
for that project, complete Connection and Data, then reach Review.
2. Click each section’s **Edit** action. Check it opens the matching
step and preserves your values.
3. Change connection or data settings, then continue through validation
to Review. Check the updated values appear. Edit Destination and confirm
connection values remain when you return.
2026-10-20 11:04:06 +11:00
Danny White f20277377b feat(studio): add pipeline data and custom settings review (#51635)
## Problem

The pipeline wizard in #49243 needs publication, initial sync and custom
settings reviewed before creation.

## Solution

Extend the preview-enabled review from #51633 with Data, custom
connection settings and configured BigQuery table layouts. Values update
as fields change. Unchanged advanced defaults and unconfigured table
layouts are omitted; an explicit maximum staleness of zero is shown.

Preview off and editing keep their existing layout. Validation and
creation behaviour stay the same; no wizard routing is added. Stacked on
#51633.

| This PR: Simple Case | This PR: Extreme Case | Reference: Final Wizard
|
| --- | --- | --- |
| <img width="1244" height="1994" alt="CleanShot 2026-10-14 at 11 22
16@2x"
src="https://github.com/user-attachments/assets/5c2c9ea4-7b2b-4f0b-8ebe-0cfc2ac27059"
/> | <img width="1226" height="3568" alt="CleanShot 2026-10-14 at 12 02
16@2x"
src="https://github.com/user-attachments/assets/dc556d4a-5130-4b6c-80b5-8644603d9a55"
/> | <img width="1486" height="2364" alt="CleanShot 2026-10-14 at 10 50
30@2x"
src="https://github.com/user-attachments/assets/982b7d23-9449-4841-b002-9e30fbbabfe9"
/> |

## Review instructions

1. Open the [Pipelines
preview](https://studio-staging-git-dnywh-featpipeline-data-review-supabase.vercel.app/dashboard/project/_/database/pipelines),
select a test project with Pipelines enabled, enable **Pipeline creation
wizard** in Feature Previews and click **Add pipeline**. Confirm
**Data** review follows the destination review.
2. Select a publication. Confirm its name, table count and initial-sync
choice appear as read-only fields. Choose selected tables to include or
exclude and confirm their schema-qualified names appear. Change
publication and confirm old tables are not shown.
3. Under Data’s **Advanced settings**, change batch wait time, table
sync workers or initial sync connections. Confirm only custom values
appear in review. Restore defaults and confirm those rows disappear. For
BigQuery, configure partitioning or clustering and confirm the table
name and wrapping layout summary appear in the main column under **Table
layout**; unconfigured layouts should be omitted.
4. Change BigQuery connection pool size or maximum staleness and confirm
they appear within **Connection**. If available, check DuckLake pool
size and Snowflake role too. Check desktop and phone widths, then cancel
and discard changes; no credentials or creation are needed.
5. Turn the preview off and reopen **Add pipeline**: confirm no review.
With the preview on, edit an existing pipeline and confirm no review
there either.
2026-10-15 11:17:34 +11:00