diff --git a/apps/gittensory-ui/public/openapi.json b/apps/gittensory-ui/public/openapi.json index a9eb9eb9dc..bdd385c0b4 100644 --- a/apps/gittensory-ui/public/openapi.json +++ b/apps/gittensory-ui/public/openapi.json @@ -8918,7 +8918,8 @@ ] }, "firstTimeContributorGrace": { - "type": "boolean" + "type": "boolean", + "description": "Reserved (#2266) -- the gate evaluator never reads this field. Currently has no effect on gate decisions." }, "slopGateMinScore": { "type": "number", @@ -10279,7 +10280,8 @@ ] }, "firstTimeContributorGrace": { - "type": "boolean" + "type": "boolean", + "description": "Reserved (#2266) -- the gate evaluator never reads this field. Currently has no effect on gate decisions." }, "slopGateMinScore": { "type": "number", diff --git a/apps/gittensory-ui/src/components/site/app-panels/maintainer-settings.tsx b/apps/gittensory-ui/src/components/site/app-panels/maintainer-settings.tsx index 00f24589f8..9822408163 100644 --- a/apps/gittensory-ui/src/components/site/app-panels/maintainer-settings.tsx +++ b/apps/gittensory-ui/src/components/site/app-panels/maintainer-settings.tsx @@ -123,6 +123,10 @@ type ToggleFieldDef = { label: string; kind: "toggle"; hint?: string; + // Renders greyed-out and non-interactive with the hint as the disclosure -- for a field that is real + // and DB-backed but currently wired to nothing (e.g. firstTimeContributorGrace, #2266/#2411), so a + // maintainer can't be misled into thinking the toggle has an effect. + disabled?: boolean; }; type NumberFieldDef = { key: keyof MaintainerSettings; @@ -184,7 +188,8 @@ const GATE_FIELDS: FieldDef[] = [ key: "firstTimeContributorGrace", label: "First-time-contributor grace", kind: "toggle", - hint: "Soften a newcomer's block to advisory", + hint: "Reserved — currently has no effect on gate decisions (#2266)", + disabled: true, }, ]; @@ -623,6 +628,7 @@ function FieldGroup({ key={field.key} label={field.label} hint={field.hint} + disabled={field.disabled} value={settings[field.key] as boolean} onChange={(value) => setField(field.key, value as MaintainerSettings[typeof field.key]) @@ -682,17 +688,20 @@ function ToggleControl({ hint, value, onChange, + disabled, }: { label: string; hint?: string; value: boolean; onChange: (value: boolean) => void; + disabled?: boolean; }) { return ( -