We currently store the open/close state of sidebar collapsible menus in local storage discretely:
For each applicable <details> tag we use a variable name prefixing details- to the element ID, and boolean value for its state.
This is kinda stupid. It'd be much more elegant to store these KV pairs in an object.