Repository navigation
Fix: Switching pagesize on a chunk page did not reset the current page. - #15401
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThree independent frontend adjustments: pagination logic now resets to page 1 when page size changes; filter submit callbacks refactor falsy state handling; and dataset operation_status filter options are generated from RunningStatusOld instead of RunningStatus. ChangesFrontend hook and dataset filter updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
web/src/pages/dataset/dataset-overview/index.tsx (1)
189-193: 💤 Low valueRemove leftover commented-out lines.
Lines 189 and 192 are stale commented code from the previous
RunningStatusmapping and add noise.🧹 Cleanup
list: Object.values(RunningStatusOld).map((value) => { - // const value = key as RunningStatus; return { id: value, - // label: RunningStatusMap[value].label, label: RunningStatusMap[value], }; }),🤖 Prompt for 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. In `@web/src/pages/dataset/dataset-overview/index.tsx` around lines 189 - 193, Remove the stale commented lines left in the mapping block: delete the "// const value = key as RunningStatus;" and "// label: RunningStatusMap[value].label," comments and leave the return object using id: value and label: RunningStatusMap[value]; this cleans up the leftover RunningStatus-related commented code while preserving the mapping logic in the dataset overview component.
🤖 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/components/list-filter-bar/use-handle-filter-submit.ts`:
- Around line 51-68: Remove filterValue from the dependency array of the
useCallback that defines checkValue so the callback identity doesn't change on
every filterValue update; keep the callback using setFilterValue((preValue) =>
...) and depend only on stable helpers if needed (e.g., getFilterIds,
mergeFilterValue) or an empty array if those are stable, referencing checkValue,
setFilterValue, mergeFilterValue, getFilterIds, FilterCollection/FilterType and
FilterValue to locate the block to edit.
---
Nitpick comments:
In `@web/src/pages/dataset/dataset-overview/index.tsx`:
- Around line 189-193: Remove the stale commented lines left in the mapping
block: delete the "// const value = key as RunningStatus;" and "// label:
RunningStatusMap[value].label," comments and leave the return object using id:
value and label: RunningStatusMap[value]; this cleans up the leftover
RunningStatus-related commented code while preserving the mapping logic in the
dataset overview component.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: df063b2c-dccf-437d-94ff-0d324e353775
📒 Files selected for processing (2)
web/src/components/list-filter-bar/use-handle-filter-submit.tsweb/src/pages/dataset/dataset-overview/index.tsx
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15401 +/- ##
==========================================
- Coverage 94.56% 93.16% -1.40%
==========================================
Files 10 10
Lines 717 717
Branches 118 118
==========================================
- Hits 678 668 -10
- Misses 25 29 +4
- Partials 14 20 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Fix: Switching pagesize on a chunk page did not reset the current page.
Type of change