* Create table pagination helpers * Update Curations table to use new pagination helpers * Update Credentials table to use new helpers + update to use DEFAULT_META and pass page[size] customization + update useEffect to manually call fetchCredentials on current page change + update table to pass empty prompt within table (rather than instead of), and add a loading indicator - update deleteApiKey to re-fetch credentials from API rather than modify the in-memory array (which more correctly handles pagination) * Update Engines table to use new helpers Server: + update server route to take page[current] (consistent w/ other routes) and page[size] - remove custom param translation (passing as-is) - remove ENGINES_PAGE_SIZE constant, basically stored within DEFAULT_META now and page size is passed from client-side - remove misc header cruft from engines table EnginesLogic: - Update http calls to send page[current] & page[size] (same as other files) - Change individual *Total/*Page vars to store the meta obj coming back from the API (same as other logic files) - Change on*Load actions to simply pass the API response (update typing to clarify) - Add new individual enginesLoading/metaEnginesLoading vars so that tables can show individual loading indicators between pagination - Change dataLoading to a selector (should only show on initial page load, and should use table loading indicators after) EnginesTable: - Update props to more closely match EuiBasicTable (items, onChange, add loading) so users can do a simple pass-through - Reorganize tests so that language block doesn't need its own custom wrapper vars - Remove empty data test (no longer really testing anything meaningful) and add loading test EnginesOverview: - Update to use new helpers, values, props, etc. - Add new test for onPaginate handlers |
||
---|---|---|
.. | ||
__mocks__ | ||
strip_slashes | ||
types | ||
constants.ts |