huskies: merge 488_story_web_ui_shows_project_name_in_browser_tab_with_huskies_favicon

This commit is contained in:
dave
2026-04-07 13:33:06 +00:00
parent c64577eff0
commit 4476c57444
5 changed files with 121 additions and 1 deletions
+11
View File
@@ -51,6 +51,17 @@ function App() {
});
}, []);
React.useEffect(() => {
if (projectPath) {
const projectName =
projectPath.replace(/\\/g, "/").split("/").filter(Boolean).pop() ??
projectPath;
document.title = `${projectName} | Huskies`;
} else {
document.title = "Huskies";
}
}, [projectPath]);
React.useEffect(() => {
api
.getKnownProjects()