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] update preferences page for desktop IDE's #7653

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Jan 18, 2022

Description

update preferences page for desktop IDE's. Link to Figma design

Related Issue(s)

Fixes #7568

How to test

  1. Page display like Figma said
  2. Socket trace event works like before

Release Notes

NONE

Documentation

@roboquat roboquat added release-note-none team: webapp Issue belongs to the WebApp team labels Jan 18, 2022
@mustard-mh
Copy link
Contributor Author

/hold

@akosyakov
Copy link
Member

@mustard-mh btw you can convert a PR to draft while working on it

@mustard-mh mustard-mh marked this pull request as draft January 18, 2022 09:16
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from c41a10c to 2f56afd Compare January 18, 2022 10:06
@roboquat roboquat added size/L and removed size/XS labels Jan 18, 2022
@mustard-mh mustard-mh marked this pull request as ready for review January 18, 2022 10:06
@mustard-mh mustard-mh changed the title [dashboard] update preferences page for desktop IDE's [WIP] [dashboard] update preferences page for desktop IDE's Jan 18, 2022
@mustard-mh mustard-mh changed the title [dashboard] update preferences page for desktop IDE's [dashboard] update preferences page for desktop IDE's [WIP] Jan 18, 2022
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from 2f56afd to c04648b Compare January 18, 2022 10:20
@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #7653 (ae57609) into main (bb80946) will decrease coverage by 1.25%.
The diff coverage is n/a.

❗ Current head ae57609 differs from pull request most recent head 63e3024. Consider uploading reports for the commit 63e3024 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7653      +/-   ##
==========================================
- Coverage   11.63%   10.38%   -1.26%     
==========================================
  Files          20       18       -2     
  Lines        1160      992     -168     
==========================================
- Hits          135      103      -32     
+ Misses       1022      888     -134     
+ Partials        3        1       -2     
Flag Coverage Δ
components-gitpod-cli-app 10.38% <ø> (ø)
components-local-app-app-darwin-amd64 ?
components-local-app-app-darwin-arm64 ?
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
components-local-app-app-windows-amd64 ?
components-local-app-app-windows-arm64 ?

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

Impacted Files Coverage Δ
components/local-app/pkg/auth/pkce.go
components/local-app/pkg/auth/auth.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb80946...63e3024. Read the comment docs.

@mustard-mh mustard-mh changed the title [dashboard] update preferences page for desktop IDE's [WIP] [dashboard] update preferences page for desktop IDE's Jan 18, 2022
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from c04648b to e6481d5 Compare January 18, 2022 11:51
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.

Hey @mustard-mh!

1️⃣ You've probably seen this already but accessing the /preferences page returns the following error in the console log:

react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading 'notes')
    at v (24.e57804ef.chunk.js:1:7317)
    at sa (13.5eb9767c.chunk.js:2:454896)
    at Ha (13.5eb9767c.chunk.js:2:464463)
    at $s (13.5eb9767c.chunk.js:2:508187)
    at Tu (13.5eb9767c.chunk.js:2:494437)
    at Cu (13.5eb9767c.chunk.js:2:494365)
    at Ru (13.5eb9767c.chunk.js:2:494228)
    at yu (13.5eb9767c.chunk.js:2:491194)
    at 13.5eb9767c.chunk.js:2:440688
    at t.unstable_runWithPriority (13.5eb9767c.chunk.js:2:517925)
cs @ react-dom.production.min.js:216
Preferences.tsx:168 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'notes')
    at v (24.e57804ef.chunk.js:1:7317)
    at sa (13.5eb9767c.chunk.js:2:454896)
    at Ha (13.5eb9767c.chunk.js:2:464463)
    at $s (13.5eb9767c.chunk.js:2:508187)
    at Tu (13.5eb9767c.chunk.js:2:494437)
    at Cu (13.5eb9767c.chunk.js:2:494365)
    at Ru (13.5eb9767c.chunk.js:2:494228)
    at yu (13.5eb9767c.chunk.js:2:491194)
    at 13.5eb9767c.chunk.js:2:440688
    at t.unstable_runWithPriority (13.5eb9767c.chunk.js:2:517925)

2️⃣ See also #7653 (comment) and relevant docs[1][2] for draft PRs, which is probably something we could add in our handbook under How we develop (internal). Cc @akosyakov

@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from e6481d5 to f124c83 Compare January 18, 2022 12:36
@mustard-mh
Copy link
Contributor Author

Fixed @gtsiolis

@gtsiolis
Copy link
Contributor

gtsiolis commented Jan 18, 2022

Thanks, @mustard-mh!

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, @mustard-mh! 🔮

Left some minor non-blocking comments below, regarding UX and copy changes.

I'd defer to @loujaybee for deciding what to ship in this iteration. 🏓

Approving to unblock merging but holding to let @loujaybee decide on the minor suggestions below.

/hold

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

LGTM label has been added.

Git tree hash: 1a4879c500ee2aa318a00fc6ac765e52a97b6ab2

@jankeromnes jankeromnes self-requested a review January 20, 2022 09:11
Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

Many thanks @mustard-mh for improving the IDE selection code! 🙏

I read the code and the improvements look very good to me overall. 👍 Still, I had a few questions/suggestions, which I added in-line.

Could you please take a look at my comments, and let me know if you agree or disagree with them?

Also, the preview environment seems broken, so I couldn't test this PR, but that's okay since @gtsiolis has already done that. ✅

components/dashboard/public/image/none-dark.svg Outdated Show resolved Hide resolved
components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
components/dashboard/src/settings/Preferences.tsx Outdated Show resolved Hide resolved
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from 7e22f9b to 2086988 Compare January 20, 2022 10:48
@mustard-mh
Copy link
Contributor Author

Also wondering if there has any formatter for dashboard? @jankeromnes

@jankeromnes
Copy link
Contributor

Also wondering if there has any formatter for dashboard? @jankeromnes

Good question. I think when you do F1 > Format Document, it does something (maybe with Prettier?) but I'm not sure where this is configured.

Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

Many thanks for making all these fixes so quickly! 🙏

The code now looks good to me, so I'll approve it.

However, I've noticed a few small problems on second read, so I've added a few more comments and I'll add a hold on this PR so that it doesn't get merged automatically. Please take a look at my comments, and decide whether to address them or not.

Alternatively, if this PR is time-critical, please feel free to remove/cancel the hold, so that this PR gets merged, and to open follow-up issues to address my comments later.

/lgtm
/hold

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

LGTM label has been added.

Git tree hash: cfb362e2a950c4a9af750fd3d28b9bf191d0f624

@roboquat roboquat removed the lgtm label Jan 20, 2022
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch 3 times, most recently from 11bfbb0 to 1183f9e Compare January 20, 2022 13:17
Co-authored-by: George Tsiolis <[email protected]>
Co-authored-by: Jan Keromnes <[email protected]>
@mustard-mh mustard-mh force-pushed the mustard-mh/update-preferences-page-7568 branch from 1183f9e to 63e3024 Compare January 20, 2022 13:25
@mustard-mh
Copy link
Contributor Author

mustard-mh commented Jan 20, 2022

Also wondering if there has any formatter for dashboard? @jankeromnes

Good question. I think when you do F1 > Format Document, it does something (maybe with Prettier?) but I'm not sure where this is configured.

I think it's better to put some lint or format config in dashboard
For me, in this project, I often forget convert let to const, add ; in the trailing and some incorrectly indent 😅

@akosyakov
Copy link
Member

@mustard-mh don't forget to unhold if you think it is good to go

@mustard-mh
Copy link
Contributor Author

/unhold

@akosyakov
Copy link
Member

/lgtm

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 0106c07905f15ef03b9b8c82bea54a113a33784e

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

Associated issue: #7568

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update preferences page for desktop IDE's
5 participants