Skip to content

Commit 3ee2010

Browse files
authored
fixes (#1421)
1 parent 1763878 commit 3ee2010

File tree

3 files changed

+13
-36
lines changed

3 files changed

+13
-36
lines changed

frontend/app/src/pages/main/managed-workers/demo-template/index.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { Label } from '@/components/ui/label';
2323
import { Card } from '@/components/ui/card';
2424
import { cloudApi } from '@/lib/api/api';
2525
import api from '@/lib/api';
26-
import { Checkbox } from '@/components/ui/checkbox';
2726
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
2827
import { GitHubLogoIcon } from '@radix-ui/react-icons';
2928

@@ -34,7 +33,7 @@ export default function DemoTemplate() {
3433
const [deployedWorkerId, setDeployedWorkerId] = useState<string | null>(null);
3534
const [deploymentError, setDeploymentError] = useState<string | null>(null);
3635
const [deploymentStatus, setDeploymentStatus] = useState<string>('');
37-
const [isSimulation, setIsSimulation] = useState(false);
36+
const [isSimulation] = useState(false);
3837
const [workflowId, setWorkflowId] = useState<string | null>(null);
3938
const [, setTriggering] = useState(false);
4039
const [, setTriggerSuccess] = useState(false);
@@ -650,22 +649,6 @@ func main() {
650649
</ul>
651650
</div>
652651

653-
<div className="flex items-center space-x-2 mb-4">
654-
<Checkbox
655-
id="simulation"
656-
checked={isSimulation}
657-
onCheckedChange={(checked) => {
658-
setIsSimulation(checked === true);
659-
}}
660-
/>
661-
<Label
662-
htmlFor="simulation"
663-
className="text-sm font-medium"
664-
>
665-
Use simulation mode (doesn't create actual resources)
666-
</Label>
667-
</div>
668-
669652
{deploying && (
670653
<div className="border rounded-lg p-4 mb-4 bg-muted/20">
671654
<div className="flex items-center mb-2">

frontend/app/src/pages/main/v1/managed-workers/demo-template/index.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { Label } from '@/components/ui/label';
2323
import { Card } from '@/components/ui/card';
2424
import { cloudApi } from '@/lib/api/api';
2525
import api from '@/lib/api';
26-
import { Checkbox } from '@/components/ui/checkbox';
2726
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
2827
import { GitHubLogoIcon } from '@radix-ui/react-icons';
2928

@@ -34,7 +33,7 @@ export default function DemoTemplate() {
3433
const [deployedWorkerId, setDeployedWorkerId] = useState<string | null>(null);
3534
const [deploymentError, setDeploymentError] = useState<string | null>(null);
3635
const [deploymentStatus, setDeploymentStatus] = useState<string>('');
37-
const [isSimulation, setIsSimulation] = useState(false);
36+
const [isSimulation] = useState(false);
3837
const [workflowId, setWorkflowId] = useState<string | null>(null);
3938
const [, setTriggering] = useState(false);
4039
const [, setTriggerSuccess] = useState(false);
@@ -650,22 +649,6 @@ func main() {
650649
</ul>
651650
</div>
652651

653-
<div className="flex items-center space-x-2 mb-4">
654-
<Checkbox
655-
id="simulation"
656-
checked={isSimulation}
657-
onCheckedChange={(checked) => {
658-
setIsSimulation(checked === true);
659-
}}
660-
/>
661-
<Label
662-
htmlFor="simulation"
663-
className="text-sm font-medium"
664-
>
665-
Use simulation mode (doesn't create actual resources)
666-
</Label>
667-
</div>
668-
669652
{deploying && (
670653
<div className="border rounded-lg p-4 mb-4 bg-muted/20">
671654
<div className="flex items-center mb-2">

frontend/app/src/router.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,17 @@ export const routes: RouteObject[] = [
509509
},
510510
),
511511
},
512+
{
513+
path: '/managed-workers/demo-template',
514+
lazy: async () =>
515+
import(
516+
'./pages/main/managed-workers/demo-template/index.tsx'
517+
).then((res) => {
518+
return {
519+
Component: res.default,
520+
};
521+
}),
522+
},
512523
{
513524
path: '/v1/managed-workers/demo-template',
514525
lazy: async () =>

0 commit comments

Comments
 (0)