Skip to content
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

no unclickable links in server connection dialogs in the original or experimental picker #11378

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

IanMatthewHuff
Copy link
Member

Fixes #11285

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for feature-requests.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

} else {
return DataScience.remoteJupyterConnectionFailedWithoutServerWithErrorWeb().format(
// Notify the user of web extension specific connection help
Copy link
Member Author

Choose a reason for hiding this comment

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

We have two different server selection flows currently. This is the original flow that uses an input box. For this scenario keeping the validation returned is nice. So I broke this up into a smaller specific error message for the web specific connection error info, then the normal connection error message that shows in the red validation box.

@@ -206,7 +206,7 @@ export class MultiStepInput<S> implements IMultiStepInput<S> {
input.enabled = false;
input.busy = true;
// No validation allowed on a quick pick. Have to put up a dialog instead
await this.shell.showErrorMessage(validationMessage, { modal: true });
await this.shell.showErrorMessage(validationMessage);
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes the new experimental flow. It was using a quick pick instead of an input box. There error message that it was showing was being forced to modal. But at this point the flow just ends regardless of modal or not. So there is no need to make this a modal dialog that can't show links. Just use a normal error message. This is the only multistep quick pick flow that uses validation, so we know it won't change any other flows.

@IanMatthewHuff IanMatthewHuff marked this pull request as ready for review September 15, 2022 16:43
@IanMatthewHuff IanMatthewHuff merged commit 1fb11ad into main Sep 15, 2022
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/removeUnclickableLinks branch September 15, 2022 18:04
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.

Don't show unclickable links in dialogs
2 participants