@@ -743,6 +743,8 @@ export function SideMenu({
743743 ? "hidden"
744744 : "shown" ;
745745
746+ const environmentPath = v3EnvironmentPath ( organization , project , environment ) ;
747+
746748 // The customizable sections (everything except Tasks/Runs/Sessions), in DEFAULT order. The
747749 // user's saved order/hidden preferences are applied at render below.
748750 const staticSections = buildSideMenuSections ( {
@@ -941,7 +943,12 @@ export function SideMenu({
941943 icon = { TasksIcon }
942944 activeIconColor = "text-tasks"
943945 inactiveIconColor = "text-text-dimmed"
944- to = { v3EnvironmentPath ( organization , project , environment ) }
946+ to = { environmentPath }
947+ activePathPrefix = { [
948+ `${ environmentPath } /tasks` ,
949+ `${ environmentPath } /agents` ,
950+ `${ environmentPath } /schedules` ,
951+ ] }
945952 data-action = "tasks"
946953 isCollapsed = { isCollapsed }
947954 yieldActiveToFavorite
@@ -952,6 +959,7 @@ export function SideMenu({
952959 activeIconColor = "text-runs"
953960 inactiveIconColor = "text-text-dimmed"
954961 to = { v3RunsPath ( organization , project , environment ) }
962+ matchPrefix
955963 data-action = "runs"
956964 isCollapsed = { isCollapsed }
957965 yieldActiveToFavorite
@@ -962,6 +970,7 @@ export function SideMenu({
962970 activeIconColor = "text-sessions"
963971 inactiveIconColor = "text-text-dimmed"
964972 to = { v3SessionsPath ( organization , project , environment ) }
973+ matchPrefix
965974 data-action = "sessions"
966975 isCollapsed = { isCollapsed }
967976 yieldActiveToFavorite
@@ -976,6 +985,7 @@ export function SideMenu({
976985 activeIconColor = "text-webhooks"
977986 inactiveIconColor = "text-text-dimmed"
978987 to = { v3WebhooksPath ( organization , project , environment ) }
988+ matchPrefix
979989 data-action = "webhooks"
980990 badge = { < BetaBadge /> }
981991 isCollapsed = { isCollapsed }
@@ -1141,7 +1151,7 @@ function CustomizableSideMenuSection({
11411151 activeIconColor = { item . activeIconColor }
11421152 inactiveIconColor = { item . inactiveIconColor ?? "text-text-dimmed" }
11431153 to = { item . to }
1144- matchPrefix = { item . matchPrefix }
1154+ matchPrefix = { item . matchPrefix ?? true }
11451155 data-action = { item . dataAction }
11461156 badge = { item . badge }
11471157 isCollapsed = { isCollapsed }
0 commit comments