diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index fa18b004..0b1182c1 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -134,6 +134,21 @@ const Header: React.FC = ({ activePage, associatedWorkflowId, runId } }, [isHistoryOpen]) + useEffect(() => { + if (activePage === 'workflow' || activePage === 'trace') { + document.title = `${projectName} - PySpur` + } + if (activePage === 'dashboard') { + document.title = `Dashboard - PySpur` + } + if (activePage === 'evals') { + document.title = `Evals - PySpur` + } + if (activePage === 'rag') { + document.title = `RAG - PySpur` + } + }, [projectName, activePage]) + useHotkeys( ['mod+enter'], (e) => {