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

[jb-gw]: disable new workspace button when url is blank #9197

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

yaohui-wyh
Copy link
Contributor

@yaohui-wyh yaohui-wyh commented Apr 8, 2022

Description

  • Disable new workspace button if url is blank
  • Use safe calls (?.let) for null checks

Related Issue(s)

Clean up TODOs inside codebase

How to test

Build & Install the plugin following
https://github.com/gitpod-io/gitpod/blob/main/components/ide/jetbrains/gateway-plugin/README.md#L8

Release Notes

The "New Workspace" button gets disabled if the repository URL is blank, on JetBrains Gateway.

Documentation

Copy link
Contributor

@felladrin felladrin left a comment

Choose a reason for hiding this comment

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

Thanks for adding the validation, @yaohui-wyh!

Code change is clear and the button is working as described.

"New Workspace" button is enabled when the URL field is filled:
image

And disabled when it's empty, independently of the IDE selected:
image

@felladrin
Copy link
Contributor

felladrin commented Apr 11, 2022

Here's a suggestion for the Release Notes text on PR description:

The "New Workspace" button gets disabled if the repository URL is blank, on JetBrains Gateway.

Co-authored-by: Victor Nogueira <felladrin@gmail.com>
Copy link
Contributor

@felladrin felladrin left a comment

Choose a reason for hiding this comment

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

All good! Thanks @yaohui-wyh!

A new Gateway Plugin version will be published soon to JetBrains Plugins Marketplace! 🚀

@roboquat roboquat merged commit ec3aa78 into gitpod-io:main Apr 12, 2022
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: accepted ✔️ community-contribution deployed: IDE IDE change is running in production deployed Change is completely running in production release-note size/S team: IDE
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants