Don't have code, best got at this point, is pseudocode...
To further flesh out what was thinking, does this sound about right?
Missing steps or sub-steps? How to further flesh out each step/sub-step?
Each of the collapsible tables should have a class. I’d need to;
Create a button in dashboard.ejs that calls a function. This function should:
Use a global boolean declared at the start of Dashboard.js to indicate if the tabs should be OPEN or closed
Get an array of all of the elements with the above class
For each element, check if it is currently open or closed, and simulate a click on the element if I need to change it to match the boolean
Change the appearance of the button to indicate what clicking on it should do
(so if clicking on it would expand everything, something like “EXPAND”, or “COLLAPSE” for the opposite)