feat: gate graphmode workflow for new server version (#240)

This commit is contained in:
Nikhil
2026-01-15 16:34:42 -08:00
committed by GitHub
parent aba5745709
commit 85ab5e9d3d
3 changed files with 19 additions and 11 deletions

View File

@@ -14,17 +14,21 @@ export const FooterLinks: FC<FooterLinksProps> = ({ onOpenShortcuts }) => {
return (
<div className="flex items-center justify-center gap-4 pt-4">
<a
href="/options.html#/workflows"
className="group inline-flex flex-row gap-2 text-muted-foreground text-xs transition-colors hover:text-foreground"
>
<GitBranch className="h-4 w-4 transition-colors group-hover:text-accent-orange" />
Workflows{' '}
<span className="text-accent-orange group-hover:text-accent-orange-bright">
(new)
</span>
</a>
<span className="text-muted-foreground"></span>
{supports(Feature.WORKFLOW_SUPPORT) && (
<>
<a
href="/options.html#/workflows"
className="group inline-flex flex-row gap-2 text-muted-foreground text-xs transition-colors hover:text-foreground"
>
<GitBranch className="h-4 w-4 transition-colors group-hover:text-accent-orange" />
Workflows{' '}
<span className="text-accent-orange group-hover:text-accent-orange-bright">
(new)
</span>
</a>
<span className="text-muted-foreground"></span>
</>
)}
<a
href="/options.html#/scheduled"
className="group inline-flex flex-row gap-2 text-muted-foreground text-xs transition-colors hover:text-foreground"

View File

@@ -50,6 +50,7 @@ const navigationItems: NavItem[] = [
to: '/workflows',
icon: GitBranch,
enabled: true,
feature: Feature.WORKFLOW_SUPPORT,
},
{
name: 'Scheduled Tasks',

View File

@@ -29,6 +29,8 @@ export enum Feature {
CUSTOMIZATION_SUPPORT = 'CUSTOMIZATION_SUPPORT',
// Workspace folder selection with full path support requires new browserOS.choosePath API
WORKSPACE_FOLDER_SUPPORT = 'WORKSPACE_FOLDER_SUPPORT',
// Workflows feature
WORKFLOW_SUPPORT = 'WORKFLOW_SUPPORT',
}
/**
@@ -48,6 +50,7 @@ const FEATURE_CONFIG: { [K in Feature]: FeatureConfig } = {
[Feature.UNIFIED_PORT_SUPPORT]: { minBrowserOSVersion: '0.36.1.0' },
[Feature.CUSTOMIZATION_SUPPORT]: { minBrowserOSVersion: '0.36.1.0' },
[Feature.WORKSPACE_FOLDER_SUPPORT]: { minBrowserOSVersion: '0.36.4.0' },
[Feature.WORKFLOW_SUPPORT]: { minServerVersion: '0.0.41' },
}
function parseVersion(version: string): number[] {