Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add tooltip for waiting on upstream dependencies in ResourceErrorMessage
Co-authored-by: eric.okuma <eric.okuma@rilldata.com>
  • Loading branch information
cursoragent and ericokuma committed Sep 2, 2025
commit 446350915992436e693936270bc420503417a422
19 changes: 17 additions & 2 deletions web-admin/src/features/projects/status/ResourceErrorMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,26 @@

export let message: string;
export let status: V1ReconcileStatus;

// Check if the error message indicates waiting for an upstream dependency
$: isWaitingForUpstreamDependency = message && (
message.includes("is not idle") ||
message.startsWith("dependency error:")
);
</script>

<div class="container">
{#if status === V1ReconcileStatus.RECONCILE_STATUS_PENDING || status === V1ReconcileStatus.RECONCILE_STATUS_RUNNING}
<LoadingSpinner size="18px" />
{#if status === V1ReconcileStatus.RECONCILE_STATUS_PENDING || status === V1ReconcileStatus.RECONCILE_STATUS_RUNNING || isWaitingForUpstreamDependency}
{#if isWaitingForUpstreamDependency}
<Tooltip distance={8}>
<LoadingSpinner size="18px" />
<TooltipContent slot="tooltip-content" maxWidth="300px">
<p>Waiting for upstream dependencies to finish processing</p>
</TooltipContent>
</Tooltip>
{:else}
<LoadingSpinner size="18px" />
{/if}
{:else if message}
<Tooltip distance={8}>
<button
Expand Down
Loading