Skip to content

feat(compass-assistant): connection error entrypoint COMPASS-9605 #7224

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Aug 22, 2025

some TODOs, needs tests.

@lerouxb lerouxb added the feature flagged PRs labeled with this label will not be included in the release notes of the next release label Aug 22, 2025
@github-actions github-actions bot added the feat label Aug 22, 2025
@@ -134,6 +165,8 @@ const openConnectionFailedToast = (
) => {
const failedToastId = connectionInfo?.id ?? 'failed';

// TODO: close the existing connection toast and make a new one for the
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not happy about this idea because it will cause some weird animations if we close the connection toast and immediately open it again. Still mulling it over, might address this stacking issue in a separate PR.

>
<Home {...props}></Home>
</CompassConnections>
<CompassAssistantProvider>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

CompassAssistantProvider has to wrap CompassConnections so that CompassConnections has access to it.


Error message:
${connectionError}`,
displayText: 'Provide an explanation of this connection error.',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if we want overriding displayText in this case. Connection errors aren't big like explain plans 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

const connectionString = redactConnectionString(
connectionInfo.connectionOptions.connectionString
);
const connectionError = error.toString();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we want more than just the error as a string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat feature flagged PRs labeled with this label will not be included in the release notes of the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant