Skip to content

fix(therapist): Remove unused imports across therapist app#201

Open
Muneerali199 wants to merge 1 commit intoAOSSIE-Org:mainfrom
Muneerali199:fix/therapist-unused-imports
Open

fix(therapist): Remove unused imports across therapist app#201
Muneerali199 wants to merge 1 commit intoAOSSIE-Org:mainfrom
Muneerali199:fix/therapist-unused-imports

Conversation

@Muneerali199
Copy link
Copy Markdown

Summary

Fixes #196

Removes 14 unused_import warnings and 1 unnecessary_import warning flagged by flutter analyze in the therapist/ app.

Changes

File Action
lib/core/repository/therapist/therapist_repository.dart Removed unused profession_model.dart import
lib/presentation/auth/auth_screen.dart Removed unused personal_details_screen.dart and home_screen.dart imports
lib/presentation/consultation/consultation_request_detail_screen.dart Removed unused provider.dart, consultation_request_entity.dart, and consultation_provider.dart imports (these were only referenced in commented-out code)
lib/presentation/home/widgets/patient_card.dart Removed unused therapy_goals_screen.dart import
lib/presentation/therapy_goals/therapy_home_screen.dart Removed unused provider.dart, supabase_therapy_repository.dart, therapy_repository.dart, and daily_activities_provider.dart imports
lib/provider/consultation_provider.dart Removed unused consultation_request_entity.dart import
lib/provider/therapist_provider.dart Removed unused therapist_personal_info_entity.dart import
lib/repository/supabase_therapy_repository.dart Removed unused dart:convert, flutter/foundation.dart, daily_activity_model.dart, daily_activity_response_model.dart, and redundant therapy_type_entity.dart (already re-exported by therapy_entities.dart) imports

Before

flutter analyze therapist/
# 114 issues — including 14 unused_import warnings

After

flutter analyze therapist/
# 96 issues — all unused_import and unnecessary_import warnings resolved

Checklist

  • All removed imports verified as genuinely unused (no references in the file body)
  • flutter analyze run after changes — no new warnings introduced
  • No logic changes — import-only cleanup

Resolves 14 unused_import warnings and 1 unnecessary_import warning
reported by flutter analyze. Affected files: therapist_repository.dart,
auth_screen.dart, consultation_request_detail_screen.dart,
patient_card.dart, therapy_home_screen.dart, consultation_provider.dart,
therapist_provider.dart, supabase_therapy_repository.dart.

Closes AOSSIE-Org#196
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 13, 2026

Warning

Rate limit exceeded

@Muneerali199 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 6 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c2524308-8e17-4dfa-9938-f5aa568c20a9

📥 Commits

Reviewing files that changed from the base of the PR and between 051a4f3 and 3d6d9f0.

📒 Files selected for processing (8)
  • therapist/lib/core/repository/therapist/therapist_repository.dart
  • therapist/lib/presentation/auth/auth_screen.dart
  • therapist/lib/presentation/consultation/consultation_request_detail_screen.dart
  • therapist/lib/presentation/home/widgets/patient_card.dart
  • therapist/lib/presentation/therapy_goals/therapy_home_screen.dart
  • therapist/lib/provider/consultation_provider.dart
  • therapist/lib/provider/therapist_provider.dart
  • therapist/lib/repository/supabase_therapy_repository.dart
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

fix(therapist): Remove unused and duplicate imports across therapist app

1 participant