feat(ai): add F0AiChatWelcomeCards#4534
Closed
warcos-fact wants to merge 1 commit into
Closed
Conversation
Data-driven action/prompt cards shown below the F0AiChat welcome-screen composer (the chat footer slot), rendered with F0CardHorizontal. Prompt cards call onSelect with their message; action cards run a custom onClick. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
📦 Alpha Package Version PublishedUse Use |
Contributor
🔍 Visual review for your branch is published 🔍Here are the links to: |
Contributor
Coverage Report for packages/react
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
Author
warcos-fact
added a commit
that referenced
this pull request
Jun 22, 2026
Bake the welcome-cards capability into F0AiChat as a data-driven `welcomeScreenCards` prop (symmetric with `welcomeScreenSuggestions`), rendered by an internal WelcomeScreenCardsRow — replacing the standalone F0AiChatWelcomeCards component, which the consumer had to hand-wire through the `footer` slot. Also always render the welcome suggestions row above the composer so its popover opens upward instead of covering the input. Combines and supersedes #4534 and #4537. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
Superseded by #4550, which bakes this capability into F0AiChat as the native |
warcos-fact
added a commit
that referenced
this pull request
Jun 23, 2026
…mposer Bake the welcome-cards capability into F0AiChat as a data-driven welcomeScreenCards prop (symmetric with welcomeScreenSuggestions), rendered by an internal WelcomeScreenCardsRow — capped at 4 (2x2 grid). Replaces the standalone F0AiChatWelcomeCards component the consumer had to hand-wire through the footer slot. Also always render the welcome suggestions row above the composer so its popover opens upward instead of covering the input. Supersedes #4534 and #4537. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Description
Adds
F0AiChatWelcomeCards, a data-driven row of action/prompt cards shown below the F0AiChat welcome-screen composer (the chatfooterslot), rendered withF0CardHorizontal. Two card kinds: prompt cards (amessagesent toonSelecton click) and action cards (a customonClick, which takes precedence). Runtime-agnostic — the caller supplies the cards and decides whatonSelectdoes.Extracted from the co-creation patterns PR (#4307) so it can be reviewed on its own.
Implementation details
F0AiChatWelcomeCards+F0AiChatWelcomeCardtype undersds/ai, exported fromsds/ai/exports.tsonSelect, action-cardonClickprecedence, and rendering