This capability is arriving as part of the larger change to be able to switch between list and board views, now underway:
As soon as the list projects in your workspaces undergo this conversion (should be sometime within the next couple of months based on the latest news updates), you will be able to collapse your sections when in list view!