You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(browse): Implement dynamic tab titles for files and folders (#560)
* feat(metadata): Enhance metadata generation for repository browsing
feat(utils): Add parseRepoPath function to extract repository name and revision from URL path
* feat(metadata): update tab title with appropriate file name, path or repository name.
* fix: remove left-over console logs and Async Params resolution.
* feat: refactor parsePathForTitle to utilize getBrowseParamsFromPathParam for cleaner code.
* minor refactoring and adding changelog.
* Remove unused import
* refactor: change parsePathForTitle to a non-exported function
---------
Co-authored-by: Brendan Kellam <[email protected]>
Copy file name to clipboardExpand all lines: packages/web/src/app/layout.tsx
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,15 @@ import { PlanProvider } from "@/features/entitlements/planProvider";
11
11
import{getEntitlements}from"@sourcebot/shared";
12
12
13
13
exportconstmetadata: Metadata={
14
-
title: "Sourcebot",
15
-
description: "Sourcebot is a self-hosted code understanding tool. Ask questions about your codebase and get rich Markdown answers with inline citations.",
16
-
manifest: "/manifest.json",
14
+
// Using the title.template will allow child pages to set the title
15
+
// while keeping a consistent suffix.
16
+
title: {
17
+
default: "Sourcebot",
18
+
template: "%s | Sourcebot",
19
+
},
20
+
description:
21
+
"Sourcebot is a self-hosted code understanding tool. Ask questions about your codebase and get rich Markdown answers with inline citations.",
0 commit comments