Skip to content

Feature/free ai rock UI rewrite 1488402945663055672 - #20

Merged
SayanthRock merged 7 commits into
mainfrom
feature/free-ai-rock-ui-rewrite-1488402945663055672
Aug 11, 2026
Merged

Feature/free ai rock UI rewrite 1488402945663055672#20
SayanthRock merged 7 commits into
mainfrom
feature/free-ai-rock-ui-rewrite-1488402945663055672

Conversation

@SayanthRock

@SayanthRock SayanthRock commented Aug 11, 2026

Copy link
Copy Markdown
Owner

CodeAnt-AI Description

Replace the legacy home screen with a chat-focused FREE AI ROCK experience

What Changed

  • The app now opens to a chat screen with message history, a message composer, send action, and assistant responses rendered with Markdown
  • User and assistant messages are displayed in separate styled chat bubbles, with a temporary generating state while a response is produced
  • Conversations and messages now have a local database structure for storing chat history
  • The previous code analysis, review, image studio, and about navigation are no longer shown from the main screen
  • GitHub authorization now uses the saved token correctly when making requests
  • Added settings content for appearance, AI provider, and chat data options

Impact

✅ Faster access to AI chat
✅ Clearer user and assistant messages
✅ Chat history ready for local storage

💡 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.

google-labs-jules Bot and others added 7 commits August 11, 2026 07:15
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 08:37
@devloai

devloai Bot commented Aug 11, 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.

@codeant-ai

codeant-ai Bot commented Aug 11, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 49980d2 Aug 11, 2026 · 08:37 08:40

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.

@codeant-ai

codeant-ai Bot commented Aug 11, 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

@SayanthRock
SayanthRock merged commit d767332 into main Aug 11, 2026
5 of 7 checks passed
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@SayanthRock, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 46 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0feff8d2-c932-42fd-a0d1-4af7536c3979

📥 Commits

Reviewing files that changed from the base of the PR and between ffc2956 and 49980d2.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (22)
  • app/build.gradle.kts
  • app/src/main/AndroidManifest.xml
  • app/src/main/java/com/sayanthrock/freeairock/FreeAiRockApplication.kt
  • app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/ai/AiProvider.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/chat/.keep
  • app/src/main/java/com/sayanthrock/freeairock/data/chat/ChatDao.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/chat/ChatDatabase.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/chat/ChatMessage.kt
  • app/src/main/java/com/sayanthrock/freeairock/data/chat/Conversation.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/chat/.keep
  • app/src/main/java/com/sayanthrock/freeairock/ui/chat/ChatBubble.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/chat/ChatScreen.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/chat/GlassCard.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/settings/.keep
  • app/src/main/java/com/sayanthrock/freeairock/ui/settings/SettingsScreen.kt
  • app/src/main/java/com/sayanthrock/freeairock/ui/theme/Theme.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/AppViewModelFactoryTest.kt
  • app/src/test/java/com/sayanthrock/freeairock/ui/ReviewViewModelTest.kt
  • package.json
  • settings.gradle.kts

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.

@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 added the size:L This PR changes 100-499 lines, ignoring generated files label Aug 11, 2026
@Before
fun setup() {
secureStorage = SecureStorageManager()
secureStorage = mockk(relaxed = true)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The relaxed SecureStorageManager mock does not configure any missing-key behavior, and ReviewViewModel does not read this dependency at all. Because githubApiService is a non-relaxed mock with no stub for getPullRequestDiff, the test reaches Error due to an unstubbed GitHub call rather than because a Gemini key is missing, so it can pass while testing the wrong behavior. Stub the actual missing-key path or rename/remove this test until the ViewModel implements that contract. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ Missing-key regression coverage is falsely reported as passing.
- ⚠️ Future ViewModel changes can break key handling undetected.
- ⚠️ Test failures are attributed to unstubbed GitHub calls.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/test/java/com/sayanthrock/freeairock/ui/ReviewViewModelTest.kt
**Line:** 40:40
**Comment:**
	*Incomplete Implementation: The relaxed `SecureStorageManager` mock does not configure any missing-key behavior, and `ReviewViewModel` does not read this dependency at all. Because `githubApiService` is a non-relaxed mock with no stub for `getPullRequestDiff`, the test reaches `Error` due to an unstubbed GitHub call rather than because a Gemini key is missing, so it can pass while testing the wrong behavior. Stub the actual missing-key path or rename/remove this test until the ViewModel implements that contract.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

text = "Error: ${uiState.message}",
color = MaterialTheme.colorScheme.error
)
ChatScreen(viewModel = appViewModel)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The activity now renders only ChatScreen, so the existing PR review flow is no longer reachable from the application. Restore navigation or expose ReviewScreen alongside the new chat UI so users can still submit and analyze pull requests. [incomplete implementation]

Severity Level: Critical 🚨
- ❌ Launcher activity hides the pull-request review workflow.
- ❌ Users cannot submit PR numbers for analysis.
- ⚠️ Existing `HomeScaffold` navigation is unreachable.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/main/java/com/sayanthrock/freeairock/MainActivity.kt
**Line:** 87:87
**Comment:**
	*Incomplete Implementation: The activity now renders only `ChatScreen`, so the existing PR review flow is no longer reachable from the application. Restore navigation or expose `ReviewScreen` alongside the new chat UI so users can still submit and analyze pull requests.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +27 to +28
private val _chatMessages = MutableStateFlow<List<ChatMessage>>(emptyList())
val chatMessages: StateFlow<List<ChatMessage>> = _chatMessages.asStateFlow()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: Chat history is held only in an in-memory StateFlow, while the new Room database and DAO are never used by the view model. All messages disappear when the activity or process is recreated, so the added chat persistence layer provides no persistence. Inject the DAO and insert/load messages through it. [state/lifecycle]

Severity Level: Major ⚠️
- ❌ Process recreation clears visible chat history.
- ⚠️ Chat messages are never written to Room.
- ⚠️ Added persistence database remains unused.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt
**Line:** 27:28
**Comment:**
	*State Lifecycle: Chat history is held only in an in-memory `StateFlow`, while the new Room database and DAO are never used by the view model. All messages disappear when the activity or process is recreated, so the added chat persistence layer provides no persistence. Inject the DAO and insert/load messages through it.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +38 to +40
// Temporary fake response for demo purposes
val response = "This is a response from FREE AI ROCK for: $content"
_chatMessages.value = _chatMessages.value.dropLast(1) + aiMsg.copy(content = response)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The chat operation never calls either pollinationsApiService or aiProvider; it immediately constructs a fabricated response locally. Every message therefore appears successful without contacting the configured AI backend. Invoke the selected provider and update the placeholder with its returned result, propagating failures as errors. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ Chat never contacts the configured AI backend.
- ❌ Users receive fabricated responses for every message.
- ⚠️ Network and provider failures are hidden.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/main/java/com/sayanthrock/freeairock/ui/AppViewModel.kt
**Line:** 38:40
**Comment:**
	*Incomplete Implementation: The chat operation never calls either `pollinationsApiService` or `aiProvider`; it immediately constructs a fabricated response locally. Every message therefore appears successful without contacting the configured AI backend. Invoke the selected provider and update the placeholder with its returned result, propagating failures as errors.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

@Composable
fun ChatScreen(viewModel: AppViewModel, modifier: Modifier = Modifier) {
var inputText by remember { mutableStateOf("") }
val messages by viewModel.chatMessages.collectAsState()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The screen reads messages only from the ViewModel's in-memory StateFlow; it never loads or observes the Room-backed ChatDao. Consequently, all displayed chat history is lost when the activity or process is recreated despite the new persistent message entities and DAO. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ Chat history disappears after process recreation.
- ❌ Room-backed message persistence is unused.
- ⚠️ Users cannot restore previous conversations.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/main/java/com/sayanthrock/freeairock/ui/chat/ChatScreen.kt
**Line:** 31:31
**Comment:**
	*Incomplete Implementation: The screen reads messages only from the ViewModel's in-memory `StateFlow`; it never loads or observes the Room-backed `ChatDao`. Consequently, all displayed chat history is lost when the activity or process is recreated despite the new persistent message entities and DAO.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

import androidx.compose.ui.unit.dp

@Composable
fun SettingsScreen(modifier: Modifier = Modifier) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: This new settings screen is not referenced by any navigation or activity code, so users cannot reach it. The existing settings route still resolves to the older AboutScreen, making this entire implementation dead UI until it is wired into the navigation graph. [api mismatch]

Severity Level: Major ⚠️
- ❌ Settings screen is unavailable from the running app.
- ❌ Theme, provider, and data settings cannot be accessed.
- ⚠️ Existing navigation exposes About instead.

Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** app/src/main/java/com/sayanthrock/freeairock/ui/settings/SettingsScreen.kt
**Line:** 19:19
**Comment:**
	*Api Mismatch: This new settings screen is not referenced by any navigation or activity code, so users cannot reach it. The existing settings route still resolves to the older `AboutScreen`, making this entire implementation dead UI until it is wired into the navigation graph.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

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

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants