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

feat(app-project): remember current workflow in a same-site session cookie #6216

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 16, 2024

  1. feat(app-project): remember current workflow in a cookie

    - Store your selected workflow in a `workflow_id` session cookie on the `zooniverse.org` domain, scoped to the current project.
    - Set that cookie when you choose a workflow with the `WorkflowSelectButton` component.
    - Read the cookie in the Project model, and store it as `project.selectedWorkflow`. Fall back to `project.defaultWorkflow` for backwards compatibility.
    - Use `project.defaultWorkflow` on the Classify page, if there's no workflow in the URL.
    - Use `props.workflowID` on the Classify page, if there is a workflow in the URL.
    - Add the project context to tests.
    eatyourgreens committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    364073d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8688a0 View commit details
    Browse the repository at this point in the history