-
Notifications
You must be signed in to change notification settings - Fork 36
chore(chat): Ai components doc updates #600
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
base: main
Are you sure you want to change the base?
chore(chat): Ai components doc updates #600
Conversation
❌ Deploy Preview for carbon-labs-web-components failed. Why did it fail? →
|
✅ Deploy Preview for carbon-labs-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@@ -14,7 +14,10 @@ | |||
# Other packages | |||
/packages/react/src/components/AnimatedHeader/ @carbon-design-system/animated-header-devs | |||
/packages/react/src/components/Processing/ @carbon-design-system/processing-devs | |||
<<<<<<< Updated upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should clean this up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's delete this file here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small things
@@ -211,6 +211,8 @@ export const Showcase = { | |||
html` ${examples.map( | |||
(example) => | |||
html` | |||
<h3>${example.title}</h3> | |||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer styles to add spacing rather than break tags
'.clabs--chat-messages-container' | ||
); | ||
);*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove dead code
if (!this.scrollTimeout) { | ||
this.scrollTimeout = setTimeout(() => { | ||
if (this._autoScroll || this.forceScrollDown) { | ||
let scrollTarget = this.scrollDiv?.scrollHeight; | ||
if (this._limitScroll) { | ||
scrollTarget = this._previousScrollHeight; | ||
} | ||
console.log(this.scrollDiv); | ||
this.scrollDiv?.scrollTo({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming these console log's should be removed as well
: ''} | ||
|
||
${dockingEnabled ? clabsPrefix + '--chat-messages-container-docked' : ''}"> | ||
: ''} ${dockingEnabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a little hard to follow with all the nested ternary's here - is there a better place I'm wondering... maybe before the return you could have an array and for each of those evaluated class names, if supported ( streamResponses, dockingEnabled... etc - is truthy ) push the class name... then your class assignment here you could just Array.split(" ").
@@ -123,7 +123,7 @@ export default class diagramElement extends LitElement { | |||
* @param {String} mode - fullscreen, test or default | |||
*/ | |||
_buildOptions() { | |||
const whiteTheme = { | |||
/*const whiteTheme = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove dead code
Closes #
{{short description}}
Changelog
New
Changed
Removed
Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}