perf(widgets): collapse state is now fetched in bulk to reduce queries