View in #general on Slack
@Raloue_Kapoor: Good evening everyone. I had a small doubt. I need to make 4 different dashboard and explore pages inside one dynamic dashboard app. Just wanted to know if thats possible. If its possible please provide a small note on how to do that. Thanks!
@Juan_Felipe_Cerón_Uribe: At one point I created a dashboard with different tabs with stuff. I ended up morphing this folder in the repo (which details this dashboard) into what I wanted. I had never seen React, took me about a week.
@Florian_Fischer: I basically merged the started app into a bigger existing react app, and started customizing the data and dashboard part pretty heavily from that starting point. So that certainly works.
You might to keep the redux stuff and everything apart for simplicity in such a case.
E.g. https://medium.com/@sumn2u/merging-different-isolated-react-apps-into-single-app-example-568db378870a tells you how that works
Medium: Merging different Isolated React apps into Single App (Example)
The bonus is: you can still merge / update things without randomly breaking things.
@Raloue_Kapoor: Thanks a lot @Florian_Fischer. Will look into this
@Florian_Fischer: For the customization part I was just using regular stuff from https://ant.design/ (because this is what I generated the starter with)
@Chris_Lonardo: yeah, it’s completely doable, and @Florian_Fischer hit the nail on the head with the Redux + state management stuff. i’m in the final stages of implementing a redux-driven “switcher” for multiple shared dashboard layouts on top of react-grid-layout. this will be closed source, but it’s doable.
on a related note, if anyone wants to collab on reusable open-source cube.js dashboard components and state management stuff, shoot me a DM- I’m surprised there’s not already more out there!
all of that being said, you can find some great examples if you look on the cube.js Github -> Insights -> Dependency Graph -> Dependencies, and then filter by project: https://github.com/cube-js/cube.js/network/dependents?package_id=UGFja2FnZS00NjYwMjkzNDE%3D . this shows how people are using cube in the real world. I’ve accumulated a lot of cloned repos and notes on usage in my cube.js journey