Profile cleanup (#611)

* remove redundant boilerplate

* migrate

* clippy

* frontend fixes

* fmt

* fix

* update shared types

* fmt
This commit is contained in:
Louis Knight-Webb
2025-09-02 21:25:37 +01:00
committed by GitHub
parent 57c5b4d687
commit 5ca32b50de
32 changed files with 220 additions and 826 deletions

View File

@@ -7,8 +7,8 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu.tsx';
import type { GitBranch, Task } from 'shared/types';
import type { ExecutorProfile } from 'shared/types';
import type { BaseCodingAgent, GitBranch, Task } from 'shared/types';
import type { ExecutorConfig } from 'shared/types';
import type { ExecutorProfileId } from 'shared/types';
import type { TaskAttempt } from 'shared/types';
import { useAttemptCreation } from '@/hooks/useAttemptCreation';
@@ -35,7 +35,7 @@ type Props = {
setIsInCreateAttemptMode: Dispatch<SetStateAction<boolean>>;
setCreateAttemptBranch: Dispatch<SetStateAction<string | null>>;
setSelectedProfile: Dispatch<SetStateAction<ExecutorProfileId | null>>;
availableProfiles: Record<string, ExecutorProfile> | null;
availableProfiles: Record<string, ExecutorConfig> | null;
selectedAttempt: TaskAttempt | null;
};
@@ -213,7 +213,7 @@ function CreateAttempt({
key={profileKey}
onClick={() => {
setSelectedProfile({
executor: profileKey,
executor: profileKey as BaseCodingAgent,
variant: null,
});
}}