Skip to content

[AnVIL DX] Upgrade findable-ui with filter param validation fix #4786

@frano-m

Description

@frano-m

Summary

Upgrade @databiosphere/findable-ui to the version containing the filter param validation fix (findable-ui#899) and revert the provider move from #4783.

What needs to happen

  1. Revert ExploreStateProvider and DataDictionaryStateProvider to their original position outside the ErrorBoundary in pages/_app.tsx. Moving them inside (fix: move providers inside ErrorBoundary to prevent crash loop #4783) caused state loss when navigating to non-entity-list pages.

  2. Upgrade findable-ui to pick up the filter param validation fix, which handles the crash loop at the library level instead:

    • parseFilterParam safely parses filter URL params without throwing (prevents reducer crash above ErrorBoundary)
    • useValidateFilterParam hook surfaces invalid filter errors inside the ErrorBoundary (renders error page)

Context

The original fix (#4783) moved providers inside the ErrorBoundary to catch reducer crashes. This worked for the crash loop but broke state preservation on navigation. The findable-ui fix (#899) solves the root cause — invalid filter params are validated defensively in the reducer path and errors are surfaced via a hook inside the ErrorBoundary.

Reference

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions