Skip to content

parseListViewConfigCookies

parseListViewConfigCookies(props): ListViewConfigCookieValues

Defined in: packages/core/src/collections/listView/listViewConfigCookies.ts:95

Resolves every layout-affecting list preference from the request’s cookies. Pure, like readLivePreviewPanelCookie, so the server component (NextAdminPage) and any other reader share one interpretation of the stored values.

Reads density off the consolidated vex-admin cookie and chipsVisible off vex-admin:<collectionSlug> (Decision 51) — unchanged signature/behavior from the caller’s point of view.

string

The collection whose chip-row visibility cookie to read (chipsVisible is collection-scoped; density is not).

ListViewConfigCookieReader

The request’s cookie jar.

ListViewConfigCookieValues

{ density, chipsVisible } — density falls back to "comfortable" when the cookie is absent or holds anything other than "comfortable"/"compact"; chipsVisible falls back to true (Decision 10’s “chips show by default”) unless the cookie holds exactly false.