Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move workflow button to toolbar #839

Merged
merged 32 commits into from
Apr 30, 2024
Merged

Move workflow button to toolbar #839

merged 32 commits into from
Apr 30, 2024

Conversation

ceesvoesenek
Copy link
Collaborator

@ceesvoesenek ceesvoesenek commented Apr 24, 2024

Closes #797
Closes #832
This is a rather involved change since the workflow control needs data from the topology and the current WMS layer (start and end times). Furthermore, I extracted some functionality from WorkflowControl to separate modules.

@ceesvoesenek ceesvoesenek requested a review from wkramer April 24, 2024 11:54
@hvangeffen
Copy link
Collaborator

Bounding box stays active when switching to layer without workflow and or bbox workflow:

image

@hvangeffen
Copy link
Collaborator

Maybe disable button or always have a workflow selected

image

@hvangeffen
Copy link
Collaborator

WQPS workflow is empty on first select

http://localhost:5173/topology/node/water_level/oceanographic_water_level_d3d/map/oceanographic_water_level_d3d
image

After reopening window

image

@hvangeffen
Copy link
Collaborator

Weird spacing on bbox selection click without having drawn a bbox yet

image

@ceesvoesenek
Copy link
Collaborator Author

Maybe disable button or always have a workflow selected

image

We now auto-select the first workflow, so this no longer occurs.

@ceesvoesenek
Copy link
Collaborator Author

WQPS workflow is empty on first select

http://localhost:5173/topology/node/water_level/oceanographic_water_level_d3d/map/oceanographic_water_level_d3d image

After reopening window

image

This is also fixed with auto-selecting the first workflow. In addition, we now show the workflow ID in the selection box if no description of the workflow is provided.

@ceesvoesenek
Copy link
Collaborator Author

Weird spacing on bbox selection click without having drawn a bbox yet

image

image

We now show a dash instead of an empty string when no bounding box has been drawn yet.

@ceesvoesenek
Copy link
Collaborator Author

Bounding box stays active when switching to layer without workflow and or bbox workflow:

image

We now stop the bounding box selection and abandon the work flow when switching nodes.

@hvangeffen hvangeffen self-requested a review April 24, 2024 14:24
@hvangeffen
Copy link
Collaborator

Workflow button disappears when scrolling

image

@hvangeffen
Copy link
Collaborator

Values become NaN and menu / bbox selector break when changing delta to invalid values / below 1 (i.e. 0.3)

image

@ceesvoesenek
Copy link
Collaborator Author

Workflow button disappears when scrolling

image

Now fixed, the toolbar is part of the unscrollable part of the side bar.

@hvangeffen
Copy link
Collaborator

hvangeffen commented Apr 24, 2024

New warning

image

SpatialDisplay.vue

      <SpatialDisplayComponent
        :layer-name="props.layerName"
        :location-id="props.locationId"
        :latitude="props.latitude"
        :longitude="props.longitude"
        :filter-ids="props.filterIds"
        @changeLocationId="onLocationChange"
        :layer-capabilities="layerCapabilities"
        :times="times"
        v-model:elevation="elevation"
        v-model:current-time="currentTime"
        @coordinate-click="onCoordinateClick"
        :secondaryWorkflows="secondaryWorkflows"
      ></SpatialDisplayComponent>

Have to remove :secondaryWorkflows here and maybe also in the parents

Could also remove the v-show for the other warning:

WorkflowsControl.vue:16

  <v-dialog v-show="!selectBbox" width="500" v-model="workflowDialog">
    <v-card>
      <v-card-title>Workflow</v-card-title>
      <v-container>
        <v-col>

@hvangeffen hvangeffen removed their request for review April 24, 2024 14:40
@hvangeffen hvangeffen self-assigned this Apr 24, 2024
@ceesvoesenek
Copy link
Collaborator Author

Trying to draw a bounding box with x-step 0.2 and y-step 0.3 leads to errors from Terra Draw for some reason.

image

@hvangeffen
Copy link
Collaborator

Trying to draw a bounding box with x-step 0.2 and y-step 0.3 leads to errors from Terra Draw for some reason.

image

Terra draw has a default max coordinate precision of 9 decimals.
Fixed in: 181c376

@hvangeffen hvangeffen force-pushed the DWO-638-move-workflow-button branch from b9a56d1 to 1ba4e0b Compare April 25, 2024 08:55
We now use a FEWS PI provider in the WorkflowsControl component, so we
no longer need the useWorkflows service.
This type explicitly names its members, so no confusion can exist over
which of the 4 values is min/max or latitude/longitude.
This prevents us having to deal with Terra Draw's specific flavour of
GeoJSON outside of the drawing component.
This prepares for moving the workflow control to the side bar.
@ceesvoesenek ceesvoesenek force-pushed the DWO-638-move-workflow-button branch from 04367e8 to 109ba56 Compare April 30, 2024 13:50
@wkramer wkramer merged commit 6eaa22e into main Apr 30, 2024
8 checks passed
@wkramer wkramer deleted the DWO-638-move-workflow-button branch April 30, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting a succesful workflow should notify the user Move workflow button to side menu
3 participants