|
@@ -123,13 +123,11 @@ export function CreateTeamDialog({
|
|
|
<Select
|
|
<Select
|
|
|
value={form.coordination_mode}
|
|
value={form.coordination_mode}
|
|
|
onChange={(event) => setForm({ ...form, coordination_mode: event.target.value })}
|
|
onChange={(event) => setForm({ ...form, coordination_mode: event.target.value })}
|
|
|
- options={[
|
|
|
|
|
- { value: "supervisor", label: t("teams.supervisor") },
|
|
|
|
|
- { value: "pipeline", label: t("teams.pipeline") },
|
|
|
|
|
- { value: "parallel", label: t("teams.parallel") },
|
|
|
|
|
- { value: "debate", label: t("teams.debate") },
|
|
|
|
|
- ]}
|
|
|
|
|
|
|
+ options={coordinationModeOptions(t)}
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <p className="text-xs leading-5 text-muted-foreground">
|
|
|
|
|
+ {coordinationModeDescription(t, form.coordination_mode)}
|
|
|
|
|
+ </p>
|
|
|
</Field>
|
|
</Field>
|
|
|
</div>
|
|
</div>
|
|
|
<Field label={t("common.description")}>
|
|
<Field label={t("common.description")}>
|
|
@@ -409,13 +407,11 @@ export function EditTeamDialog({
|
|
|
<Select
|
|
<Select
|
|
|
value={form.coordination_mode}
|
|
value={form.coordination_mode}
|
|
|
onChange={(event) => setForm({ ...form, coordination_mode: event.target.value })}
|
|
onChange={(event) => setForm({ ...form, coordination_mode: event.target.value })}
|
|
|
- options={[
|
|
|
|
|
- { value: "supervisor", label: t("teams.supervisor") },
|
|
|
|
|
- { value: "pipeline", label: t("teams.pipeline") },
|
|
|
|
|
- { value: "parallel", label: t("teams.parallel") },
|
|
|
|
|
- { value: "debate", label: t("teams.debate") },
|
|
|
|
|
- ]}
|
|
|
|
|
|
|
+ options={coordinationModeOptions(t)}
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <p className="text-xs leading-5 text-muted-foreground">
|
|
|
|
|
+ {coordinationModeDescription(t, form.coordination_mode)}
|
|
|
|
|
+ </p>
|
|
|
</Field>
|
|
</Field>
|
|
|
</div>
|
|
</div>
|
|
|
<Field label={t("common.description")}>
|
|
<Field label={t("common.description")}>
|
|
@@ -457,6 +453,25 @@ function SummaryPill({ icon, label, value }: { icon: React.ReactNode; label: str
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function coordinationModeOptions(t: (key: string) => string) {
|
|
|
|
|
+ return [
|
|
|
|
|
+ { value: "supervisor", label: t("teams.coordinationSupervisorOption") },
|
|
|
|
|
+ { value: "pipeline", label: t("teams.coordinationPipelineOption") },
|
|
|
|
|
+ { value: "parallel", label: t("teams.coordinationParallelOption") },
|
|
|
|
|
+ { value: "debate", label: t("teams.coordinationDebateOption") },
|
|
|
|
|
+ ];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function coordinationModeDescription(t: (key: string) => string, mode: string) {
|
|
|
|
|
+ const keyByMode: Record<string, string> = {
|
|
|
|
|
+ supervisor: "coordinationSupervisorDescription",
|
|
|
|
|
+ pipeline: "coordinationPipelineDescription",
|
|
|
|
|
+ parallel: "coordinationParallelDescription",
|
|
|
|
|
+ debate: "coordinationDebateDescription",
|
|
|
|
|
+ };
|
|
|
|
|
+ return t(`teams.${keyByMode[mode] ?? keyByMode.supervisor}`);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
function Field({ label, children }: { label: string; children: React.ReactNode }) {
|
|
function Field({ label, children }: { label: string; children: React.ReactNode }) {
|
|
|
return (
|
|
return (
|
|
|
<label className="block space-y-1.5 text-sm">
|
|
<label className="block space-y-1.5 text-sm">
|