// PEP-23: project autonomy in «⋯ Настройки проекта» — preset levels and the individual settings. import { AUTONOMY_LEVEL_HINT, AUTONOMY_LEVEL_RU, AUTONOMY_LEVELS, autonomyLevel, type AutonomyLevel, type AutonomySettings } from "@peppa/core"; import { setAutonomyAction } from "@/app/(app)/actions"; import { Hidden } from "@/components/cards"; import { Button } from "@/components/ui/button"; import { Input, Label, NativeSelect } from "@/components/ui/input"; export function AutonomyPanel({ projectId, settings, back }: { projectId: number; settings: AutonomySettings; back: string }) { const current = autonomyLevel(settings); const s = settings; return (
{current === "custom" ? "Своя комбинация настроек ниже." : AUTONOMY_LEVEL_HINT[current]}
PR, меняющий конвейер (.gitea/, checks, deploy), сам не мержится и не закрывается — его принимает PM.