Repository navigation
feat(cards): add portable section layout hints - #1126
Open
maxffarrell wants to merge 2 commits into
Open
maxffarrell wants to merge 2 commits into
maxffarrell wants to merge 2 commits into
Conversation
Signed-off-by: Max Farrell <maxffarrell@gmail.com>
Contributor
|
@maxffarrell is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: Max Farrell <maxffarrell@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cards can already group content in sections, but consumers cannot request columns or carousels without bypassing the shared card model and building platform-specific payloads.
Adds optional
Section(children, { layout })hints forstack,columns, andcarousel, including JSX, React conversion, and literal JSON. The default Section object stays unchanged. Each child section represents a column or carousel item; existing action IDs, values, and handlers are preserved.Both the SDK converters and runtime-free Slack/Teams helpers are covered. The Teams primitive converter also now retains initial select/radio values, matching the SDK converter.
Includes API/guide documentation and a minor changeset for chat, Slack, Teams, and Google Chat. This enables the portable rework of vercel-labs/json-render#457 without requiring its own Slack-specific renderer.
Validation:
pnpm validatepassed: knip, lint, workspace type checks, tests, and production buildspnpm konsistentpassedLayout hints preserve each adapter's existing interaction support and platform limits; they do not add unsupported controls to every platform. No live provider API calls were made.