Skip to content

[muk]: Allow datagrid-filtering (server-side) via searchParams #20963

@aottr

Description

@aottr

Have you already checked if a similar item is present on muk?

  • Yes, I have already checked the existing components/hooks/utils.

What do you expect from this request?

Hook

Description

For the data-retrieval hooks we use in the Datagrid that use filtering / sorting (useIceberg/v2/v6) we want to use the searchParams (if present) to pre-fill the filtering / sorting states.

This enables the customer to bookmark / share urls with specific filters already set.

E.g. filter on a specific category / product type

Where do you expect to use this?

Datagrid filtering

Do you have mock-up?

no

When do you expect this to be delivered?

31-01-26

Additional Information

We currently preset the filter / sorting data with empty values in useDataRetrievalOperations (ref: https://github.com/ovh/manager/blob/master/packages/manager-ui-kit/src/hooks/data-api/useDataRetrievalOperations.ts)

This gives us also a chance to utilise nuqs (ref: https://nuqs.dev/) to ensure the preset values to be type-safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions