Skip to content

Commit db0bf48

Browse files
JeevantheDevclaude
andcommitted
fix: completely hide develop branch deploy runs without release tag
Production/release/deploy workflows on develop branch without a valid releaseTag are now completely hidden from all tabs (CI, Notify, Release). These invalid runs should not appear anywhere in the UI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b144e71 commit db0bf48

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

app/(dashboard)/ci/page.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,20 +400,25 @@ export default function CiPage() {
400400
return null;
401401
}
402402

403-
function getRunCategory(run: CiRun): "CI" | "Notify" | "Release" {
403+
function getRunCategory(run: CiRun): "CI" | "Notify" | "Release" | null {
404404
const name = (run.workflowName ?? run.title ?? "").toLowerCase();
405+
406+
// Hide production/release/deploy workflows on develop branch without a release tag
407+
// These are not valid production deploys and should not appear anywhere
408+
if ((name.includes("production") || name.includes("release") || name.includes("deploy")) &&
409+
!name.includes("preview") &&
410+
run.branch === "develop" &&
411+
!run.releaseTag) {
412+
return null; // Hide completely
413+
}
414+
405415
if (name.includes("notify")) {
406416
return "Notify";
407417
}
408418
if (name.includes("production") || name.includes("release") || name.includes("deploy")) {
409419
if (name.includes("preview")) {
410420
return "CI";
411421
}
412-
// Hide from Release tab if it's a develop branch without a valid release tag
413-
// Production deploys should be on main branch with a proper release tag
414-
if (run.branch === "develop" && !run.releaseTag) {
415-
return "CI";
416-
}
417422
return "Release";
418423
}
419424
return "CI";
@@ -427,7 +432,10 @@ export default function CiPage() {
427432
return runs.some(run => getRunCategory(run) === category && run.conclusion && run.conclusion !== "success");
428433
}
429434

430-
const filteredRuns = runs.filter(run => getRunCategory(run) === activeTab);
435+
const filteredRuns = runs.filter(run => {
436+
const category = getRunCategory(run);
437+
return category !== null && category === activeTab;
438+
});
431439
const totalPagesForTab = Math.ceil(filteredRuns.length / tabPageSize);
432440
const currentPageForTab = Math.max(1, Math.min(tabPages[activeTab], totalPagesForTab));
433441
const paginatedRuns = filteredRuns.slice((currentPageForTab - 1) * tabPageSize, currentPageForTab * tabPageSize);

0 commit comments

Comments
 (0)