Profile cleanup (#611)
* remove redundant boilerplate * migrate * clippy * frontend fixes * fmt * fix * update shared types * fmt
This commit is contained in:
committed by
GitHub
parent
57c5b4d687
commit
5ca32b50de
@@ -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,
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user