-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[x-chat] Material message surfaces: slots API, error surface, and hardened content rendering #22670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
51
commits into
master
Choose a base branch
from
copilot/hasdfamui-xcopilotx-chat-material-message-surfaces
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
353746f
[docs] Reorganize existing chat docs navigation
hasdfa 153c262
[chat-headless] Add createEchoAdapter and createAiSdkAdapter
hasdfa 2f156eb
[x-chat] Complete built-in adapter exports
hasdfa 59f5389
[chat-headless] Format AI SDK adapter test
hasdfa 849b199
[x-chat] Address built-in adapter review comments
hasdfa 8d32a61
[x-chat] Fix adapter CI issues
hasdfa 2e92b22
[chat-headless] Harden runtime model and message errors
hasdfa 216a7da
[chat-headless] Fix runtime branch CI
hasdfa c8fc6ba
[chat-headless] Keep runtime tests on pre-slots API
hasdfa 9034463
[chat-headless] Fix runtime static docs output
hasdfa 212b1cc
[chat-headless] Address runtime review comments
hasdfa 0585a84
[chat-headless] Fix provider controlled message reset
hasdfa 555b9fa
[chat-headless] Forward role display names
hasdfa 738f10e
Merge branch 'master' into x-chat-docs-ia-existing-content
hasdfa 2d10846
[chat-headless] Regenerate ChatBox API docs
hasdfa 285865c
[x-chat] Harden material message surfaces
hasdfa 2f6463d
[x-chat] Fix material message surfaces CI
hasdfa 66c6e5a
[x-chat] Fix message surface API docs generation
hasdfa 613840a
[docs] Dedupe chat API imports
hasdfa 7d4443f
[docs] Address chat nav review suggestions
hasdfa bcd8b46
Merge branch 'master' into x-chat-docs-ia-existing-content
hasdfa cdaf1cb
Merge branch 'master' into x-chat-headless-runtime-model
hasdfa 1648d70
Merge branch 'master' into x-chat-headless-runtime-model
hasdfa 696e9be
Merge branch 'master' into x-chat-docs-ia-existing-content
hasdfa a48abf7
[docs] Align chat display nav group path
hasdfa 81ab35f
Merge branch 'master' into x-chat-headless-runtime-model
hasdfa aee4621
[chat-headless] Address runtime model review comments
hasdfa 59ea6ab
Merge branch 'master' into x-chat-docs-ia-existing-content
hasdfa 2a6984b
Merge branch 'master' into x-chat-docs-ia-existing-content
hasdfa ebeccbd
Merge remote-tracking branch 'upstream/master' into x-chat-headless-r…
hasdfa 557d583
Merge remote-tracking branch 'upstream/master' into x-chat-material-m…
hasdfa 25959cd
Update messageReasoningLabel from 'Thoughts' to 'Reasoning'
hasdfa e35f0ee
[docs] Fix controlled composer demo width
hasdfa b906a95
fix tests
hasdfa 0cd3365
fix tests
hasdfa 71abd6b
[docs] Fix controlled composer demo width
hasdfa 65b335c
Merge remote-tracking branch 'origin/x-chat-docs-ia-existing-content'…
hasdfa 0696106
Merge remote-tracking branch 'origin/x-chat-headless-runtime-model' i…
hasdfa 712e696
Merge branch 'master' into x-chat-material-message-surfaces
hasdfa 2ce51bb
Merge branch 'master' into x-chat-material-message-surfaces
hasdfa 8dc6572
Merge branch 'master' into x-chat-material-message-surfaces
hasdfa 5d1d0c6
Merge remote-tracking branch 'upstream/master' into x-chat-material-m…
Copilot 4258a05
Merge master into copilot/x-chat-material-message-surfaces-reopen
Copilot ed6de9a
Merge branch 'master' into copilot/hasdfamui-xcopilotx-chat-material-…
hasdfa b59eebd
[x-chat] Address review feedback on Material message surfaces
hasdfa 5435ba0
[x-chat] Use an effect to auto-open the tool input section
hasdfa fe84f39
[x-chat] Restore the default conversation-list sidebar width
hasdfa dcc0fed
Merge branch 'master' into copilot/hasdfamui-xcopilotx-chat-material-…
hasdfa 12da38f
Merge branch 'master' into copilot/hasdfamui-xcopilotx-chat-material-…
hasdfa 8d27d9b
Merge branch 'master' into copilot/hasdfamui-xcopilotx-chat-material-…
hasdfa dc4e741
Merge branch 'master' into copilot/hasdfamui-xcopilotx-chat-material-…
hasdfa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import * as React from 'react'; | ||
| import { ApiPage } from '@mui/internal-core-docs/ApiPage'; | ||
| import { mapApiPageTranslations } from '@mui/internal-core-docs/mapApiPageTranslations'; | ||
| import jsonPageContent from './chat-message-error.json'; | ||
|
|
||
| export default function Page(props) { | ||
| const { descriptions } = props; | ||
| return <ApiPage descriptions={descriptions} pageContent={jsonPageContent} />; | ||
| } | ||
|
|
||
| export async function getStaticProps() { | ||
| const req = require.context( | ||
| 'docs/translations/api-docs/chat/chat-message-error', | ||
| false, | ||
| /\.\/chat-message-error.*\.json$/, | ||
| ); | ||
| const descriptions = mapApiPageTranslations(req); | ||
|
|
||
| return { props: { descriptions } }; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "props": {}, | ||
| "name": "ChatMessageError", | ||
| "imports": [ | ||
| "import { ChatMessageError } from '@mui/x-chat/ChatMessageError';", | ||
| "import { ChatMessageError } from '@mui/x-chat';" | ||
| ], | ||
| "classes": [ | ||
| { | ||
| "key": "message", | ||
| "className": "MuiChatMessageError-message", | ||
| "description": "Styles applied to the message text element.", | ||
| "isGlobal": false | ||
| }, | ||
| { | ||
| "key": "retryButton", | ||
| "className": "MuiChatMessageError-retryButton", | ||
| "description": "Styles applied to the retry button.", | ||
| "isGlobal": false | ||
| }, | ||
| { | ||
| "key": "root", | ||
| "className": "MuiChatMessageError-root", | ||
| "description": "Styles applied to the root element.", | ||
| "isGlobal": false | ||
| } | ||
| ], | ||
| "spread": true, | ||
| "themeDefaultProps": null, | ||
| "muiName": "MuiChatMessageError", | ||
| "filename": "/packages/x-chat/src/ChatMessageError/ChatMessageError.tsx", | ||
| "inheritance": null, | ||
| "demos": "<ul><li><a href=\"/x/react-chat/behavior/error-handling/\">Chat - Error Handling</a></li></ul>", | ||
| "cssComponent": false | ||
| } |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.