From a92671157f7fef49c3b1dd2ee3e3defdeddd5d01 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Wed, 4 Feb 2026 02:49:50 -0500 Subject: [PATCH] feat: add scratchpad to frontend types and API client Co-Authored-By: Claude Opus 4.5 --- frontend/src/api/sessions.ts | 5 +++++ frontend/src/types/session.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/frontend/src/api/sessions.ts b/frontend/src/api/sessions.ts index fa6d55a2..7be667cf 100644 --- a/frontend/src/api/sessions.ts +++ b/frontend/src/api/sessions.ts @@ -46,6 +46,11 @@ export const sessionsApi = { const response = await apiClient.post(`/sessions/${id}/export`, options) return response.data }, + + async updateScratchpad(id: string, content: string): Promise { + const response = await apiClient.patch(`/sessions/${id}/scratchpad`, { scratchpad: content }) + return response.data + }, } export default sessionsApi diff --git a/frontend/src/types/session.ts b/frontend/src/types/session.ts index cf48e629..097e5c30 100644 --- a/frontend/src/types/session.ts +++ b/frontend/src/types/session.ts @@ -40,6 +40,7 @@ export interface Session { ticket_number: string | null client_name: string | null exported: boolean + scratchpad: string } export interface SessionCreate { @@ -54,6 +55,7 @@ export interface SessionUpdate { custom_steps?: CustomStep[] ticket_number?: string client_name?: string + scratchpad?: string } export interface SessionExport {