@@ -37,7 +37,7 @@ import RunModal from './modals/RunModal'
37
37
import SettingsModal from './modals/SettingsModal'
38
38
39
39
interface HeaderProps {
40
- activePage : 'dashboard' | 'workflow' | 'evals' | 'trace' | 'rag'
40
+ activePage : 'dashboard' | 'workflow' | 'evals' | 'trace' | 'runs' | ' rag'
41
41
associatedWorkflowId ?: string
42
42
runId ?: string
43
43
handleDownloadImage ?: ( ) => void
@@ -141,7 +141,7 @@ const Header: React.FC<HeaderProps> = ({ activePage, associatedWorkflowId, runId
141
141
} , [ isHistoryOpen ] )
142
142
143
143
useEffect ( ( ) => {
144
- if ( activePage === 'workflow' || activePage === 'trace' ) {
144
+ if ( activePage === 'workflow' || activePage === 'trace' || activePage === 'runs' ) {
145
145
document . title = `${ projectName } - PySpur`
146
146
}
147
147
if ( activePage === 'dashboard' ) {
@@ -309,7 +309,7 @@ const Header: React.FC<HeaderProps> = ({ activePage, associatedWorkflowId, runId
309
309
) }
310
310
</ NavbarBrand >
311
311
312
- { ( activePage === 'workflow' || activePage === 'trace' ) && (
312
+ { ( activePage === 'workflow' || activePage === 'trace' || activePage === 'runs' ) && (
313
313
< NavbarContent
314
314
className = "h-12 rounded-full bg-transparent sm:flex"
315
315
id = "workflow-title"
@@ -343,6 +343,7 @@ const Header: React.FC<HeaderProps> = ({ activePage, associatedWorkflowId, runId
343
343
</ NavbarItem >
344
344
{ activePage === 'workflow' && < NavbarItem isActive = { activePage === 'workflow' } > Editor</ NavbarItem > }
345
345
{ activePage === 'trace' && < NavbarItem isActive = { activePage === 'trace' } > Trace</ NavbarItem > }
346
+ { activePage === 'runs' && < NavbarItem isActive = { activePage === 'runs' } > Runs</ NavbarItem > }
346
347
< NavbarItem isActive = { activePage === 'evals' } >
347
348
< Link className = "flex gap-2 text-inherit" href = "/evals" >
348
349
Evals
@@ -657,6 +658,18 @@ const Header: React.FC<HeaderProps> = ({ activePage, associatedWorkflowId, runId
657
658
</ NavbarItem >
658
659
</ NavbarContent >
659
660
) }
661
+ { activePage === 'runs' && (
662
+ < NavbarContent
663
+ className = "ml-auto flex h-12 max-w-fit items-center gap-0 rounded-full p-0 lg:bg-content2 lg:px-1 lg:dark:bg-content1"
664
+ justify = "end"
665
+ >
666
+ < NavbarItem >
667
+ < Link href = { `/workflows/${ associatedWorkflowId } ` } >
668
+ < Button variant = "light" > Go To Workflow</ Button >
669
+ </ Link >
670
+ </ NavbarItem >
671
+ </ NavbarContent >
672
+ ) }
660
673
< NavbarContent
661
674
className = "flex h-12 max-w-fit items-center gap-0 rounded-full p-0 lg:bg-content2 lg:px-1 lg:dark:bg-content1"
662
675
justify = "end"
0 commit comments