diff --git a/components/dashboard/src/admin/ProjectDetail.tsx b/components/dashboard/src/admin/ProjectDetail.tsx index c72d512eaaafa5..ab68d6926ba331 100644 --- a/components/dashboard/src/admin/ProjectDetail.tsx +++ b/components/dashboard/src/admin/ProjectDetail.tsx @@ -45,9 +45,6 @@ export default function ProjectDetail(props: { project: Project; owner: string |
- - {props.project.settings?.useIncrementalPrebuilds ? "Yes" : "No"} - {props.project.markedDeleted ? "Yes" : "No"}
diff --git a/components/dashboard/src/projects/ProjectSettings.tsx b/components/dashboard/src/projects/ProjectSettings.tsx index 7a3bd09ec011f2..9a751c8c9e3017 100644 --- a/components/dashboard/src/projects/ProjectSettings.tsx +++ b/components/dashboard/src/projects/ProjectSettings.tsx @@ -9,7 +9,6 @@ import { useCallback, useContext, useState, Fragment, useMemo, useEffect } from import { useHistory } from "react-router"; import { CheckboxInputField } from "../components/forms/CheckboxInputField"; import { PageWithSubMenu } from "../components/PageWithSubMenu"; -import PillLabel from "../components/PillLabel"; import { getGitpodService } from "../service/service"; import { ProjectContext, useCurrentProject } from "./project-context"; import { getProjectSettingsMenu, getProjectTabs } from "./projects.routes"; @@ -238,9 +237,7 @@ export default function ProjectSettingsView() { hint={ {prebuildSettings.enable ? ( - - Prebuilds will run for any before or init tasks. - + Prebuilds reduce wait time for new workspaces. ) : ( "Requires permissions to configure repository webhooks." )}{" "} @@ -259,17 +256,51 @@ export default function ProjectSettingsView() { /> {prebuildSettings.enable && ( <> - setPrebuildBranchStrategy(val as PrebuildSettings.BranchStrategy)} - > - - - - +
+
+ + setPrebuildInterval(target.value)} + /> +
+ Use a higher interval to run prebuilds less frequently. +
+
+
+
+ setPrebuildBranchStrategy(val as PrebuildSettings.BranchStrategy)} + > + + + + +
+ Trigger prebuilds for the selected branches. +
+
{prebuildSettings.branchStrategy === "matched-branches" && (