Skip to content

New Prebuild Settings UI for repo configs #19184

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

Merged
merged 5 commits into from
Dec 4, 2023
Merged

Conversation

selfcontained
Copy link
Contributor

@selfcontained selfcontained commented Dec 2, 2023

Description

This adds the prebuild settings UI in the repo config area and sets up the api to it.

Disabled Enabled
image image
Summary generated by Copilot

🤖[deprecated] Generated by Copilot at dccbe44

This pull request adds and improves features for editing the prebuild settings of a repository configuration in the dashboard. It introduces new components for the prebuild settings form, the workspace class options, and the select input field, and refactors some existing components for better code reuse and UI feedback. It also updates the updateConfiguration mutation to handle the prebuild settings.

Issue

Fixes EXP-874

How to test

  • Import a Repository via the Repositories link in the org menu
  • Click the Prebuilds sidebar link
  • Toggle prebuilds on and try adjusting some settings

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
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • 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 force-pushed the brad/new-prebuild-settings branch from 165130a to a9c3197 Compare December 2, 2023 00:04
@selfcontained selfcontained marked this pull request as ready for review December 2, 2023 00:19
@selfcontained selfcontained requested a review from a team as a code owner December 2, 2023 00:19
Copy link
Member

@filiptronicek filiptronicek left a comment

Choose a reason for hiding this comment

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

Wunderbar!

<ConfigurationSettingsField>
<form onSubmit={handleSubmit}>
<Heading3>Prebuild Settings</Heading3>
<Subheading className="max-w-lg">These settings will be applied on every Prebuild.</Subheading>
Copy link
Member

Choose a reason for hiding this comment

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

These settings will be applied on every Prebuild.

This is more of an aside since it's relevant to all of the work we've been doing with Configs so far: do we or do we not capitalize feature names? I like the aesthetics of doing so, but am not convinced too hard. Either way, it would be great to settle this so that we can make it consistent.

cc @loujaybee since you may have an opinion :)

@roboquat roboquat added size/XL and removed size/L labels Dec 4, 2023
@selfcontained
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit 74528b9 into main Dec 4, 2023
@roboquat roboquat deleted the brad/new-prebuild-settings branch December 4, 2023 19:21
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