This PR also includes a patch to the Rails application v4.1.4 that is being deployed to production today, so there is some extra stuff in here that you don't need to worry about. The bits that are relevant are:
Updated the Rails router config/routes.rb to use a wildcard dashboard/*all. All React UI pages should fall under that route!
Deleted the old dmps/ routes from the config/routes.rb
Deleted the old app/controllers/wips_controller.rb and app/policies/wip_policy.rb since they are no longer necessary.
Added some documentation to the app/controllers/dashboards_controller.rb explaining the Rails-React routing
Updated the React router in react-client/src/App.js to prefix the dmp paths with dashboard/
Updated the App.js, dashboard.js, etc. to add dashboard/ to the paths
Updated the react-client/src/pages/dashboard.js and react-client/src/pages/plan/new.js to use the dashboard/ route
This PR also includes a patch to the Rails application v4.1.4 that is being deployed to production today, so there is some extra stuff in here that you don't need to worry about. The bits that are relevant are:
config/routes.rb
to use a wildcarddashboard/*all
. All React UI pages should fall under that route!dmps/
routes from theconfig/routes.rb
app/controllers/wips_controller.rb
andapp/policies/wip_policy.rb
since they are no longer necessary.app/controllers/dashboards_controller.rb
explaining the Rails-React routingreact-client/src/App.js
to prefix thedmp
paths withdashboard/
dashboard/
to the pathsreact-client/src/pages/dashboard.js
andreact-client/src/pages/plan/new.js
to use thedashboard/
route