From 58cdf4452912ac1d749f66fd91fcbcf99e8763ce Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Mon, 22 Jun 2026 09:33:52 +0200 Subject: [PATCH] refactor(apps): drop `(app as any).draft_path` casts in AppRow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `ListableApp.draft_path` is declared in openapi.yaml (and the apps.rs type), so the regenerated `$lib/gen` client types it — the `as any` casts were only papering over a stale local gen client. Read `app.draft_path` directly, matching FlowRow/ScriptRow. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/lib/components/common/table/AppRow.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/common/table/AppRow.svelte b/frontend/src/lib/components/common/table/AppRow.svelte index 5fc1d5c6f8..db8b819efc 100644 --- a/frontend/src/lib/components/common/table/AppRow.svelte +++ b/frontend/src/lib/components/common/table/AppRow.svelte @@ -107,19 +107,19 @@ : `${base}/apps${app.raw_app ? '_raw' : ''}/get/${app.path}`} kind="app" {marked} - path={(app as any).draft_path ?? app.path} - summary={app.is_draft ? `${app.summary || (app as any).draft_path || app.path}*` : app.summary} + path={app.draft_path ?? app.path} + summary={app.is_draft ? `${app.summary || app.draft_path || app.path}*` : app.summary} workspaceId={app.workspace_id ?? $workspaceStore ?? ''} canFavorite={!app.draft_only} {depth} {keyboardSelected} > {#snippet pathDisplay()} - {#if !app.draft_only && (app as any).draft_path && (app as any).draft_path !== app.path} + {#if !app.draft_only && app.draft_path && app.draft_path !== app.path} {app.path} - {(app as any).draft_path} + {app.draft_path} {:else} - {(app as any).draft_path ?? app.path} + {app.draft_path ?? app.path} {/if} {/snippet} {#snippet badges()}