-
Notifications
You must be signed in to change notification settings - Fork 75
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
FEM-compatible Project Builder (aka Lab 2 aka /lab-fem) #6037
Conversation
PR UpdateSo it turns out that a lot of the code in the As a result, here's my new approach: copy the WHOLE Dev Notes@mcbouslog apologies for going down this route; I wanted to make minimal copy-pastes to make the review process MUCH easier, but this was the best way I could find to compartmentalise the
(Note: the alternative to copy-pasting the whole folder was to modify the existing lab code to have an if-else switch, so project.cjsx's StatusSmall WIP left - I need to modify the shortcut editor |
I'm probably missing something but why not pass the base path ( |
You can also get the current path from React router, which should tell you the |
PR Update❗ Big change: whether or not your get an FEM-compatible or PFE-compatible Project Builder page is now determined by the underlying project's configuration, NOT an explicit URL. e.g. https://pr-6037.pfe-preview.zooniverse.org/lab/1873/workflows/3532 will give you the FEM-compatible workflow editor, IF project 1873 is configured to use FEM. Otherwise, you'll get the PFE-compatible workflow editor.
|
PR Update
I'm going to mark this PR ready for review, but I want to have one additional quick chat with Cliff on Slack to see if he wants to have an easier toggle for enabling/disabling FEM lab mode (i.e. use Experimental Tools while we wait for the full top-level |
PR Update (Ready-For-Review Compilation)This PR adds an FEM-compatible Project Builder to PFE.
At the moment, this is how the FEMLabRouter determine if we should use FEM-compatible pages:
UPDATE: you can now set the Context: as we try to migrate fully from PFE to FEM, we need to encourage project owners to build projects that are compatible with FEM. To do so, we need to give them a Project Builder that's compatible with FEM. Dev Notes
StatusThis PR is now ready for review |
@lcjohnso @mrniaboc @snblickhan Executive Summary
We can also add Long term, I DO believe there's agreement among the devs to use a project-level Here are the pros/cons of our current approach:
|
Blargh, the staging deploys are still borked since this morning, so it's difficult to test the code on https://pr-6037.pfe-preview.zooniverse.org/ until it's fixed. |
Updated branch to reflect changes to |
@shaunanoordin -- Following up on our conversation today -- a few opinions:
|
Can we use |
@eatyourgreens I wanted to confirm something that I was discussing with Cliff earlier. Can you please help confirm my understanding that...?
If what I talked with Cliff is correct, then the idea to use |
Also, following Cliff's comments: PR Update
I've updated the Executive Summary with some notes. |
Oh good point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!! Confirmed status quo, and...
- PFE project => PFE project builder
- PFE project => toggle experimental FEM builder => FEM builder
- PFE project => query param to FEM builder => FEM builder
- FEM project => query param to PFE builder => PFE builder
Requesting changes relating to query param check and omitting ShortcutEditor, but open to pushback.
PR UpdateThanks for the review, @mcbouslog ! This PR has been updated with your feedback:
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Overview
This PR adds an FEM-compatible Project Builder to PFE.
Context: as we try to migrate fully from PFE to FEM, we need to encourage project owners to build projects that are compatible with FEM. To do so, we need to give them a Project Builder that's compatible with FEM.
The FEM-compatible Project Builder is accessible from the/fem-lab
route../lab
folder.Testing
Staging URL: https://pr-6037.pfe-preview.zooniverse.org/
Suggested Test URLs:https://pr-6037.pfe-preview.zooniverse.org/lab-fem/https://pr-6037.pfe-preview.zooniverse.org/lab-fem/1873/workflows/3520Status
WIP
Completed:
lab
branch that Jim worked on, plus its stylesAdded new/lab-fem
route (we can change this to/lab-2
later if we decide to)Example: https://local.zooniverse.org:3735/lab-fem/1873/workflows/3520TODO:
lab
branch.Holy crap a lot of the workflows component has the/lab
path baked into its links, this needs to be solved.