| ... | @@ -151,11 +151,13 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() { | ... | @@ -151,11 +151,13 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() { |
| 151 | select: (location) => | 151 | select: (location) => |
| 152 | /^\/settings(?:\/|$)/.test(location.pathname) | 152 | /^\/settings(?:\/|$)/.test(location.pathname) |
| 153 | ? "settings" | 153 | ? "settings" |
| 154 | : location.pathname === "/usage" | 154 | : /^\/projects\/[^/]+\/?$/.test(location.pathname) |
| 155 | ? "usage" | 155 | ? "project-settings" |
| 156 | : location.pathname === "/pull-requests" | 156 | : location.pathname === "/usage" |
| 157 | ? "pull-requests" | 157 | ? "usage" |
| 158 | : null, | 158 | : location.pathname === "/pull-requests" |
| | 159 | ? "pull-requests" |
| | 160 | : null, |
| 159 | }); | 161 | }); |
| 160 | const { environments } = useEnvironments(); | 162 | const { environments } = useEnvironments(); |
| 161 | // The page reads every connected server, so one of them offering pull requests is enough for | 163 | // The page reads every connected server, so one of them offering pull requests is enough for |