Skip to content

refactor(web): remove 3 unused utility files#718

Open
kamilwronka wants to merge 1 commit intodevelopfrom
refactor/small-cleanup-20260409
Open

refactor(web): remove 3 unused utility files#718
kamilwronka wants to merge 1 commit intodevelopfrom
refactor/small-cleanup-20260409

Conversation

@kamilwronka
Copy link
Copy Markdown
Contributor

@kamilwronka kamilwronka commented Apr 9, 2026

Summary

  • Removed apps/web/src/hooks/ui/use-disclosure.tsx — custom hook never imported anywhere in the codebase
  • Removed apps/web/src/hooks/ui/use-lg.tsx — breakpoint hook never imported anywhere
  • Removed apps/web/src/config/pagination.ts — pagination constants never imported anywhere

All confirmed unused by both knip analysis and manual grep verification.

Test plan

  • oxlint passes with 0 warnings and 0 errors
  • All pre-commit checks pass (lint, format, tests)
  • No imports reference these files anywhere in the codebase

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor
    • Removed pagination configuration constants
    • Removed utility hooks for UI state management and responsive design handling

Remove dead code confirmed by knip and manual grep verification:
- use-disclosure.tsx: custom hook never imported anywhere
- use-lg.tsx: breakpoint hook never imported anywhere
- pagination.ts: pagination constants never imported anywhere

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: de181b2b-1754-4550-ba6a-7627c9ca84ed

📥 Commits

Reviewing files that changed from the base of the PR and between b32c122 and ebde44e.

📒 Files selected for processing (3)
  • apps/web/src/config/pagination.ts
  • apps/web/src/hooks/ui/use-disclosure.tsx
  • apps/web/src/hooks/ui/use-lg.tsx
💤 Files with no reviewable changes (3)
  • apps/web/src/hooks/ui/use-disclosure.tsx
  • apps/web/src/hooks/ui/use-lg.tsx
  • apps/web/src/config/pagination.ts

📝 Walkthrough

Walkthrough

Three files are deleted: pagination configuration constants and two UI hooks (useDisclosure and useLg). This removes 20 lines of code across the config and hooks directories, eliminating named exports that managed state and responsive design patterns.

Changes

Cohort / File(s) Summary
Configuration Cleanup
apps/web/src/config/pagination.ts
Removed pagination constants: DEFAULT_PAGE_SIZE (20), DEFAULT_PAGE_SIZE_OPTIONS ([10, 20, 50, 100]), and DEFAULT_PAGE (1).
UI Hooks Removal
apps/web/src/hooks/ui/use-disclosure.tsx, apps/web/src/hooks/ui/use-lg.tsx
Removed useDisclosure hook (state management for open/close/toggle) and useLg hook (responsive breakpoint utility for 1024px threshold).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Hop, skip, and clean!
Old hooks and configs fade away,
Deleted files lighten the way,
Code compost feeds tomorrow's growth—
Simpler paths for coder and cloth! 🍀

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing three unused utility files from the web app.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/small-cleanup-20260409

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant