refactor(apps): drop (app as any).draft_path casts in AppRow

`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) <noreply@anthropic.com>
This commit is contained in:
Diego Imbert
2026-06-22 09:33:52 +02:00
parent 0409f267d7
commit 58cdf44529
@@ -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}
<span class="line-through">{app.path}</span>
{(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()}