Skip to content

[dashboard] display warning for latest IDE versions #8783

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

Merged
merged 4 commits into from
Apr 11, 2022
Merged

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Mar 14, 2022

Description

Allow users to switch IDE version (latest) with one checkbox toggle only
Display warning for latest IDE versions on the loading screen for latest versions like VS Code Insiders and EAP of JB products

  • Add test cases
  • Need design
    • Cannot find switch ide design, color detail needed (dark mode?)
    • We need to change margin-top of ws starting page, like Running status
Switch IDE Warning Warning Dark
image image image

You can see the new Alert component [all here] removed in this commit 3abafdf

image (2)

Related Issue(s)

Fixes #8028, #8786

How to test

  1. Switch your Preferences with Latest Release marked
  2. Open workspace, see if warning display

How to deploy

Do WebApp deployment first, then IDE deploy

Release Notes

Display warning message when users choose latest IDE
Update IDE choose preferences UI

Documentation

@codecov
Copy link

codecov bot commented Mar 14, 2022

Codecov Report

Merging #8783 (d40ad5c) into main (a567595) will increase coverage by 3.83%.
The diff coverage is n/a.

❗ Current head d40ad5c differs from pull request most recent head 00d7945. Consider uploading reports for the commit 00d7945 to get more accurate results

@@            Coverage Diff            @@
##            main    #8783      +/-   ##
=========================================
+ Coverage   7.34%   11.17%   +3.83%     
=========================================
  Files         32       18      -14     
  Lines       2234      993    -1241     
=========================================
- Hits         164      111      -53     
+ Misses      2067      880    -1187     
+ Partials       3        2       -1     
Flag Coverage Δ
components-gitpod-cli-app 11.17% <ø> (ø)
install-installer-raw-app ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../installer/pkg/components/ws-manager/deployment.go
...staller/pkg/components/ws-manager/networkpolicy.go
...l/installer/pkg/components/ws-manager/tlssecret.go
...components/ws-manager/unpriviledged-rolebinding.go
install/installer/pkg/common/objects.go
install/installer/pkg/common/common.go
...nstall/installer/pkg/components/ws-manager/role.go
...l/installer/pkg/components/ws-manager/configmap.go
install/installer/pkg/common/ca.go
install/installer/pkg/common/display.go
... and 4 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@akosyakov
Copy link
Member

akosyakov commented Mar 14, 2022

@gtsiolis Could you have a look at design for this one? 🙏

@akosyakov
Copy link
Member

While waiting for @gtsiolis, I think this callout should not be put at the position of usual workspace warnings, but rather at the bottom as a new one. We want to inform a user that he is running latest version, not scare into thinking that something is already wrong with the workspace.

@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 14, 2022

Adding this to In Progress.

Agree with @akosyakov in #8783 (comment), this could be a sublte info alert further below.

ETA: Will take a look later today or tomorrow. ⏱️

@gtsiolis gtsiolis requested a review from a team March 14, 2022 16:51
@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 15, 2022

Looking at this now! 👀

@mustard-mh mustard-mh closed this Mar 16, 2022
@roboquat roboquat added size/XS and removed size/XXL labels Mar 16, 2022
@mustard-mh mustard-mh reopened this Mar 16, 2022
@roboquat roboquat added size/L and removed size/XS labels Mar 16, 2022
@mustard-mh mustard-mh force-pushed the hw/fix-8028 branch 3 times, most recently from abd5874 to 639f507 Compare March 16, 2022 19:40
@mustard-mh
Copy link
Contributor Author

mustard-mh commented Mar 16, 2022

@gtsiolis I updated this PR, you can see PR description

@gtsiolis gtsiolis added team: webapp Issue belongs to the WebApp team and removed team: webapp Issue belongs to the WebApp team labels Mar 16, 2022
@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 16, 2022

Looking at this now! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

This is great, @mustard-mh! 🔮

Sorry for not posting any detailed specs sooner. 🙏

Left some feedback in the comments below, let me know if something is not clear enough. Also, if any comment or suggestion feels like out of the scope of this PR or could significantly increase the implementaiton scope, feel free to ignore it and open follow up issue(s). 🏓

Feedback is always welcome! 🥯

@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 16, 2022

Just wanted to repost here some screenshots of the preferences. This is a great improvement already without tackling any of the design comments above! Thanks for tackling this, @mustard-mh! ✨

Cc @akosyakov @loujaybee

BEFORE AFTER
editors-before editors-after

))}
</ul>
</InfoBox>
)}
<p className="text-left w-full text-gray-500">
The <strong>JetBrains desktop IDEs</strong> are currently in beta.{" "}
Copy link
Contributor

@gtsiolis gtsiolis Apr 8, 2022

Choose a reason for hiding this comment

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

question: Posting one last question here for future reference which could be out of the scope of this PR. Do we still consider JetBrains editor support beta? Maybe this beta notice is something to consider removing in a future PR. Cc @akosyakov @loujaybee

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's still in beta, no GA now

Copy link
Member

Choose a reason for hiding this comment

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

Yes, everything is in BETA but VS Code Web.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for clarifying, @iQQBot @akosyakov! 🙏

@mustard-mh
Copy link
Contributor Author

mustard-mh commented Apr 8, 2022

To be more clear, for compatibility:

IDE deployment must be after WebApp deploy, so hope this PR merge before WebApp is deployed to unblock the deployment of IDE

cc @geropl

@geropl
Copy link
Member

geropl commented Apr 11, 2022

IDE deployment must be after WebApp deploy, so hope this PR merge before WebApp is deployed to unblock the deployment of IDE

@mustard-mh 👍 Next plannecd deployment is tomorrow, 10:00am CET.

}
if (!data.ideImage) {
data.ideImage = defaultIdeImage;
// throw new Error("cannot choose correct browser ide");
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this comment?

@akosyakov
Copy link
Member

akosyakov commented Apr 11, 2022

What is holding it back? Webapp team release is tomorrow.

@mustard-mh
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit c5ca6ed into main Apr 11, 2022
@roboquat roboquat deleted the hw/fix-8028 branch April 11, 2022 14:00
@geropl
Copy link
Member

geropl commented Apr 11, 2022

What is holding it back? Webapp team release is tomorrow.

@akosyakov you need to review as well it says: 👇 🤷
image

@gtsiolis
Copy link
Contributor

gtsiolis commented Apr 11, 2022

Woohoo! Thank you @mustard-mh for working on this and @iQQBot @andreafalzetti @akosyakov @geropl for reviewing and helping merge this. Much looking forward to seeing this in production soon. 🏀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/XXL team: IDE team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

display warning for latest IDE versions on the loading screen
10 participants