Skip to content

Conversation

@kraenhansen
Copy link
Contributor

@kraenhansen kraenhansen commented Nov 26, 2025

COMPASS-9642

Description

Stacked on #7594.

This PR upgrades the chat / assistant related LG packages to their latests version.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@kraenhansen kraenhansen self-assigned this Nov 26, 2025
@kraenhansen kraenhansen added dependencies Pull requests that update a dependency file no release notes Fix or feature not for release notes labels Nov 26, 2025
@kraenhansen kraenhansen force-pushed the kh/leafygreen-modal-updates branch 8 times, most recently from e822695 to a8bf853 Compare December 1, 2025 14:02
@kraenhansen kraenhansen force-pushed the kh/leafygreen-modal-updates branch 4 times, most recently from deff4e5 to 274efbb Compare December 12, 2025 14:40
@kraenhansen kraenhansen force-pushed the kh/leafygreen-chat-updates branch 2 times, most recently from b1fc553 to c20fba8 Compare December 16, 2025 13:43
@kraenhansen kraenhansen changed the base branch from kh/leafygreen-modal-updates to main December 16, 2025 13:43
@kraenhansen kraenhansen requested a review from gagik December 16, 2025 13:44
@kraenhansen kraenhansen force-pushed the kh/leafygreen-chat-updates branch from c20fba8 to 7438147 Compare December 16, 2025 14:15
@kraenhansen kraenhansen force-pushed the kh/leafygreen-chat-updates branch from 944ee4d to 2ba18e7 Compare December 17, 2025 14:41
@kraenhansen kraenhansen force-pushed the kh/leafygreen-chat-updates branch from 2ba18e7 to c6ecdb1 Compare December 17, 2025 15:14
@kraenhansen kraenhansen marked this pull request as ready for review December 18, 2025 10:56
@kraenhansen kraenhansen requested a review from a team as a code owner December 18, 2025 10:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades LeafyGreen chat and assistant-related UI component packages to their latest versions. The changes primarily involve package version bumps and the removal of custom CSS workarounds that are no longer needed with the updated LeafyGreen components.

  • Upgraded chat-related LeafyGreen packages (@lg-chat/*) to major versions
  • Updated LeafyGreen tokens and select components to latest versions
  • Removed custom CSS styling overrides that are now handled by the upgraded components

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/compass-components/package.json Updates LeafyGreen chat components and tokens to latest versions
packages/compass-assistant/src/components/assistant-chat.tsx Removes custom CSS workarounds for layout, padding, and styling that are now handled by upgraded components
packages/compass-assistant/src/components/assistant-chat.spec.tsx Updates test expectation to match new disclaimer text from upgraded components
packages/compass-assistant/src/compass-assistant-provider.spec.tsx Fixes test setup to properly resolve promises with closed ReadableStreams
package.json Updates root-level LeafyGreen package versions to match

"@lg-chat/message": "^10.1.1",
"@mongodb-js/compass-context-menu": "^0.3.2",
"@mongodb-js/diagramming": "^2.2.2",
"@mongodb-js/diagramming": "2.2.2",
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version specifier for @mongodb-js/diagramming was changed from '^2.2.2' to '2.2.2' (exact version). This differs from all other dependencies which use caret (^) ranges. Unless there's a specific reason to pin this exact version, it should use '^2.2.2' for consistency with the rest of the package.json.

Suggested change
"@mongodb-js/diagramming": "2.2.2",
"@mongodb-js/diagramming": "^2.2.2",

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a workaround until #7643 lands.

>
<LeafyGreenChatProvider>
<ChatWindow title="MongoDB Assistant" className={chatWindowFixesStyles}>
<ChatWindow>
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title prop 'MongoDB Assistant' was removed from ChatWindow. If the title is still needed for accessibility or UI purposes, consider documenting why it was removed or verify that the upgraded component handles this internally.

Suggested change
<ChatWindow>
<ChatWindow aria-label="MongoDB Assistant">

Copilot uses AI. Check for mistakes.
@kraenhansen kraenhansen merged commit 7989492 into main Dec 18, 2025
83 of 85 checks passed
@kraenhansen kraenhansen deleted the kh/leafygreen-chat-updates branch December 18, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants