File tree Expand file tree Collapse file tree 8 files changed +34
-19
lines changed
routes/projects/[projectId] Expand file tree Collapse file tree 8 files changed +34
-19
lines changed Original file line number Diff line number Diff line change 33
44# Unreleased
55
6+ * Update import-workflow feature (\# 269).
67* Revamp home page and user-related layout (\# 259).
78* Review logout action (\# 259).
89* Implemented editing and deletion of tasks (\# 207, \# 268).
9- * Bump ` word-wrap ` from 1.2.3 to 1.2.5 (\# 251).
1010* Implemented A to B workflow execution (\# 254).
11- * Improved enable/disable button state (\# 257).
1211* Fixed workflowtask meta update (\# 261).
12+ * Improved enable/disable button state (\# 257).
13+ * Bump ` word-wrap ` from 1.2.3 to 1.2.5 (\# 251).
1314
1415# 0.5.2
1516
Original file line number Diff line number Diff line change 8181 </div >
8282 </div >
8383 </div >
84- <button class ="btn btn-primary" type ="submit" disabled ={! enableCreateDataset }> Create dataset </button >
84+ <button class ="btn btn-primary" type ="submit" disabled ={! enableCreateDataset }>Create new dataset </button >
8585 </form >
8686 </div >
8787 </div >
Original file line number Diff line number Diff line change 6363 < / div>
6464 < / div>
6565 < div class = " col-auto" >
66- < button type= " submit" class = " btn btn-primary" disabled= {! enableCreateProject}> Create project< / button>
66+ < button type= " submit" class = " btn btn-primary" disabled= {! enableCreateProject}> Create new project < / button>
6767 < / div>
6868 < / form>
6969 < div id= " createProjectErrorAlert" class = " mt-3" / >
Original file line number Diff line number Diff line change 88 // Component properties
99 let importing = false ;
1010 let importSuccess = undefined ;
11+ let workflowName = undefined ;
1112
1213 async function handleWorkflowImportForm ({ form }) {
1314 importing = true ;
3233 error
3334 }
3435 });
36+ importing = false ;
3537 }
3638 };
3739 }
5254 />
5355 </div >
5456
55- <button class ="btn btn-primary" disabled ={importing }>
57+ <div class =" mb-2" >
58+ <label for =" workflowName" class =" form-label" >Override workflow name (optional)</label >
59+ <input id ="workflowName" name ="workflowName" type ="text" bind:value ={workflowName } class =" form-control" >
60+ </div >
61+
62+ <button class ="btn btn-primary mt-2" disabled ={importing }>
5663 {#if importing }
5764 <span class =" spinner-border spinner-border-sm" role =" status" aria-hidden =" true" />
5865 {/if }
Original file line number Diff line number Diff line change 8989 <caption class =' text-bg-light border-top border-bottom pe-3 ps-3' >
9090 <div class =' d-flex align-items-center justify-content-between' >
9191 <span class =' fw-normal' >
92- <span
93- role =' button'
94- class =' text-decoration-none'
95- data-bs-toggle =' modal'
96- data-bs-target =' #importWorkflowModal' >Import workflow</span
97- >
92+ <button
93+ type =" button"
94+ class =" btn btn-primary"
95+ data-bs-toggle =" modal"
96+ data-bs-target =" #importWorkflowModal" >
97+ Import workflow
98+ </button >
9899 </span >
99100 <div >
100101 <form
116117 </div >
117118 </div >
118119 <button class ="btn btn-primary" disabled ={! enableCreateWorkflow } type =" submit" >
119- Create workflow
120+ Create new workflow
120121 </button >
121122 </form >
122123 </div >
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export const actions = {
7171 const formData = await request . formData ( ) ;
7272
7373 const workflowFile = formData . get ( 'workflowFile' ) ;
74+ const workflowName = formData . get ( 'workflowName' ) ;
7475 try {
7576 const workflowMetadata = await workflowFile
7677 . text ( )
@@ -79,6 +80,11 @@ export const actions = {
7980 throw new Error ( 'The workflow file is not a valid JSON file' , error ) ;
8081 } ) ;
8182
83+ if ( workflowName ) {
84+ console . log ( `Overriding workflow name from ${ workflowMetadata . name } to ${ workflowName } ` ) ;
85+ workflowMetadata . name = workflowName ;
86+ }
87+
8288 const workflow = await importWorkflow ( fetch , params . projectId , workflowMetadata ) . catch (
8389 ( error ) => {
8490 console . error ( 'Error importing workflow' , error ) ;
Original file line number Diff line number Diff line change 216216 on:input ={(event ) => {enableCreateResource = fieldHasValue (event )}} />
217217 </div >
218218
219- <button class ="btn btn-primary" disabled ={! enableCreateResource }>Create resource</button >
219+ <button class ="btn btn-primary" disabled ={! enableCreateResource }>Create new resource</button >
220220 </form >
221221
222222 {#if createResourceSuccess }
Original file line number Diff line number Diff line change 4141 ]
4242 },
4343 "task" : {
44- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::create_ome-zarr_structure"
44+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::create_ome-zarr_structure"
4545 }
4646 },
4747 {
5454 "delete_input" : false
5555 },
5656 "task" : {
57- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::convert_yokogawa_to_ome-zarr"
57+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::convert_yokogawa_to_ome-zarr"
5858 }
5959 },
6060 {
6767 "suffix" : " mip"
6868 },
6969 "task" : {
70- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::copy_ome-zarr_structure"
70+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::copy_ome-zarr_structure"
7171 }
7272 },
7373 {
7878 },
7979 "args" : null ,
8080 "task" : {
81- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::maximum_intensity_projection"
81+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::maximum_intensity_projection"
8282 }
8383 },
8484 {
107107 "output_label_name" : " nuclei"
108108 },
109109 "task" : {
110- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::cellpose_segmentation"
110+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::cellpose_segmentation"
111111 }
112112 },
113113 {
142142 }
143143 },
144144 "task" : {
145- "source" : " pip_remote:fractal_tasks_core:0.10.0 :fractal-tasks::napari_workflows_wrapper"
145+ "source" : " pip_remote:fractal_tasks_core:0.10.1 :fractal-tasks::napari_workflows_wrapper"
146146 }
147147 }
148148 ]
You can’t perform that action at this time.
0 commit comments