OU-1466: swap dashboard-list-page to use shared table setup - #1109
OU-1466: swap dashboard-list-page to use shared table setup#1109PeterYurkovich wants to merge 1 commit into
Conversation
|
@PeterYurkovich: This pull request references OU-1466 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "5.0.0" version, but no target version was set. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: PeterYurkovich The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
ChangesDashboard table controls
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@web/src/features/perses-dashboards/pages/dashboard-list-page/DashboardList.tsx`:
- Around line 184-194: Update the column definitions in DashboardList around
columnKeys and useTableColumns so columns includes a fifth non-sortable actions
column matching the action cell supplied by pageRows. Give it an accessible
header label and ensure it is not sortable, preserving the existing four
sortable columns.
- Around line 134-154: Add a co-located DashboardList.spec.ts covering the
migrated table behavior: filtering, sorting, URL-backed pagination, and applying
a filter while viewing a later page. Exercise sortDashboardData and the
DashboardList pagination/filter interactions using the existing frontend testing
conventions.
- Around line 324-330: Update the onFiltersChange callback to reset the
dashboard list pagination to page 1 whenever a filter is applied, before or
alongside onSetFilters. Reuse the existing pagination state setter and preserve
the current filter update behavior, including any required dependency updates
for the useMemo callback.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 3a2d2987-4185-41da-b99f-1fc4affe20e5
📒 Files selected for processing (1)
web/src/features/perses-dashboards/pages/dashboard-list-page/DashboardList.tsx
a1dfb57 to
d2fa140
Compare
|
/retest ci/prow/e2e-monitoring |
|
/test ci/prow/e2e-monitoring |
|
/test e2e-monitoring |
|
/label qe-approved |
|
@PeterYurkovich: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary by CodeRabbit