PMM-14848: import useTableUrlState - #5537
Conversation
Co-authored-by: Fábio Silva <fabio-silva@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5537 +/- ##
==========================================
- Coverage 43.59% 37.15% -6.44%
==========================================
Files 415 215 -200
Lines 43134 7186 -35948
Branches 0 591 +591
==========================================
- Hits 18804 2670 -16134
+ Misses 22454 4377 -18077
+ Partials 1876 139 -1737
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
WalkthroughThe PR adds debounced search behavior, clears empty Grafana search parameters, introduces a shared table URL-state hook, integrates URL state into RTA tables, preserves unrelated query parameters, updates elapsed-time filtering, and relocates a test fixture. ChangesSearch and Grafana state
RTA URL state
Test fixture organization
Sequence Diagram(s)sequenceDiagram
participant SearchInput
participant Search
participant SearchHandler
SearchInput->>Search: change value
Search->>Search: schedule 300 ms debounce
Search->>SearchHandler: execute debounced search
SearchInput->>Search: submit form
Search->>Search: cancel pending debounce
Search->>SearchHandler: execute immediate search
sequenceDiagram
participant RtaTable
participant useTableUrlState
participant ReactRouter
participant PerconaTableState
RtaTable->>useTableUrlState: provide table options
useTableUrlState->>ReactRouter: read search parameters
useTableUrlState->>PerconaTableState: forward parameters and setter
PerconaTableState-->>RtaTable: return table props and state
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Comment |
Ticket number: PMM-14848
(depends on percona/peak-ui#31) -> new version to be imported from the lib