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

Fix loading state bug when creating new workspace #18870

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

selfcontained
Copy link
Contributor

@selfcontained selfcontained commented Oct 4, 2023

Description

Fixes a bug where on create workspace the editor & ws class hung in a loading state until a repo was selected. I've left the optionsLoaded state as it's used for preventing an autostart before we've loaded any previously used options, but am just not considering it for the loading state anymore.

I also fixed a bug I noticed where multiple projects w/ same repo wouldn't show up correctly after you started searching.

Before After
image image
Summary generated by Copilot

🤖 Generated by Copilot at 366cbf4

This pull request improves the user experience and performance of the CreateWorkspacePage component by simplifying the loading logic and avoiding repository conflicts. It affects the files CreateWorkspacePage.tsx and unified-repositories-search-query.ts.

How to test

Open Create Workspace and verify the editor and class selectors aren't disabled in a loading state even when you don't have a repo selected.

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@selfcontained selfcontained requested a review from a team as a code owner October 4, 2023 21:56
@selfcontained selfcontained changed the title Brad/create-ws-option-loading-bug Fix loading state bug when creating new workspace Oct 4, 2023
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.

UX LGTM. Thanks for picking this up, @selfcontained. 🌮

@selfcontained
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit 75f4c29 into main Oct 5, 2023
67 of 71 checks passed
@roboquat roboquat deleted the brad/create-ws-option-loading-bug branch October 5, 2023 03:11
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.

3 participants