Skip to content

Commit c694c16

Browse files
aaronbrezelclaude
andcommitted
refactor: derive SavedState from RunConfig to eliminate field duplication
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7c4aac8 commit c694c16

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/client/panels/configure-ai-run.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ import { SingleTagList } from "../components/single-tag-list";
55
import { RowRange } from "../components/row-range";
66
import { getSheetHeaders, runBatchAI } from "../services";
77

8-
export interface SavedState {
9-
userPromptCols: string[];
10-
driveFileCols: string[];
11-
systemPromptCol: string;
12-
outputCol: string;
13-
rowRange?: { start: number; end: number };
14-
}
8+
export type SavedState = Required<Omit<RunConfig, "rowRange">> & Pick<RunConfig, "rowRange">;
159

1610
export class ConfigureAIRunPanel implements Panel<Partial<RunConfig>, SavedState> {
1711
private userPromptList: TagList | null = null;

0 commit comments

Comments
 (0)