This post is partly just to encourage people with what is possible and also to ask about the Grist pages functionality. I have several custom React-based dashboards, all running on a separate Express server for our Grist installation.
I was thinking that it would be great to integrate each page somehow and then I came up with the idea that while each widget cannot change the URL, the page number for each page is static in Grist. I can create links within each individual widget that link to those page numbers and I can set and get local storage keys for each app to pass information in between the apps.
So for example here if I click on this company and I want to see the work orders associated with the company, I can have a view of the work orders but then I have a full-on work order widget as well. My idea is that when the user clicks on the work orders in this company’s dashboard, it will first set a local storage key for a work order number as a detailed view in the work order dashboard itself. When I click the link it will bring me to the work order dashboard and I can just make the react widget there first look for any keys and navigate to that page if they exist or else show the default dashboard if they do not exist.
Any improvements or suggestions anyone would make as to this process of connecting widgets together?
I suppose I could also just make a grist ‘state’ table and read/write from that instead of localstorage as well, but this would have the limitation of only allowing one user unless I used a more complicated schema of read/writing states based on who is logged in.


