Skip to content

Commit 5cce769

Browse files
committed
fix(webapp): make leaf trace controls select tasks
1 parent 12c9870 commit 5cce769

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,13 @@ function TasksTreeView({
10751075
<button
10761076
type="button"
10771077
tabIndex={-1}
1078-
aria-disabled={!node.hasChildren}
1079-
aria-label={state.expanded ? "Collapse task" : "Expand task"}
1078+
aria-label={
1079+
node.hasChildren
1080+
? state.expanded
1081+
? "Collapse task"
1082+
: "Expand task"
1083+
: "Select task"
1084+
}
10801085
className={cn(
10811086
"flex h-8 w-4 items-center focus-custom",
10821087
node.hasChildren && "hover:bg-surface-control"
@@ -1091,6 +1096,8 @@ function TasksTreeView({
10911096
}
10921097
} else if (node.hasChildren) {
10931098
toggleExpandNode(node.id);
1099+
} else {
1100+
selectNode(node.id, false);
10941101
}
10951102
scrollToNode(node.id);
10961103
parentRef.current?.focus({ preventScroll: true });

0 commit comments

Comments
 (0)