feat: Mobile Apps (iOS/Android) via PWA (Issue #165) - #334
feat: Mobile Apps (iOS/Android) via PWA (Issue #165)#334rohitkumarnaidu wants to merge 2 commits into
Conversation
|
@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. |
|
Warning Review limit reached
Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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. 📝 WalkthroughWalkthroughAdds 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. ChangesPWA enablement
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (3)
public/index.htmlpublic/manifest.jsonpublic/sw.js
|



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
Bug Fixes