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

[ide] Add VS Code desktop IDE options #6671

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Conversation

corneliusludmann
Copy link
Contributor

Description

This PR adds 2 new desktop IDE options:

  • VS Code Desktop
  • VS Code Desktop Insiders

What is not included in this PR

For the sake of creating a Minimum Viable Change (MVC), this PR adds only what's needed to add the VS Code Desktop option. It explicitly does not improve the flow (e.g. opening the IDE directly without clicking on the “Open” button—will be addressed in a follow-up PR pretty soon, see also: #6602) and does not improve the preferences page.

Related Issue(s)

Fixes #6488

How to test

  • Have VS Code installed on your local computer
  • Choose VS Code Desktop in the preferences
  • Start a workspcace
  • Click the “Open in VS Code Desktop” button
  • Verify that the workspace opens in your local VS Code.

Release Notes

Add VS Code Desktop in the preferences to always open your workspace in VS Code Desktop

Documentation

@loujaybee Do we need a docs issue?

@jeanp413 jeanp413 self-requested a review November 12, 2021 15:53
Copy link
Member

@jeanp413 jeanp413 left a comment

Choose a reason for hiding this comment

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

/lgtm

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: c45fb6de1dca1a8242e8d5a8a75624704a28ef66

@akosyakov
Copy link
Member

VS Code Desktop support is in preview as well, but It does not look like that from our settings page:

Screenshot 2021-11-16 at 09 57 23

cc @loujaybee @gtsiolis

@gtsiolis gtsiolis self-requested a review November 16, 2021 10:30
@gtsiolis
Copy link
Contributor

gtsiolis commented Nov 16, 2021

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.

Thanks @corneliusludmann! 🔝

UX works like a charm. 🔮

There are a couple of minor issues out of the scope of this PR that could have been fixed in previous PRs but we can pick these up in follow PRs:

🅰️ Using max-w-2xl to limit the alert width 🅱️ Using similar font color for subtitles
Screenshot 2021-11-16 at 3 21 40 PM Screenshot 2021-11-16 at 3 21 49 PM

🍊 🍊 🍊 🍊

VS Code Desktop support is in preview as well, but It does not look like that from our settings page

question: This was also discussed in #6485 (comment). @corneliusludmann Do you think it's worth moving forward with a single parent beta label here? Cc @akosyakov @loujaybee

🍋 🍋 🍋 🍋

Approving to unblock merging but holding in case we'd like to update any of the changes here. 🏁

/hold

components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
@corneliusludmann
Copy link
Contributor Author

corneliusludmann commented Nov 17, 2021

Using similar font color for subtitles

Indeed, the font colors differ. I don't want to rant again about this but this is a typical symptom of the extensive usage of the CSS utility classes that are spread throughout the whole code which excessively violates the DRY principle, IMO. Why we don't have a subtitle component or a subtitle CSS color? (sorry 😬 😇)

Anyway: Checkbox uses text-gray-400 as subtitle color (by the way: no dark color defined there) and the preferences page use text-gray-500. Which one is the correct subtitle color, @gtsiolis?

@corneliusludmann
Copy link
Contributor Author

Updated:

image

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.

Thanks @corneliusludmann! 🔝

Left some minor comments below but feel free to skip these and continue the discussion in follow up issues.

🍊 🍊 🍊 🍊

Regarding #6671 (comment):

Indeed, the font colors differ. I don't want to rant again about this but this is a typical symptom of the extensive usage of the CSS utility classes that are spread throughout the whole code which excessively violates the DRY principle, IMO.

I love rants! I think it's natural and ok to have inconsistencies like these around for a while. It makes is easier for someone to contribute and less scary to change or maintain components that contain too much abstraction and are used for multiple and different purposes across the product. 🧘

patrick-meditate

Cross-posting from #6390 (comment):

FYI, we've decided to embrace utility classes for the product dashboard ... preferring duplication over abstraction and extracting pieces into components when needed. 🌬️

🍋 🍋 🍋 🍋

Why we don't have a subtitle component or a subtitle CSS color?

Good point! I'd say it's a combination of a) ongoing component experimentation with patterns like these, b) cutting corners during implementation, and c) skipping UX reviews in PRs that change the dashboard. 💭

While the product evolves more patterns strengthen the need to componetize parts of the product. One of these patterns that seems to be around for a while is the headers and subtitles within settings pages. Opened #6764 to track this. 🏀

🥝 🥝 🥝 🥝

Checkbox uses text-gray-400 as subtitle color (by the way: no dark color defined there) and the preferences page use text-gray-500. Which one is the correct subtitle color, @gtsiolis?

Let's go with text-gray-500 dark:text-gray-400 to match the proposed changes in #6762. ⚾

<div className="flex justify-center mt-3">
<img className="w-16 filter-grayscale self-center" src={vscodeInsiders} />
</div>
<PillLabel type="warn" className="font-semibold mt-2 py-0.5 px-2 self-center">Insiders</PillLabel>
Copy link
Contributor

@gtsiolis gtsiolis Nov 17, 2021

Choose a reason for hiding this comment

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

issue: The problem with re-using the same component (PillLabel) here is that it's now not clear to the user what's the difference between these labels. Cc @loujaybee

suggestion: Ideally, we should at least use a different style but do not want to push back from merging this as is. We can always iterate and improve this later, as you mentioned in #6485 (comment), since this is out of the scope of this PR. Let's make sure there's a follow up issue if we decide to improve the beta label later. ➿

BEFORE AFTER
label-before label-after

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this to this issue: #6601 (comment)

@akosyakov
Copy link
Member

akosyakov commented Nov 18, 2021

/lgtm
/hold

Hold just in case if @corneliusludmann wants do another round and address @gtsiolis feedback.

Really sorry for so many rounds, we should better work at reviewing it first time 😬

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 143527056c56b4ba3e088cd6bdd580a63953f78a

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akosyakov, gtsiolis, jeanp413

Associated issue: #6602

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add VSCode Desktop and VSCode Insiders to Desktop IDE's configuration
5 participants