chore: migrate lint to eslint flat config and finalize graph card status handling

This commit is contained in:
zenchantlive 2026-02-13 12:27:09 -08:00
parent a0261f181a
commit 2cfaa9b406
4 changed files with 30 additions and 4 deletions

View file

@ -156,13 +156,14 @@ export function DependencyGraphPage({
() =>
issues
.filter((issue) => issue.issue_type === 'epic')
.filter((issue) => (!hideClosed ? true : issue.status !== 'closed'))
.sort((a, b) => {
// Push closed epics to the end
if (a.status === 'closed' && b.status !== 'closed') return 1;
if (b.status === 'closed' && a.status !== 'closed') return -1;
return a.id.localeCompare(b.id);
}),
[issues],
[issues, hideClosed],
);
// --- Derived data: tasks grouped by parent epic ---