107 | );
108 | };
109 |
110 | export default Layout;
111 |
--------------------------------------------------------------------------------
/webview-ui/src/Layout/SeqeraCloud/Workspace/AddPipeline/index.tsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useState } from "react";
2 | import { useTowerContext } from "../../../../Context";
3 |
4 | import type {
5 | ComputeEnv,
6 | AddPipelineRequest,
7 | AddPipelineResponse
8 | } from "../../../../Context/types";
9 | import Layout from "./Layout";
10 |
11 | const initialState: AddPipelineRequest = {
12 | name: "",
13 | description: "",
14 | launch: {
15 | workspaceId: "",
16 | computeEnvId: "",
17 | workDir: "",
18 | pipeline: "",
19 | revision: ""
20 | }
21 | };
22 |
23 | const AddPipeline = () => {
24 | const {
25 | fetchHubPipelines,
26 | hubPipelines,
27 | repoInfo,
28 | workspaceId,
29 | addPipeline,
30 | fetchComputeEnvs,
31 | computeEnvs
32 | } = useTowerContext();
33 | const [selectedComputeEnv, setSelectedComputeEnv] =
34 | useState