Skip to content

chore(web): remove unused imports and variables to fix build warnings#935

Merged
brendan-kellam merged 3 commits intomainfrom
michael/fix-build-warnings
Feb 25, 2026
Merged

chore(web): remove unused imports and variables to fix build warnings#935
brendan-kellam merged 3 commits intomainfrom
michael/fix-build-warnings

Conversation

@msukkari
Copy link
Contributor

@msukkari msukkari commented Feb 25, 2026

Summary

  • Removed 6 unused imports/variables across the web package that were causing ESLint no-unused-vars warnings during build

Test plan

  • Verified yarn workspace @sourcebot/web build completes with no lint warnings

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores
    • Fixed 6 unused import and variable build warnings in the web package, improving code quality and build cleanliness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6208955 and b4e4fe0.

📒 Files selected for processing (7)
  • CHANGELOG.md
  • packages/web/src/app/[domain]/components/repositoryCarousel.tsx
  • packages/web/src/app/api/(server)/chat/blocking/route.ts
  • packages/web/src/app/api/(server)/chat/route.ts
  • packages/web/src/app/api/(server)/webhook/route.ts
  • packages/web/src/app/components/authSecurityNotice.tsx
  • packages/web/src/features/chat/components/chatThread/tools/listCommitsToolComponent.tsx
💤 Files with no reviewable changes (3)
  • packages/web/src/app/components/authSecurityNotice.tsx
  • packages/web/src/app/[domain]/components/repositoryCarousel.tsx
  • packages/web/src/app/api/(server)/webhook/route.ts

Walkthrough

The PR removes 6 unused imports and 1 unused parameter across the web package to eliminate build warnings, affecting API routes, components, and a map callback function.

Changes

Cohort / File(s) Summary
Unused Imports - API Routes
packages/web/src/app/api/(server)/chat/blocking/route.ts, packages/web/src/app/api/(server)/chat/route.ts, packages/web/src/app/api/(server)/webhook/route.ts
Removed unused imports: generateAndUpdateChatNameFromMessage, SearchScope, and EndpointDefaults respectively.
Unused Imports - Components
packages/web/src/app/[domain]/components/repositoryCarousel.tsx, packages/web/src/app/components/authSecurityNotice.tsx
Removed unused imports: captureEvent and env respectively.
Parameter Cleanup
packages/web/src/features/chat/components/chatThread/tools/listCommitsToolComponent.tsx
Removed unused index parameter from map callback function.
Documentation
CHANGELOG.md
Added entry documenting the 6 unused import/variable build warnings fixed in web package.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • brendan-kellam
🚥 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 unused imports and variables to fix build warnings across the web package, which aligns with all the file modifications in the changeset.
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 (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch michael/fix-build-warnings

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.

msukkari and others added 2 commits February 24, 2026 16:12
@brendan-kellam brendan-kellam merged commit f9421ed into main Feb 25, 2026
9 checks passed
@brendan-kellam brendan-kellam deleted the michael/fix-build-warnings branch February 25, 2026 03:48
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.

2 participants