chore: remove dead code, unused imports, and fix CHANGELOG dates - #405
Conversation
- Remove dead `navigateOnce` function from smartRow.ts (superseded by navigateUntilReached) - Remove unused imports: TYPE_CONTEXT, ImportedSortingStrategies, ImportedPaginationStrategies, ImportedDedupeStrategies (useTable.ts), waitForCondition (pagination.ts), Page (resolution.ts) - Replace console.warn with logDebug in headers.ts and glide/headers.ts - Remove commented-out console.log in fill.ts - Fix CHANGELOG placeholder dates (2024-12-XX → 2025-12-29) for v3.0.0 and v3.1.0 - Remove broken MIGRATION_v4.md link from CHANGELOG (file never existed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🤖 Bot HQ🔗 Issue Link🔗 Closes #401 🔍 AI Review
📊 This PR: $0.1009 · Repo today: $0.00 / $1.00 · Month: $1.43 / $10.00 Review History (2 rounds)
This comment is managed by the bot — do not edit directly. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
AI ReviewPR #405: Dead code removal, unused imports cleanup, console calls replaced with logDebug, and CHANGELOG date fixes. Review found 1 issue: a removed function that may break backward compatibility in certain navigation paths. 📋 1 issue — expand to copy prompt[1] Removal of navigateOnce breaks alternative nav path — src/smartRow.ts:181The |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@src/presets/glide/headers.ts`:
- Line 54: Update HeaderStrategies.scrollRight so the no-scroller fallback
returns the visible headers before reaching the cleanup scrollerHandle.evaluate
call; alternatively, guard that cleanup against a null handle while preserving
the existing fallback result.
🪄 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 UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4714bed2-2b31-4a93-a80a-5ae34852cc7e
📒 Files selected for processing (8)
CHANGELOG.mdsrc/presets/glide/headers.tssrc/smartRow.tssrc/strategies/fill.tssrc/strategies/headers.tssrc/strategies/pagination.tssrc/strategies/resolution.tssrc/useTable.ts
💤 Files with no reviewable changes (3)
- src/strategies/pagination.ts
- src/useTable.ts
- src/smartRow.ts
When no scroller element is found, the scroll-reset call after the if/else block would crash on el!.scrollLeft. Wrap it with isScrollerFound. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
AI Review — Round 2PR #405 successfully removes dead code, unused imports, and fixes CHANGELOG dates. All changes are low-risk removals and diagnostic improvements with TypeScript verification passing.
|
|
Closes #401
Summary
navigateOncefunction fromsmartRow.ts(superseded bynavigateUntilReached)useTable.ts,pagination.ts, andresolution.tsconsole.warncalls withlogDebuginheaders.tsandglide/headers.tsconsole.loginfill.ts2024-12-XX→2025-12-29) for v3.0.0 and v3.1.0MIGRATION_v4.mdlink from CHANGELOG (file never existed)Test plan
pnpm exec tsc --noEmit— passespnpm run test:unit— 313/313 passpnpm run build— passes (via pre-commit hook)🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation
revalidate()documentation.