mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-15 00:49:53 +00:00
feat: gate graphmode workflow for new server version (#240)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -50,6 +50,7 @@ const navigationItems: NavItem[] = [
|
||||
to: '/workflows',
|
||||
icon: GitBranch,
|
||||
enabled: true,
|
||||
feature: Feature.WORKFLOW_SUPPORT,
|
||||
},
|
||||
{
|
||||
name: 'Scheduled Tasks',
|
||||
|
||||
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user