Skip to content

Commit 4d00870

Browse files
committed
fix(web): segment-boundary Repos nav active state; changelog for #1100
1 parent 3a67747 commit 4d00870

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Linear issue links in chat responses now render as a rich card-style UI showing the Linear logo, issue identifier, and title instead of plain hyperlinks. [#1060](https://github.com/sourcebot-dev/sourcebot/pull/1060)
12+
- Added a "Browse repositories" entry point on the search landing page, a Repositories shortcut in the file explorer top bar, and clearer repo list copy so users can open the file explorer without running a search first. [#1100](https://github.com/sourcebot-dev/sourcebot/pull/1100)
1213

1314
### Changed
1415
- Links in Ask Sourcebot chat responses now open in a new tab with a subtle external link icon indicator. [#1059](https://github.com/sourcebot-dev/sourcebot/pull/1059)

packages/web/src/app/(app)/components/navigationMenu/navigationItems.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ export const NavigationItems = ({
2727
return pathname === '/';
2828
}
2929
if (href === '/repos') {
30-
return pathname.startsWith('/repos') || pathname.startsWith('/browse');
30+
return (
31+
pathname === '/repos' ||
32+
pathname.startsWith('/repos/') ||
33+
pathname === '/browse' ||
34+
pathname.startsWith('/browse/')
35+
);
3136
}
3237
return pathname.startsWith(href);
3338
};

0 commit comments

Comments
 (0)