log2trace-ui - v1.0.0-RC1
    Preparing search index...

    Function buildQueryParams

    • Convert active external filter values into a flat record suitable for URL query parameters.

      Encoding rules per filter type:

      • datetime-range becomes two keys, <field>From and <field>To, each only present when its bound is set.
      • checkbox is emitted only when truthy, with the literal string "true".
      • multiselect is emitted as a string[] so callers can serialize it however their backend expects (repeated keys, comma-joined, etc.).
      • All other types fall through as a single string under config.field.

      Inactive filters (empty value) are skipped.

      Parameters

      • filters: Filter[]

        The full filter set; only those with non-empty values are encoded.

      Returns Record<string, string | string[]>

      A record keyed by query-parameter name.