Skip to content

feat: add a SheetAside to MultiStep sheets - #421

Open
andrewhuhh wants to merge 3 commits into
mainfrom
feat/multi-step-aside
Open

andrewhuhh wants to merge 3 commits into
mainfrom
feat/multi-step-aside

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a details prop to MultiStep for the sheet presentation. It renders a SheetAside beside the steps, which suits flows that act on an existing record, such as rotating a database credential. The flow's title, media, description and badges move into that aside, and its content (usually a DataList) sits under them. Below the pane collapse width, the details pane becomes a Details tab next to a tab for the steps, labelled with mainLabel.

The prop takes { content, mainLabel, label? } and is typed only for variant="sheet". Dialogs, pages and sheet views reject it at compile time. There is one details pane for the whole flow, so the panes and tabs stay put between steps. To show step-specific details, render content from the current step.

It is named details so it does not clash with layout="aside" or the per-step aside.

Two-pane sheets had not been used with a subheader in the main pane, and MultiStep puts its step meter there. In the narrow layout the subheader now sits under the tabs and hides while Details is open, and in the wide layout it clears the close button. Existing sheets without a subheader look the same.

A new example, "Sheet aside", shows a record that has never been rotated, a typical one, and one with long values. I checked it open in a browser at desktop width and at 390px.

screenshot 1

screenshot 2

screenshot 3

MultiStep with variant="sheet" takes an aside ({ content, mainLabel, label? }) that renders a SheetAside: the title, media, description and badges move into it, and below the pane collapse width it becomes the Details tab. In a two-pane sheet, the main pane's subheader now sits below the narrow tabs, hides with the main pane while Details shows, and clears the close button when it opens the pane.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@aws-amplify-gen-3

aws-amplify-gen-3 Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Name Status Preview Updated
cipher/preview (f228972) ❌ Failed — 2026-12-04 00:59 UTC

Reason: OUTPUT_DIRECTORY_NOT_FOUND

@capy-ai capy-ai Bot added the visual-change label Dec 4, 2026
@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds a record pane beside MultiStep sheets, with Details and main tabs at narrow widths.

  • Sheet flows can show the record beside the steps.

Reviews (3) · Last reviewed commit: "refactor(multi-step): rename the sheet a..." · Reviewed by Greptile

Comment thread src/ui/multi-step.tsx Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

With aside set, the flow title moves into the aside pane, so a one-step flow now shows the step's heading and badges above its fields. The example gains a one-step case and moves to the end of the page.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

greptile-apps[bot]
greptile-apps Bot previously approved these changes Dec 4, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant