-
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
Rewrite router to NOT use CoffeeScript #6041
Conversation
Nothing is broken in projects, Talk or the project builder, after some very quick, initial clicking of links on the staging site. |
<Route path="organization-status/:owner/:name" component={OrganizationStatus} /> | ||
</Route> | ||
|
||
<Route path="todo" component={() => <div className="content-container"><i className="fa fa-cogs"></i> TODO</div>} /> |
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.
No, seriously, what is this?
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.
</Route> | ||
|
||
<Route path="todo" component={() => <div className="content-container"><i className="fa fa-cogs"></i> TODO</div>} /> | ||
<Route path="dev/workflow-tasks-editor" component={require('./components/workflow-tasks-editor')} /> |
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.
What is this?? https://www.zooniverse.org/dev/workflow-tasks-editor
Co-Authored-By: Jim O'Donnell <[email protected]>
PR Update
Thanks, Jim! |
PR Overview
CoffeeScript is bad. We want basic JavaScript. This PR refactors the PFE router to not use the bad CoffeeScript.
app/router.cjsx
is nowapp/router.jsx
Testing
❗ This affects a foundational aspect of PFE, so please double check everything!
Testing URL: https://pr-6041.pfe-preview.zooniverse.org
Expected behaviour:
Status
Ready for review. Required for #6037
Note that I didn't optimise or future-proof anything. If you want to, go ahead and make an in-line suggestion and I'll commit them to the branch. 👌