Persist Table Filters in the API Explorer (#2936)

* fix: allow changing the categories of a checkbox tree

* feat: allow setting the current selection in the checkbox tree

* feat: allow setting the current selection in the select

* feat: add a way to access the tables internal state (filters, search, ...)

* feat: add useQueryParams hook

* feat: persist the table state of the api explorer in the url

* Use react-use instead of writing own hooks

* Resolve review comments

* Rename selectedChilds to selecetedChildren

* Add changesets

* Support passing a separate state name to useQueryParamState

This allows to use the useQueryParamState hook multiple time per route and have a separate state.

* refactor: fix typo...
This commit is contained in:
Oliver Sand
2020-11-09 18:19:47 +01:00
committed by GitHub
parent 091765a32e
commit 0c0798f082
14 changed files with 427 additions and 74 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
Extend the table to share its current filter state. The filter state can be used together with the new `useQueryParamState` hook to store the current filter state to the browser history and restore it after navigating to other routes.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Persist table state of the API Explorer to the browser history. This allows to navigate between pages and come back to the previous filter state.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
Make the selected state of Select and CheckboxTree controllable from outside.