Skip to content

Conversation

@ethanwinters
Copy link
Contributor

@ethanwinters ethanwinters commented Nov 7, 2025

Closes #648 #526

On the demo site our transition is very fast so we didn't notice that the onViewChange fires when we have hidden the chat contents already. This leaves folks with longer running animation states in a place where the content is hidden before their animation completes. Added a new async friendly onViewPreChange callback to both the react and web component. This is using the already existing event for this purpose, it was just an oversight.

While I was updating the demo site to account for the change, went ahead and banged out 526 which was meant to bring the sidebar into alignment with what design expects the sidebar to do.

Testing / Reviewing

Check the docs for my language in describing the onViewChange and onViewPreChange callbacks.

In the demo site, make sure the sidebar panel animates in and out in a nice way.

@ethanwinters ethanwinters requested a review from a team as a code owner November 7, 2025 17:38
@ethanwinters ethanwinters requested a review from annawen1 November 7, 2025 17:38
@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for ai-chat-components-react ready!

Name Link
🔨 Latest commit b223438
🔍 Latest deploy log https://app.netlify.com/projects/ai-chat-components-react/deploys/6911f244a1a45a000869c76c
😎 Deploy Preview https://deploy-preview-658--ai-chat-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for carbon-ai-chat-components ready!

Name Link
🔨 Latest commit b223438
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-components/deploys/6911f24456b7450007d90e0c
😎 Deploy Preview https://deploy-preview-658--carbon-ai-chat-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for carbon-ai-chat-demo ready!

Name Link
🔨 Latest commit b223438
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-demo/deploys/6911f2441af7ee000847d4bb
😎 Deploy Preview https://deploy-preview-658--carbon-ai-chat-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@annawen1 annawen1 merged commit 89ba5ad into carbon-design-system:release/v1.2.0 Nov 10, 2025
19 checks passed
annawen1 pushed a commit that referenced this pull request Nov 10, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 10, 2025
* chore(release): publish [skip ci]

 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]

* fix: demo launcher (#634)

when going to sidebar view, we were losing launcher setting when we switch back

* fix(ordered-list): list counter for safari (#637)

Co-authored-by: Ethan Winters <[email protected]>

* fix(option): pass in label to ensure response come back with label value (#650)

* fix(option): pass in label to ensure response come back with label value

* fix(dropdown): trigger at select event to ensure value is set

* fix: layout properties get assigned to the right variable (#653)

and with correct specificity

* chore: package-lock.json

* chore(release): publish [skip ci]

 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]

* feat: add onViewPreChange callback (#658)

* chore(release): publish [skip ci]

 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]

* chore(release): publish [skip ci]

 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]
 - @carbon/[email protected]

* chore: update versions.js file

---------

Co-authored-by: carbon-bot <[email protected]>
Co-authored-by: Ethan Winters <[email protected]>
Co-authored-by: Anna Wen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants