IBM-Cloud / logistics-wizard-webui

Web UI for Logistics Wizard Showcase demo. The Logistics Wizard is an end-to-end, smart supply chain management solution that showcases how to execute hybrid cloud, microservices, and predictive data analytics in the real world.
Other
14 stars 20 forks source link

Hook up actual actions / data to Global Nav #5

Closed colbycheeze closed 8 years ago

colbycheeze commented 8 years ago

Story #2

This is related to controlling the demo from the meta level, switching roles etc.

Since this requires hooking up to redux, wrapping in a HoC to pass the state/actions, and firing off api calls etc it can be a chance for you to learn how that stuff works.

Scribblets commented 8 years ago
colbycheeze commented 8 years ago

Update on this: I've finished the Role Switcher component to accept the role data and fire off corresponding functions from props.

Now I am finishing up refactoring the demos reducer to properly mold the api call data into the state and associate users with their store.

The data fetching action is kicked off by entering the route now, instead of the component being mounted.

I just have to finish up writing in the login piece that is fired off after the demo gets called (which is mostly just refactoring since I have most of it)

Then I can hook them up and we should be good. I think it will take another day and it should be done.