@widgetic/creator 0.4.22 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CreatorApp.svelte +10 -2
- package/package.json +1 -1
package/dist/CreatorApp.svelte
CHANGED
|
@@ -12597,7 +12597,12 @@ Requirements:
|
|
|
12597
12597
|
}
|
|
12598
12598
|
|
|
12599
12599
|
function pushCodegenProgressToUi(op: OperationStatus, widgetId: string | null | undefined) {
|
|
12600
|
-
|
|
12600
|
+
// The preview is already on the canvas while the version is still saving.
|
|
12601
|
+
// The bar stays at 70 until that save ends, so show 100 for that pause.
|
|
12602
|
+
const stillRunning = String(op.status || '').toLowerCase() === 'running';
|
|
12603
|
+
const versionStillSaving = !!(widgetId && previewUnblockedByWidgetId[widgetId] && stillRunning);
|
|
12604
|
+
const shown = versionStillSaving ? { ...op, progress: 100 } : op;
|
|
12605
|
+
const line = formatCodegenProgressStatus(shown);
|
|
12601
12606
|
freezeProbe('progress', line);
|
|
12602
12607
|
// Feed the freeze watchdog the latest status so a [FreezeReport] names the
|
|
12603
12608
|
// stage the UI was showing when the main thread stopped responding.
|
|
@@ -19183,7 +19188,10 @@ $: if (codeGenerationPrompt && selectedWidgetId && promptLoadedForWidgetId === s
|
|
|
19183
19188
|
{@const statusText = isPanelFocused ? (generateCodeStatus ?? ps.generateCodeStatus) : ps.generateCodeStatus}
|
|
19184
19189
|
{@const hourlyLimit = isHourlyLimitText(statusText) || isHourlyLimitText(ps.lastGenerationError)}
|
|
19185
19190
|
<div class="generate-code-status-ct flex flex-col gap-2 shrink-0 {embedded && !canvasAdvancedFeatures ? 'border-0 bg-transparent' : 'border-b border-gray-200 bg-gray-50'}" style="padding: 10px; margin: 0px; border-radius: 0;">
|
|
19186
|
-
<div class="flex items-center justify-between gap-2 min-w-0">
|
|
19191
|
+
<div class="generate-code-status-row flex items-center justify-between gap-2 min-w-0">
|
|
19192
|
+
{#if generatingWidgetIds[panelWidgetId] && previewUnblockedByWidgetId[panelWidgetId] && !ps.lastGenerationFailed}
|
|
19193
|
+
<span class="codegen-save-spinner inline-block h-3 w-3 shrink-0 animate-spin rounded-full border-2 border-gray-300 border-t-forest-green" aria-hidden="true"></span>
|
|
19194
|
+
{/if}
|
|
19187
19195
|
<div class="generate-code-status-el text-xs flex-1 min-w-0 truncate {ps.lastGenerationFailed && !hourlyLimit ? 'text-red-600' : 'text-gray-500'}">
|
|
19188
19196
|
{#if ps.lastGenerationFailed && !hourlyLimit}
|
|
19189
19197
|
<span class="text-red-500 font-medium">{$t('creator.codegen.generationFailed')}</span>
|