feat(settings): carry category choices in the labs list layout

The list layout gains two choices that only the labs list reads:
groupBy (none or category, default none) and groupsOpen (expanded,
flagged or collapsed, default expanded). The resolver keeps a valid
stored value and drops anything else to the default, the PUT merges
both field by field, and the hook exposes a setter for each. A
browser value from before the server column never held them, so the
legacy parse fills them from the defaults.
This commit is contained in:
Marc-André Bombeck committed 2026-11-06 17:44:38 +01:00
1 parent 2e14b2d8b5
commit e2170115c7
10 files changed
+208 -13

No files matched your search

+29
View File
@@ -34117,6 +34117,17 @@ components:
- alphaAsc
- alphaDesc
- manual
groupBy:
type: string
enum:
- none
- category
groupsOpen:
type: string
enum:
- expanded
- flagged
- collapsed
required:
- version
- list
@@ -75011,6 +75022,22 @@ components:
- alphaDesc
- manual
description: Sort of the labs list; `manual` follows `order`. Default "recentDesc". The other lists ignore it.
groupBy:
type: string
enum:
- none
- category
description: 'Whether the labs list shows its server-resolved categories (`category`) or one flat list (`none`). Default
"none". The labs list stays flat while `GET /api/labs/overview` answers `grouped: false`. The other lists
ignore it.'
groupsOpen:
type: string
enum:
- expanded
- flagged
- collapsed
description: 'Which labs categories start open: every one (`expanded`), only those whose `status` is `above` or `below`
(`flagged`), or none (`collapsed`). Default "expanded". The other lists ignore it.'
saved:
type: boolean
description: True when the server holds a choice for this list; false means every field is a default.
@@ -75018,6 +75045,8 @@ components:
- view
- order
- sortDir
- groupBy
- groupsOpen
- saved
additionalProperties: false
ModuleListLayoutSavedEnvelope: