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

Add 'Show welcome page on startup' checkbox #2881

Merged

Conversation

JessicaJHee
Copy link
Contributor

@JessicaJHee JessicaJHee commented May 19, 2023

Fixes #2552

  • Also fixes a distorted image in the welcome page

show-welcome-page-check

@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Patch coverage: 90.00% and project coverage change: +1.56 🎉

Comparison is base (3a18ed6) 35.22% compared to head (5a0af44) 36.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2881      +/-   ##
==========================================
+ Coverage   35.22%   36.78%   +1.56%     
==========================================
  Files          55       53       -2     
  Lines        4063     3681     -382     
  Branches      763      715      -48     
==========================================
- Hits         1431     1354      -77     
+ Misses       2632     2327     -305     
Impacted Files Coverage Δ
src/telemetry.ts 60.00% <ø> (ø)
src/webview/welcome/welcomeViewLoader.ts 70.49% <90.00%> (+3.82%) ⬆️

... and 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

Looking good so far, one comment about the styling

src/webview/welcome/app/welcomePage.tsx Outdated Show resolved Hide resolved
@mohitsuman
Copy link
Collaborator

@JessicaJHee I would move this checkbox to the end of the page below the Documentation section and would also like to capture telemetry of usage of the check/uncheck action. (can do telemetry one as a separate issue).

@JessicaJHee
Copy link
Contributor Author

@mohitsuman I've added telemetry for this with welcomePage as the action name and showWelcomePage: boolean as an event property. Please let me know if this is the correct idea!

@datho7561
Copy link
Contributor

One more small thing I noticed; if you have the OpenShift welcome page set to not show on startup, but then open it later through the command (OpenShift: Welcome), then the checkbox is checked, even though the setting is set to not show the page.

Signed-off-by: Jessica He <jhe@redhat.com>
@JessicaJHee
Copy link
Contributor Author

One more small thing I noticed; if you have the OpenShift welcome page set to not show on startup, but then open it later through the command (OpenShift: Welcome), then the checkbox is checked, even though the setting is set to not show the page.

Should be fixed now, thanks!

Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

Looks good and works well for me! Thanks Jessica!

Copy link
Collaborator

@mohitsuman mohitsuman left a comment

Choose a reason for hiding this comment

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

LGTM

@mohitsuman mohitsuman merged commit 53fb128 into redhat-developer:main May 24, 2023
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.

Add 'Show welcome page on startup' checkbox in OpenShift Welcome page
3 participants