mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
fix: count singlestepflow runs on home rows and keep home-only row styling off other lists
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
67936b4e14
commit
521be8ecc1
@@ -1181,6 +1181,8 @@ async fn get_runnables_activity(
|
||||
|
||||
// A run not yet started is left out, so a schedule's next pending job does not
|
||||
// show up as activity. The LATERAL walks `ix_job_root_job_index_by_path_2`.
|
||||
// `singlestepflow` is how a runnable runs behind an error handler or a schedule's
|
||||
// skip handler, and the runs page lists it under the runnable's path.
|
||||
let runs_sql = format!(
|
||||
"{VISIBLE} \
|
||||
SELECT v.path AS runnable_path, v.is_flow, j.id, j.created_at, j.status \
|
||||
@@ -1190,7 +1192,7 @@ async fn get_runnables_activity(
|
||||
LEFT JOIN v2_job_completed c ON c.id = job.id \
|
||||
LEFT JOIN v2_job_queue q ON q.id = job.id \
|
||||
WHERE job.workspace_id = $1 AND job.runnable_path = v.path AND job.parent_job IS NULL \
|
||||
AND job.kind = (CASE WHEN v.is_flow THEN 'flow' ELSE 'script' END)::job_kind \
|
||||
AND job.kind IN ((CASE WHEN v.is_flow THEN 'flow' ELSE 'script' END)::job_kind, 'singlestepflow') \
|
||||
AND (c.id IS NOT NULL OR q.running) \
|
||||
ORDER BY job.created_at DESC LIMIT $4 \
|
||||
) j \
|
||||
|
||||
@@ -137,8 +137,8 @@
|
||||
?.split('/')
|
||||
?.slice(-1)?.[0]) ?? ''
|
||||
|
||||
setCompactBadges()
|
||||
const homeTable = isHomeTable()
|
||||
if (homeTable) setCompactBadges()
|
||||
|
||||
let rowEl: HTMLDivElement | undefined = $state()
|
||||
$effect(() => {
|
||||
@@ -380,15 +380,9 @@
|
||||
{/if}
|
||||
|
||||
{#snippet favorite()}
|
||||
{#if kind == 'app' || kind == 'raw_app' || kind == 'script' || kind == 'flow'}
|
||||
{#if canFavorite && (kind == 'app' || kind == 'raw_app' || kind == 'script' || kind == 'flow')}
|
||||
<div class="center-center h-full text-xs font-semibold text-secondary w-7">
|
||||
{#if canFavorite}
|
||||
<Star {kind} {path} {workspaceId} {summary} />
|
||||
{:else}
|
||||
<span class="p-1 opacity-20" title="Deploy it to add it to favorites">
|
||||
<StarIcon size={16} />
|
||||
</span>
|
||||
{/if}
|
||||
<Star {kind} {path} {workspaceId} {summary} />
|
||||
</div>
|
||||
{:else}
|
||||
<div class="w-7"></div>
|
||||
|
||||
Reference in New Issue
Block a user