Skip to content

feat: Mobile Apps (iOS/Android) via PWA (Issue #165) - #334

Open
rohitkumarnaidu wants to merge 2 commits into
vallabhatech:mainfrom
rohitkumarnaidu:feat/issue-165
Open

feat: Mobile Apps (iOS/Android) via PWA (Issue #165)#334
rohitkumarnaidu wants to merge 2 commits into
vallabhatech:mainfrom
rohitkumarnaidu:feat/issue-165

Conversation

@rohitkumarnaidu

@rohitkumarnaidu rohitkumarnaidu commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

This PR converts the CareSync web application into a fully installable Progressive Web App (PWA) to satisfy the Mobile Apps (iOS/Android) requirement. It adds a \manifest.json\ with proper icons and theme colors, and implements an offline caching service worker (\sw.js) to cache core assets. Users can now use the 'Add to Home Screen' feature on iOS/Android for a native app-like experience.

Resolves #165

Summary by CodeRabbit

  • New Features

    • Added progressive web app support, including an installable app manifest, app icons, and theme colors.
    • Added offline caching for key app pages and the web app manifest.
  • Bug Fixes

    • Improved cache management by removing outdated cached resources during activation.

Copilot AI review requested due to automatic review settings July 27, 2026 13:15
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

@rohitkumarnaidu is attempting to deploy a commit to the vallabhatech's projects Team on Vercel.

A member of the Team first needs to authorize it.

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 Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 46 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: 63294999-5e5d-494c-b1e7-d4bd98c89335

📥 Commits

Reviewing files that changed from the base of the PR and between 8947fe6 and 64eb65f.

📒 Files selected for processing (1)
  • public/sw.js
📝 Walkthrough

Walkthrough

Adds CareSync PWA metadata and defines a simplified service worker that pre-caches core routes, uses cache-first fetch handling, and removes outdated caches during activation.

Changes

PWA enablement

Layer / File(s) Summary
PWA metadata
public/index.html, public/manifest.json
Adds manifest, Apple touch icon, theme-color, app identity, icons, standalone display mode, and default colors.
Service worker caching
public/sw.js
Pre-caches core routes, applies cache-first fetch handling, and retains only the current cache during activation.

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

Possibly related issues

  • CareSync issue 220 — Covers the PWA manifest and offline caching behavior implemented here.

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR adds PWA install/offline support, but the issue asks for native iOS and Android apps with full platform integration. Implement actual native iOS and Android apps, or update the issue scope if a PWA is the intended solution.
✅ 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 is concise and aligns with the PR’s main PWA/mobile-app work.
Out of Scope Changes check ✅ Passed The changes stay focused on enabling PWA installability and offline support for the requested mobile experience.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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

🤖 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 `@public/sw.js`:
- Around line 2-5: Update the service worker’s urlsToCache and fetch handling so
the built application’s generated JS/CSS bundles are precached or same-origin
static assets are cached after network fetches. Ensure the application shell,
including its required compiled assets, remains available offline rather than
caching only index.html and metadata.
- Around line 1-16: Add a notificationclick event listener in public/sw.js
alongside the existing install handler; close the clicked notification, then
focus an existing client window when available or open the app URL otherwise,
ensuring showNotification reminders remain actionable after the original tab
changes.
🪄 Autofix (Beta)

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: 2e18d101-3c65-4015-8faa-5aad6277aa90

📥 Commits

Reviewing files that changed from the base of the PR and between badd953 and 8947fe6.

📒 Files selected for processing (3)
  • public/index.html
  • public/manifest.json
  • public/sw.js

Comment thread public/sw.js
Comment thread public/sw.js
Copilot AI review requested due to automatic review settings July 27, 2026 13:29

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.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request frontend ui/ux labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request frontend ui/ux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile Apps (iOS/Android)

2 participants