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] add "with-options" buttons #15668

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Conversation

svenefftinge
Copy link
Member

@svenefftinge svenefftinge commented Jan 10, 2023

Description

Adds a secondary "New Workspace ..." button the projects list on a team and the branches list on a project.

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-se-show-options-action.1 because the annotations in the pull request description changed
(with .werft/ from main)

@svenefftinge svenefftinge force-pushed the se/show-options-action branch from 020790a to 146cbf2 Compare January 10, 2023 16:36
@svenefftinge svenefftinge marked this pull request as ready for review January 10, 2023 16:37
@svenefftinge svenefftinge requested a review from a team January 10, 2023 16:37
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jan 10, 2023
Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Code LGTM, and approving to unblock.

/hold due to build issues (looks unrelated), and maybe another check once the preview is there.

@svenefftinge
Copy link
Member Author

svenefftinge commented Jan 10, 2023

/werft run

👍 started the job as gitpod-build-se-show-options-action.3
(with .werft/ from main)
/hold

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.

Nice touch! UX LGTM. ✨

separator: true,
},
{
title: "New Workspace ...",
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: Excellent ... 🥯

Comment on lines +402 to +408
{
title: "New Workspace ...",
href: gitpodHostUrl
.withContext(`${branch.url}`, { showOptions: true })
.toString(),
separator: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: Nice and much needed addition! ✨

menuEntries={
menuEntries={[
{
title: "New Workspace ...",
Copy link
Contributor

Choose a reason for hiding this comment

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

💭 thought: Next steps could include improving the modal to allow branch selection as mentioned in #5372, #12591, #10168, and a relevant discussion (internal).

Comment on lines 42 to +46
{
title: "New Workspace",
href: `/#${project.cloneUrl}`,
href: gitpodHostUrl.withContext(`${project.cloneUrl}`).toString(),
separator: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: From what I understand this will keep the existing new workspace menu entry with no options and was wondering it if we still need it, but this can become clearer later. Also, it doesn't hurt to keep this here for now, since it's hidden behind the more actions menu.

BEFORE AFTER
dropdown-before dropdown-after

@@ -40,7 +41,14 @@ export const ProjectListItem: FunctionComponent<ProjectListItemProps> = ({ proje
menuEntries={[
{
title: "New Workspace",
Copy link
Contributor

@gtsiolis gtsiolis Jan 10, 2023

Choose a reason for hiding this comment

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

question(non-blocking): Could we measure how much this button link (New Workspace) is used on the projects page specifically? I created a report (internal) for measuring usage (clicks) but couldn't differentiate the clicks on the specific dropdown that exists on the projects cards. Cc @jakobhero

@svenefftinge
Copy link
Member Author

/unhold

@roboquat roboquat merged commit 7cbf80b into main Jan 11, 2023
@roboquat roboquat deleted the se/show-options-action branch January 11, 2023 08:42
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jan 11, 2023
@jldec
Copy link
Contributor

jldec commented Jan 11, 2023

2 followup UX suggestions:

  1. It's not too clear what the difference is between "New Workspace" and "New Workspace ..."
  • we should definitely use the tooltip to distinguish them
  • I would also suggest a wording change "New Workspace with options
  • perhaps restrict these actions to just the ... action
  1. The options modal should go away and return you to the dashboard when you hit escape. It should also have a close button.

@gtsiolis
Copy link
Contributor

gtsiolis commented Jan 11, 2023

Thanks for the feedback, @jldec! 💯

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

Successfully merging this pull request may close these issues.

5 participants