In case of using many spaces with views inside we need to scroll a lot to find the right place. It would be great to have a button/action to collapse all spaces.
Thanks, noted your request Have a feature somewhere in the backlog, but no eta, unfortunately
Yes, this ‘collapse all’ link is needed. With regard to sidbar optimization, see also related: Either organize spaces in folders, or sub-spaces