zooniverse / front-end-monorepo

A rebuild of the front-end for zooniverse.org
https://www.zooniverse.org
Apache License 2.0
104 stars 30 forks source link

Availability of Buttons for Completed Workflows on Project Landing Page #6188

Open lcjohnso opened 1 month ago

lcjohnso commented 1 month ago

Problem Description

If a project has multiple active workflows and all workflows are 100% complete (all workflows retired), the project landing page does not show any workflow buttons or provide access to those workflows. Note: declaring a default workflow will result in that single workflow button being shown for that paused project, however that's not the desired behavior (which is: show all the buttons).

Describe the solution you'd like

  1. Same as the case when projects have a single active workflow, show buttons for all retired workflows in the case that the project is pause (no workflows with unretired subjects).
  2. Deprecate the "default workflow" option in the FEM-lab workflow editor page.

Additional context

Screenshot of undesired behavior: a paused project with two active workflows (but no default workflow).

Screenshot 2024-07-23 at 3 35 48 PM

cc: @goplayoutside3

lcjohnso commented 1 month ago

One way to implement this: as part of fetchWorkflowData(), in the case that the original query comes back empty (i.e., no incomplete active workflows), run a second query that drops the complete: false condition to return all active workflows. That is in contrast to current behavior where the original query comes back empty and therefore the project shows "nothing to classify" because the workflows variable is empty.