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

[dashboard] Re-implement default IDE switch for new dashboard #3482

Merged
merged 8 commits into from
Mar 19, 2021

Conversation

jankeromnes
Copy link
Contributor

@jankeromnes jankeromnes commented Mar 17, 2021

Also fix styling of Account and other Settings pages.

TODOs:

  • Reimplement a global Settings commit mechanism to actually change values for the user

@jankeromnes jankeromnes marked this pull request as draft March 17, 2021 17:17
@jankeromnes jankeromnes force-pushed the jx/dash2-default-ide branch 4 times, most recently from bee5373 to 10692da Compare March 17, 2021 18:57
@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 17, 2021

Werft already called it a day 😂

/werft run

👍 started the job as gitpod-build-jx-dash2-default-ide.5

@jankeromnes jankeromnes force-pushed the jx/dash2-default-ide branch 4 times, most recently from cfe3107 to 6e82249 Compare March 18, 2021 12:38
@jankeromnes jankeromnes marked this pull request as ready for review March 18, 2021 13:05
@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 18, 2021

Now looks good and has a few other visual improvements.

It's just lacking a global Settings commit mechanism to actually change the value on the user.

@svenefftinge
Copy link
Member

svenefftinge commented Mar 18, 2021

👍
Some comments:

  • Please remove the third option and the possibility specify an image.
  • No need to tell users that Gitpod uses code as default (there is no default as I have to choose between the two).
  • please add cursor-pointer to the cards.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 18, 2021

Thanks!

Please remove the third option and the possibility specify an image.

I can hide it when ide-settings permission is off (as in the old dashboard) EDIT: ✅

No need to tell users that Gitpod uses code as default (there is no default as I have to choose between the two).

I agree. @gtsiolis do you have an alternative sub-text in mind? Maybe something like "Choose which IDE your workspaces should use."? EDIT: ✅

@svenefftinge
Copy link
Member

Choose which IDE your workspaces should use.

It's not the workspace that uses an IDE but the user. So how about:

Choose which IDE you want to use.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 18, 2021

Ok, the page now actually changes the user settings in the DB:

mysql> select * from d_b_user;
+--------------------------------------+--------------------------+----------------------------------------------------+--------------------------+----------------+------------------------------+---------+----------------------------+------------+---------------+-----------------+--------------+--------------------------+---------------------------------------+
| id                                   | creationDate             | avatarUrl                                          | name                     | fullName       | allowsMarketingCommunication | blocked | _lastModified              | privileged | markedDeleted | noReleasePeriod | featureFlags | rolesOrPermissions       | additionalData                        |
+--------------------------------------+--------------------------+----------------------------------------------------+--------------------------+----------------+------------------------------+---------+----------------------------+------------+---------------+-----------------+--------------+--------------------------+---------------------------------------+
| 2f49d29c-1f44-453f-ae9a-1fe2d3a46d49 | 2021-03-18T16:03:55.544Z | https://avatars.githubusercontent.com/u/599268?v=4 | jankeromnes              | Jan Keromnes   |                            0 |       0 | 2021-03-18 18:21:29.138004 |          0 |             0 |               0 | NULL         | ["admin","ide-settings"] | {"ideSettings":{"defaultIde":"code"}} |
+--------------------------------------+--------------------------+----------------------------------------------------+--------------------------+----------------+------------------------------+---------+----------------------------+------------+---------------+-----------------+--------------+--------------------------+---------------------------------------+

However, my new workspaces still all start with Theia for some reason. 🤔

EDIT: Maybe it still needs "featurePreview":true to work? Confirmed & fixed in #3495

TODO: Disable on click, re-enable on server response. Maybe also drive-by fix Create > New Workspace button.

@svenefftinge
Copy link
Member

svenefftinge commented Mar 19, 2021

Please remove the image form.
Screenshot 2021-03-19 at 08 42 52

Also, please make it so that new users use VS Code as default.

<p className="text-sm text-gray-400 pb-4">This action will remove all the data associated with your account in Gitpod.</p>
<button className="border-red-900 bg-red-500 hover:bg-red-700" onClick={() => setModal(true)}>Delete Account</button>
<button className="border-red-600 text-red-600 bg-white hover:border-red-800 hover:text-red-800" onClick={() => setModal(true)}>Delete Account</button>
Copy link
Member

@svenefftinge svenefftinge Mar 19, 2021

Choose a reason for hiding this comment

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

Is that bg-white based on a design I missed?

Copy link
Contributor Author

@jankeromnes jankeromnes Mar 19, 2021

Choose a reason for hiding this comment

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

That's a secondary button (outline vs plain color), cc @gtsiolis

Currently, it seems that all <button> have bg-green-600 by default:

button {
@apply cursor-pointer px-3 py-1 my-auto bg-green-600 hover:bg-green-700 border-2 border-green-800 text-gray-100 text-sm rounded-md;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

For more context, see relevant specs in #3395.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 19, 2021

Please remove the image form.

How do you get to see that? Here's what I see:

Screenshot 2021-03-19 at 08 50 45

Screenshot 2021-03-19 at 08 50 52

@svenefftinge
Copy link
Member

svenefftinge commented Mar 19, 2021

How do you get to see that? Here's what I see:

I don't know I just see it :-)

But you can really remove all the code around a custom IDE image for now, as we are not sure we want to go down that path.

@jankeromnes jankeromnes force-pushed the jx/dash2-default-ide branch from 95bd263 to 2d3d4f0 Compare March 19, 2021 11:44
@jankeromnes
Copy link
Contributor Author

Works well now!

@jankeromnes jankeromnes merged commit 9a9ff73 into dashboard-v2 Mar 19, 2021
@jankeromnes jankeromnes deleted the jx/dash2-default-ide branch March 19, 2021 12:01
pavan-tri pushed a commit to trilogy-group/gitpod that referenced this pull request Apr 28, 2021
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.

3 participants