⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(task-relations): distinguish "blocked by" from "blocks"
Andrej867df7d4b8ce
diff --git a/apps/web/src/components/task/task-relations.tsx b/apps/web/src/components/task/task-relations.tsxindex 191649bf4..479be4e49 100644--- a/apps/web/src/components/task/task-relations.tsx+++ b/apps/web/src/components/task/task-relations.tsx@@ -122,13 +122,18 @@ export default function TaskRelations({const linkedTask = isSource ? rel.targetTask : rel.sourceTask;if (!linkedTask) continue;- const type = rel.relationType;+ // "blocks" is directional: when the current task is the target it is the+ // one being blocked, so group it under a distinct "blocked_by" key.+ const type =+ rel.relationType === "blocks" && !isSource+ ? "blocked_by"+ : rel.relationType;if (!groups[type]) {groups[type] = [];}groups[type].push({id: rel.id,- relationType: type,+ relationType: rel.relationType,task: linkedTask,});}@@ -293,7 +298,9 @@ export default function TaskRelations({{Object.entries(groupedRelations).map(([type, items]) => (<div key={type} className="mt-1.5"><span className="text-[11px] text-muted-foreground/70 px-2">- {t(`tasks:relations.types.${type}`, { defaultValue: type })}+ {t(`tasks:relations.types.${type}`, {+ defaultValue: type.replace(/_/g, " "),+ })}</span><div className="flex flex-col mt-0.5">{items.map((item) => {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex 6bb8708ae..67336d33e 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -1413,6 +1413,7 @@"selectTask": "Select a task to link","types": {"blocks": "blocks",+ "blocked_by": "blocked by","related": "relates to"}},