Skip to content

#3479977 Implemented basic local storage for collapsed layers and new expand by default...

As per the D.o ticket, all the layers now default to expanded.

A user can collapse layers (which is handled the new actions in the uiSlice Redux store where we store an array of collapsed uuids.). Each layer that has been collapsed is also stored in localStorage so that it persists. There is a hook that watches the redux data and updates localStorage.

When a component is clicked in the preview (e.g. when the selection changes) a hook removes any of the parents of that component that exist in the collapsed layers array.

Edited by Jesse Baker

Merge request reports

Loading