Skip to content

Fix app name rebranding and add Redirection Core - #39

Merged
SayanthRock merged 1 commit into
mainfrom
jules-rebrand-revert-and-redirect-6082840207160534487
Aug 9, 2026
Merged

Fix app name rebranding and add Redirection Core#39
SayanthRock merged 1 commit into
mainfrom
jules-rebrand-revert-and-redirect-6082840207160534487

Conversation

@SayanthRock

@SayanthRock SayanthRock commented Aug 9, 2026

Copy link
Copy Markdown
Owner

User description

This pull request reverts the erroneous rebranding of the application from "Rock QR" back to its correct name, "Rock QR Code", throughout the entire ecosystem (Android app source code, HTML/web files, strings, tests, and CI/CD pipelines). This resolves the issue where the app incorrectly showed "Chamo QR".

It also verifies that the Github Pages URLs referenced in the project were correctly reverted to https://sayanthrock.github.io/Rock-QR-Code/ replacing the faulty sayanthrock.github.io/Chamo-QR which led to a 404 page.

Finally, it creates a missing redirect/index.html file to act as the "Redirection Core" on the companion website. This allows the backend API to dynamically redirect links (like the shared links or forged items).


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


CodeAnt-AI Description

Restore Rock QR Code branding and enable dynamic link redirection

What Changed

  • Replaces incorrect “Chamo QR” branding with “ROCK QR CODE” across the Android app, web console, shared app links, downloads, and project documentation
  • Updates deep links and generated QR URLs to use the Rock QR Code website and repository
  • Adds a web redirect page that resolves dynamic QR links through the backend and records basic visitor details
  • Shows clear errors for missing, expired, invalid, or offline-only redirect codes
  • Release and debug downloads now use Rock QR filenames without duplicate Chamo-branded copies

Impact

✅ Correct Rock QR Code branding across app and website
✅ Working shared links and Android deep-link imports
✅ Clearer dynamic-link failures

💡 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

  • New Features
    • Added a short-link redirect experience with loading, error handling, and destination forwarding.
    • Added visitor platform detection and persistent visitor identification for link resolution.
  • Updates
    • Rebranded the Android app and web console from Chamo QR to ROCK QR CODE.
    • Updated sharing links, deep links, website references, and application branding.
    • Release downloads now provide only the Rock QR APK.
  • Bug Fixes
    • Improved handling of missing, invalid, or offline-only short codes.

Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
@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.

Copilot AI lite review requested due to automatic review settings August 9, 2026 17:56
@devloai

devloai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

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.

@performance-testing-bot

Copy link
Copy Markdown

Unable to locate .performanceTestingBot config file

@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 9, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR f54cf87 Aug 09, 2026 · 17:56 17:58

@codeant-ai

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

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 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The change rebrands the Android and web applications as Rock QR, updates deep-link and sharing paths, publishes only Rock QR APK assets, and adds a redirect page that resolves valid short codes through backend metadata.

Changes

Rock QR application and routing

Layer / File(s) Summary
Android identity and route updates
app/build.gradle.kts, app/src/main/..., app/src/main/res/..., app/src/test/...
The application ID, app labels, deep links, sharing URLs, fallback URLs, repository links, and test expectation now use Rock QR identifiers.
Short-code redirect flow
redirect/index.html
The new page validates short codes, sends visitor metadata to the backend, redirects valid responses, and displays error states.
Web companion branding and links
README.md, index.html
The README and web suite now use Rock QR branding and Rock QR deployment, repository, sharing, and APK links.
APK packaging and release assets
app/build.gradle.kts, .github/workflows/build.yml, .github/workflows/release.yml
Build and release workflows now create and publish only Rock QR APK filenames.

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

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant RedirectPage
  participant Backend
  Browser->>RedirectPage: Open URL with short code
  RedirectPage->>RedirectPage: Validate code and collect visitor metadata
  RedirectPage->>Backend: Resolve code
  Backend-->>RedirectPage: Return destination URL or error
  RedirectPage-->>Browser: Redirect or display error
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes both major changes: app rebranding and the addition of the Redirection Core.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jules-rebrand-revert-and-redirect-6082840207160534487

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:L This PR changes 100-499 lines, ignoring generated files label Aug 9, 2026
Comment thread app/src/main/AndroidManifest.xml
Comment thread app/src/main/java/com/example/viewmodel/QRViewModel.kt
Comment thread index.html
Comment thread app/build.gradle.kts
Comment thread app/src/main/java/com/example/MainActivity.kt
Comment thread app/src/main/java/com/example/ui/screens/GenerateScreen.kt

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.github/workflows/build.yml (2)

290-291: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Remove the stale Dual-branded wording.

This release note lists only Rock QR.apk, and the Chamo QR.apk artifact was removed. Describe this as a single Rock QR artifact.

🤖 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 @.github/workflows/build.yml around lines 290 - 291, Update the release note
entry for `Rock QR.apk` to remove the stale “Dual-branded” wording and describe
it as a single Rock QR artifact, reflecting that `Chamo QR.apk` is no longer
produced.

301-301: 🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

Do not publish the debug APK as a GitHub release asset.

This workflow runs assembleDebug at Line 171. Lines 194-196 identify the APK as debug-signed. Line 301 attaches that APK to a tagged GitHub release. A debug APK can be distributed as a production release and can prevent updates over a production-signed installation. Use .github/workflows/release.yml as the tag release publisher, or build and sign a release APK before uploading it here.

🤖 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 @.github/workflows/build.yml at line 301, Remove the debug APK asset from the
release-upload configuration in the workflow, specifically the artifact entry
for “Rock QR.apk” under the assembleDebug output. Use the existing release
publisher workflow instead, or change this workflow to build and upload a
properly production-signed release APK; do not attach any debug-signed APK to
tagged GitHub releases.
🤖 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/example/MainActivity.kt`:
- Line 384: Update the user-visible branding to consistently use “Rock QR Code”:
in MainActivity.kt lines 384-384, change the update toast text; in
GenerateScreen.kt lines 265-265, update both the “Quartz QR” subject and message
at lines 269-270. No other behavior changes are needed.

In `@app/src/main/java/com/example/ui/screens/GenerateScreen.kt`:
- Line 265: Update the share-flow labels near the webLink construction to
replace both “Import Quartz QR Code” and “Check out my Quartz QR code” with
“Rock QR Code”, while preserving the existing URL and content handling.

In `@app/src/main/java/com/example/viewmodel/QRViewModel.kt`:
- Line 406: Update the QR handling branch around decodedQuery and
uri.lastPathSegment to recognize /Rock-QR-Code/redirect URLs before importing
decodedQuery as QR content. Exclude redirect routes from QR import, or resolve
and open their code parameter through the existing redirect handling path,
ensuring the literal “redirect” value is never imported.
- Line 228: Update the fallback construction around finalPayload and
generatedShortCode so locally generated codes remain resolvable when backend
creation fails. Persist the original payload alongside the local code and make
redirect/index.html resolve that stored payload directly, or generate a fallback
URL that carries the payload instead of sending an unsupported local_ code.

In `@redirect/index.html`:
- Around line 37-41: Update the visitorData construction around
generateVisitorId() so localStorage failures cannot prevent the redirect POST
request from starting. Safely catch storage access errors and omit visitorId
when storage is unavailable, while preserving the existing os and browser
fields.
- Around line 43-66: Update the resolver request around fetch(targetApi) to use
an AbortController and a bounded timeout, passing its signal into fetch and
clearing the timer when the request settles. In the catch handler, detect
AbortError and call showError with a clear timeout message while preserving the
existing handling for other errors.
- Around line 43-49: Update the resolver deployment backing the fetch in
redirect/index.html so /api/resolve/:code is available and responds to OPTIONS
preflight requests. Configure CORS to allow https://sayanthrock.github.io, POST
methods, and the Content-Type header, while preserving the existing JSON POST
handling.

---

Outside diff comments:
In @.github/workflows/build.yml:
- Around line 290-291: Update the release note entry for `Rock QR.apk` to remove
the stale “Dual-branded” wording and describe it as a single Rock QR artifact,
reflecting that `Chamo QR.apk` is no longer produced.
- Line 301: Remove the debug APK asset from the release-upload configuration in
the workflow, specifically the artifact entry for “Rock QR.apk” under the
assembleDebug output. Use the existing release publisher workflow instead, or
change this workflow to build and upload a properly production-signed release
APK; do not attach any debug-signed APK to tagged GitHub releases.
🪄 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: 8443826f-1990-4c35-b6f6-150720784c48

📥 Commits

Reviewing files that changed from the base of the PR and between 2db244c and f54cf87.

📒 Files selected for processing (15)
  • .github/workflows/build.yml
  • .github/workflows/release.yml
  • README.md
  • app/build.gradle.kts
  • app/src/main/AndroidManifest.xml
  • app/src/main/java/com/example/MainActivity.kt
  • app/src/main/java/com/example/data/api/QrBackendService.kt
  • app/src/main/java/com/example/ui/screens/GenerateScreen.kt
  • app/src/main/java/com/example/ui/screens/ScanScreen.kt
  • app/src/main/java/com/example/ui/theme/Color.kt
  • app/src/main/java/com/example/viewmodel/QRViewModel.kt
  • app/src/main/res/values/strings.xml
  • app/src/test/java/com/example/ExampleRobolectricTest.kt
  • index.html
  • redirect/index.html

Comment thread app/src/main/java/com/example/MainActivity.kt
Comment thread app/src/main/java/com/example/ui/screens/GenerateScreen.kt
Comment thread app/src/main/java/com/example/viewmodel/QRViewModel.kt
Comment thread app/src/main/java/com/example/viewmodel/QRViewModel.kt
Comment thread redirect/index.html
Comment thread redirect/index.html
Comment thread redirect/index.html
@SayanthRock
SayanthRock merged commit 023d9e6 into main Aug 9, 2026
6 checks passed
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