Skip to content

Remove Code AI and PR Review options - #5

Merged
SayanthRock merged 1 commit into
mainfrom
remove-code-ai-and-pr-review-9639938609554109716
Aug 8, 2026
Merged

Remove Code AI and PR Review options#5
SayanthRock merged 1 commit into
mainfrom
remove-code-ai-and-pr-review-9639938609554109716

Conversation

@SayanthRock

@SayanthRock SayanthRock commented Aug 8, 2026

Copy link
Copy Markdown
Owner

User description

This PR addresses the user's request to completely remove the "Code AI" and "PR Review" features from the application.

  • Updated Screen.kt and HomeScaffold.kt to only show the ImageStudio and About screens.
  • Cleaned up MainActivity.kt and AppViewModelFactory.kt to eliminate instances of AppViewModel and ReviewViewModel as well as references to API services for GitHub and Pollinations.
  • Deleted ReviewScreen.kt, CodeResultScreen.kt, AppViewModel.kt, ReviewViewModel.kt, ReviewViewModelTest.kt, AppViewModelFactoryTest.kt, and MainDispatcherRule.kt.
  • Removed data/github and data/ai directories as they were strictly associated with the deprecated functionalities.

Pre-commit testing confirmed that the application successfully builds and tests pass.


PR created automatically by Jules for task 9639938609554109716 started by @SayanthRock


CodeAnt-AI Description

Remove Code AI and PR Review features from the app

What Changed

  • The app now offers only Image Studio and About in the bottom navigation
  • Image Studio opens as the default screen
  • GitHub file analysis, AI code summaries, and pull request reviews are no longer available
  • Removed the related setup screens, API integrations, credentials handling, and tests

Impact

✅ Simpler app navigation
✅ No GitHub or AI credentials required
✅ Image Studio opens immediately

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Removed Features
    • Removed code analysis and pull request review screens and functionality.
    • Removed GitHub repository browsing and pull request retrieval.
    • Removed code-analysis result display, copying, and file-saving options.
  • Navigation
    • Image Studio is now the primary destination.
    • Navigation now includes only Image Studio and About.
  • Maintenance
    • Simplified app setup by removing unused analysis and review services.

- Removes PR Review and Code AI screens and ViewModels.
- Cleans up AppViewModelFactory and MainActivity from dependencies.
- Deletes unused files, test files, and data directories.
- Removes specific API keys requirements for GitHub and Pollinations as they were tied to removed features.

Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 8, 2026 05:58
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@devloai

devloai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔
Please upgrade your plan or buy additional credits from the subscription page.

@ai-coding-guardrails

Copy link
Copy Markdown

You've hit your review limit for the week, but don't worry you'll get some more next week!

Contact us at hello@zenable.io if you want this rate limit to go away

@codeant-ai

codeant-ai Bot commented Aug 8, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 47016d4 Aug 08, 2026 · 05:59 06:01

@codeant-ai

codeant-ai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@performance-testing-bot

Copy link
Copy Markdown

Unable to locate .performanceTestingBot config file

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The app removes code analysis and pull request review functionality. It deletes related AI, GitHub, and Pollinations services, models, ViewModels, screens, navigation entries, and tests. Image Studio and About remain available, with Image Studio as the start destination.

Changes

AI review flow removal

Layer / File(s) Summary
Remove review integrations
app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt, app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModelFactory.kt, app/src/main/java/com/sayanthrock/freeairock/data/ai/*, app/src/main/java/com/sayanthrock/freeairock/data/github/*, app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt, app/src/main/java/com/sayanthrock/freeairock/ui/ReviewViewModel.kt
The app no longer configures GitHub or Pollinations clients. The factory retains only secure storage and ImageViewModel creation. Review-related services, models, and ViewModels are deleted.
Simplify navigation and UI
app/src/main/java/com/sayanthrock/freeairock/ui/HomeScaffold.kt, app/src/main/java/com/sayanthrock/freeairock/ui/CodeResultScreen.kt, app/src/main/java/com/sayanthrock/freeairock/ui/ReviewScreen.kt, app/src/main/java/com/sayanthrock/freeairock/ui/navigation/Screen.kt
HomeScaffold removes code and review content, keeps Image Studio and About, and starts at Image Studio. Code analysis and pull request review screens are deleted.
Remove obsolete test utilities
app/src/test/java/com/sayanthrock/freeairock/MainDispatcherRule.kt, app/src/test/java/com/sayanthrock/freeairock/ui/AppViewModelFactoryTest.kt, app/src/test/java/com/sayanthrock/freeairock/ui/ReviewViewModelTest.kt
Tests and coroutine utilities for the removed ViewModels and factory integrations are deleted.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the removal of the Code AI and PR Review features.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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 remove-code-ai-and-pr-review-9639938609554109716

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.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Aug 8, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt (1)

33-35: 🩺 Stability & Availability | 🔵 Trivial | 💤 Low value

Remove the unused ViewModel provisioning.

ImageViewModel requires SecureStorageManager, while ImageStudioScreen only takes Modifier and does not receive or resolve ImageViewModel. imageViewModel and the provider wiring only add dead code here, so delete them unless ImageStudioScreen is updated to use it.

🤖 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 `@app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt` around lines 33
- 35, Remove the unused imageViewModel lazy property and its ViewModel provider
wiring from MainActivity, since ImageStudioScreen does not consume
ImageViewModel. Do not alter ImageStudioScreen unless it is intentionally being
updated to use the ViewModel.
🤖 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 `@app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModelFactory.kt`:
- Around line 7-9: Remove the unused GitHub token storage API from
SecureStorageManager, including saveGitHubToken, getGitHubToken, and
KEY_GITHUB_TOKEN, and ensure any existing github_token entries are cleared from
both encrypted and legacy preferences during upgrade. Update AppViewModelFactory
and related callers only as needed to compile without the removed API.

---

Nitpick comments:
In `@app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt`:
- Around line 33-35: Remove the unused imageViewModel lazy property and its
ViewModel provider wiring from MainActivity, since ImageStudioScreen does not
consume ImageViewModel. Do not alter ImageStudioScreen unless it is
intentionally being updated to use the ViewModel.
🪄 Autofix

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 26a5ae31-b96e-4853-9c6e-c7e20c6a6639

📥 Commits

Reviewing files that changed from the base of the PR and between 8993962 and 47016d4.

📒 Files selected for processing (16)
  • app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/AiCodeAnalyzer.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/CodeAnalysisState.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/PollinationsApiService.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/github/GitHubApiService.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/github/GitHubModels.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModelFactory.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/CodeResultScreen.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/HomeScaffold.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/ReviewScreen.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/ReviewViewModel.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/navigation/Screen.kt
  • app/src/test/java/com/sayanthrock/freeairock/MainDispatcherRule.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/AppViewModelFactoryTest.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/ReviewViewModelTest.kt
💤 Files with no reviewable changes (13)
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/PollinationsApiService.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/ReviewViewModel.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/CodeAnalysisState.kt
  • app/src/test/java/com/sayanthrock/freeairock/MainDispatcherRule.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/ReviewScreen.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/AppViewModelFactoryTest.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/github/GitHubApiService.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/navigation/Screen.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/AiCodeAnalyzer.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/github/GitHubModels.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/CodeResultScreen.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/ReviewViewModelTest.kt

Comment thread app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt
@SayanthRock
SayanthRock merged commit 09bab2d into main Aug 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants