diff --git a/pr324_comments.txt b/pr324_comments.txt new file mode 100644 index 0000000..182078e Binary files /dev/null and b/pr324_comments.txt differ diff --git a/pr324_utf8.txt b/pr324_utf8.txt new file mode 100644 index 0000000..8d8efd6 --- /dev/null +++ b/pr324_utf8.txt @@ -0,0 +1,226 @@ +author: vercel +association: none +edited: false +status: none +-- +@rohitkumarnaidu is attempting to deploy a commit to the **vallabhatech's projects** Team on [Vercel](https://vercel.com). + +A member of the Team first needs to [authorize it](https://vercel.com/git/authorize?team=vallabhatech's%20projects&slug=vallabhatechs-projects&teamId=team_XEvLqU3kloqiTS3SEQgSVKnM&type=github&job=%7B%22headInfo%22%3A%7B%22sha%22%3A%2279c23057d3a4b999c00f5195f6e8d293258792ab%22%7D%2C%22id%22%3A%22QmPrkzwRHGPMqfeoBb19DfA5TQFvuTSJuoy858dGZT1bKF%22%2C%22org%22%3A%22vallabhatech%22%2C%22prId%22%3A324%2C%22repo%22%3A%22CareSync%22%7D). + + +-- +author: Copilot (AI) +association: none +edited: false +status: commented +-- +Copilot was unable to review this pull request because the user who requested the review has reached their quota limit. +-- +author: coderabbitai +association: none +edited: true +status: none +-- + + + +[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/vallabhatech/CareSync/pull/324?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) + + + + +
+📝 Walkthrough + +## Walkthrough + +Adds an ambulance booking page with address validation, loading and confirmation states, plus localized navigation and a React Router route at `/ambulance-booking`. + +### Changes + +**Ambulance booking** + +|Layer / File(s)|Summary| +|---|---| +|**Ambulance booking form and status flow**
`src/pages/AmbulanceBooking.jsx`|Adds pickup address and emergency detail fields, validates the address, transitions booking status from idle to loading to confirmed, and renders the corresponding form or dispatch alert.| +|**Navigation and route integration**
`src/i18n/locales/en.json`, `src/App.jsx`|Adds the “Ambulance Booking” navigation label, `/ambulance-booking` navigation target, page import, and route.| + +**Estimated code review effort:** 2 (Simple) | ~10 minutes + +**Suggested reviewers:** `copilot` + +### Sequence Diagram(s) + +```mermaid +sequenceDiagram + participant User + participant ReactRouter + participant AmbulanceBooking + participant BookingTimer + User->>ReactRouter: Navigate to /ambulance-booking + ReactRouter->>AmbulanceBooking: Render booking page + User->>AmbulanceBooking: Submit pickup address and emergency details + AmbulanceBooking->>BookingTimer: Schedule confirmation transition + BookingTimer->>AmbulanceBooking: Set status to confirmed + AmbulanceBooking-->>User: Display dispatch confirmation +``` + +
+ + + + +
+🚥 Pre-merge checks | ✅ 4 | ❌ 1 + +### ❌ Failed checks (1 warning) + +| Check name | Status | Explanation | Resolution | +| :-----------------: | :--------- | :------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------- | +| Linked Issues check | ⚠️ Warning | The PR adds an ambulance booking page and route, but it does not implement the real-time tracking requested in issue `#157`. | Add real-time ambulance tracking to the booking flow, or clarify that tracking is handled elsewhere if this PR only covers booking. | + +
+✅ 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 accurately reflects the main change: adding ambulance booking. | +| Out of Scope Changes check | ✅ Passed | The changes stay focused on ambulance booking UI, routing, and localization with no clear unrelated additions. | +| 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](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=vallabhatech/CareSync&utm_content=324)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. + +
+❤️ Share + +- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) +- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) +- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) +- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) + +
+ + +Comment `@coderabbitai help` to get the list of available commands. + + +-- +author: coderabbitai +association: none +edited: false +status: commented +-- +**Actionable comments posted: 1** + +
+🤖 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 `@src/pages/AmbulanceBooking.jsx`: +- Around line 10-18: Replace the simulated setTimeout confirmation in +handleBooking with a dispatch-service request that submits the validated address +and emergencyType. Set booking status to confirmed only after a successful +response, retain the returned booking and driver data, and use that data as the +source for real-time ambulance tracking; handle request failures without +reporting a false dispatch. +``` + +
+ +
+🪄 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**: `bd911c20-c1d2-4bec-9c80-a6fe3b6131cc` + +
+ +
+📥 Commits + +Reviewing files that changed from the base of the PR and between 1045be3a59b6f62d8d32d0ac747eb0a6b291afb8 and 79c23057d3a4b999c00f5195f6e8d293258792ab. + +
+ +
+📒 Files selected for processing (3) + +* `src/App.jsx` +* `src/i18n/locales/en.json` +* `src/pages/AmbulanceBooking.jsx` + +
+ +
+ + +-- +author: sonarqubecloud +association: none +edited: false +status: none +-- +## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=324) **Quality Gate passed** +Issues +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=324&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=324&issueStatuses=ACCEPTED) + +Measures +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=vallabhatech_CareSync&pullRequest=324&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=324&metric=new_coverage&view=list) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=324&metric=new_duplicated_lines_density&view=list) + + +[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=324) + + +-- diff --git a/pr325_comments.txt b/pr325_comments.txt new file mode 100644 index 0000000..fb96556 Binary files /dev/null and b/pr325_comments.txt differ diff --git a/pr325_utf8.txt b/pr325_utf8.txt new file mode 100644 index 0000000..6e8ecb0 --- /dev/null +++ b/pr325_utf8.txt @@ -0,0 +1,149 @@ +author: vercel +association: none +edited: false +status: none +-- +@rohitkumarnaidu is attempting to deploy a commit to the **vallabhatech's projects** Team on [Vercel](https://vercel.com). + +A member of the Team first needs to [authorize it](https://vercel.com/git/authorize?team=vallabhatech's%20projects&slug=vallabhatechs-projects&teamId=team_XEvLqU3kloqiTS3SEQgSVKnM&type=github&job=%7B%22headInfo%22%3A%7B%22sha%22%3A%224be316d543fb5cc70fa4f8ccc1c9fbf4f416145c%22%7D%2C%22id%22%3A%22QmQFMEu89LRRJb6gX3Rtwy7cLk71dEETHQSDM7AzoVx7pZ%22%2C%22org%22%3A%22vallabhatech%22%2C%22prId%22%3A325%2C%22repo%22%3A%22CareSync%22%7D). + + +-- +author: Copilot (AI) +association: none +edited: false +status: commented +-- +Copilot was unable to review this pull request because the user who requested the review has reached their quota limit. +-- +author: coderabbitai +association: none +edited: false +status: none +-- + + + +> [!WARNING] +> ## Review limit reached +> +> `@rohitkumarnaidu`, you've reached your PR review limit, so we couldn't start this review. +> +> **Next review available in:** **58 minutes** +> +> Enable **[usage-based reviews](https://app.coderabbit.ai/settings/billing?tab=usage&orgId=cc990ced-70c0-4133-8264-3100524c302c)** 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](https://docs.coderabbit.ai/management/plans#rate-limits) for additional details. +> +>
+> +>
+> Review details +> +>
+> ⚙️ Run configuration +> +> **Configuration used**: defaults +> +> **Review profile**: CHILL +> +> **Plan**: Pro Plus +> +> **Run ID**: `08d43905-41ae-4000-bfea-4f17d984c853` +> +>
+> +>
+> 📥 Commits +> +> Reviewing files that changed from the base of the PR and between 1045be3a59b6f62d8d32d0ac747eb0a6b291afb8 and 4be316d543fb5cc70fa4f8ccc1c9fbf4f416145c. +> +>
+> +>
+> 📒 Files selected for processing (3) +> +> * `src/App.jsx` +> * `src/i18n/locales/en.json` +> * `src/pages/DoctorReviews.jsx` +> +>
+> +>
+ + + + + +
+✨ Finishing Touches + +
+🧪 Generate unit tests (beta) + +- [ ] Create PR with unit tests + +
+ +
+ + + + +--- + +Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=vallabhatech/CareSync&utm_content=325)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. + +
+❤️ Share + +- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) +- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) +- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) +- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) + +
+ + +Comment `@coderabbitai help` to get the list of available commands. + + +-- +author: sonarqubecloud +association: none +edited: false +status: none +-- +## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=325) **Quality Gate passed** +Issues +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=325&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=325&issueStatuses=ACCEPTED) + +Measures +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=vallabhatech_CareSync&pullRequest=325&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=325&metric=new_coverage&view=list) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=325&metric=new_duplicated_lines_density&view=list) + + +[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=325) + + +-- diff --git a/pr326_comments.txt b/pr326_comments.txt new file mode 100644 index 0000000..54aa95b Binary files /dev/null and b/pr326_comments.txt differ diff --git a/pr326_utf8.txt b/pr326_utf8.txt new file mode 100644 index 0000000..9cc6e40 --- /dev/null +++ b/pr326_utf8.txt @@ -0,0 +1,149 @@ +author: vercel +association: none +edited: false +status: none +-- +@rohitkumarnaidu is attempting to deploy a commit to the **vallabhatech's projects** Team on [Vercel](https://vercel.com). + +A member of the Team first needs to [authorize it](https://vercel.com/git/authorize?team=vallabhatech's%20projects&slug=vallabhatechs-projects&teamId=team_XEvLqU3kloqiTS3SEQgSVKnM&type=github&job=%7B%22headInfo%22%3A%7B%22sha%22%3A%22f72a5c33a3707f0172c56981d5d81882aadb456c%22%7D%2C%22id%22%3A%22QmcR9fpVSFvkRW3pq7iijwVWnCPs4sMzfa75gCBGxxSoTC%22%2C%22org%22%3A%22vallabhatech%22%2C%22prId%22%3A326%2C%22repo%22%3A%22CareSync%22%7D). + + +-- +author: Copilot (AI) +association: none +edited: false +status: commented +-- +Copilot was unable to review this pull request because the user who requested the review has reached their quota limit. +-- +author: coderabbitai +association: none +edited: false +status: none +-- + + + +> [!WARNING] +> ## Review limit reached +> +> `@rohitkumarnaidu`, you've reached your PR review limit, so we couldn't start this review. +> +> **Next review available in:** **56 minutes** +> +> Enable **[usage-based reviews](https://app.coderabbit.ai/settings/billing?tab=usage&orgId=cc990ced-70c0-4133-8264-3100524c302c)** 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](https://docs.coderabbit.ai/management/plans#rate-limits) for additional details. +> +>
+> +>
+> Review details +> +>
+> ⚙️ Run configuration +> +> **Configuration used**: defaults +> +> **Review profile**: CHILL +> +> **Plan**: Pro Plus +> +> **Run ID**: `bbf5879c-d759-455b-b968-22c76b9e8cec` +> +>
+> +>
+> 📥 Commits +> +> Reviewing files that changed from the base of the PR and between 1045be3a59b6f62d8d32d0ac747eb0a6b291afb8 and f72a5c33a3707f0172c56981d5d81882aadb456c. +> +>
+> +>
+> 📒 Files selected for processing (3) +> +> * `src/App.jsx` +> * `src/components/CookieConsent.jsx` +> * `src/pages/Profile.jsx` +> +>
+> +>
+ + + + + +
+✨ Finishing Touches + +
+🧪 Generate unit tests (beta) + +- [ ] Create PR with unit tests + +
+ +
+ + + + +--- + +Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=vallabhatech/CareSync&utm_content=326)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. + +
+❤️ Share + +- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) +- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) +- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) +- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) + +
+ + +Comment `@coderabbitai help` to get the list of available commands. + + +-- +author: sonarqubecloud +association: none +edited: false +status: none +-- +## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=326) **Quality Gate passed** +Issues +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=326&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=vallabhatech_CareSync&pullRequest=326&issueStatuses=ACCEPTED) + +Measures +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=vallabhatech_CareSync&pullRequest=326&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=326&metric=new_coverage&view=list) +![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=vallabhatech_CareSync&pullRequest=326&metric=new_duplicated_lines_density&view=list) + + +[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=vallabhatech_CareSync&pullRequest=326) + + +-- diff --git a/src/App.jsx b/src/App.jsx index c92a8a0..933dc77 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -44,6 +44,7 @@ import Login from './pages/Login'; import Profile from './pages/Profile'; import DosageCalculator from './pages/DosageCalculator'; import HealthMetrics from './pages/HealthMetrics'; +import CorporateWellness from './pages/CorporateWellness'; import Footer from './components/Footer'; import NotFound from './pages/NotFound'; @@ -346,6 +347,7 @@ function App() { } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/pages/CorporateWellness.jsx b/src/pages/CorporateWellness.jsx new file mode 100644 index 0000000..5932d8e --- /dev/null +++ b/src/pages/CorporateWellness.jsx @@ -0,0 +1,61 @@ +import React from 'react'; +import { Box, Typography, Container, Grid, Card, CardContent, LinearProgress } from '@mui/material'; +import { Business as BusinessIcon, People as PeopleIcon, DirectionsRun as RunIcon, Spa as SpaIcon } from '@mui/icons-material'; + +function CorporateWellness() { + const metrics = [ + { title: 'Total Employees Enrolled', value: '1,245', icon: , progress: 85 }, + { title: 'Avg. Daily Steps', value: '8,432', icon: , progress: 70 }, + { title: 'Active Wellness Plans', value: '342', icon: , progress: 45 }, + { title: 'Company Health Score', value: 'A-', icon: , progress: 92 }, + ]; + + return ( + + + + + Corporate Wellness Dashboard + + + + + Welcome to the HR Admin portal for Corporate Wellness. Here you can track anonymized, aggregate health metrics for your organization to ensure a healthy and productive workforce. + + + + {metrics.map((metric, index) => ( + + + + + {metric.icon} + + {metric.value} + + + + {metric.title} + + + + + + ))} + + + + + Recent Activity & Insights + + + - 120 employees completed the "Step Up" challenge this week.
+ - Mental Health seminars saw a 15% increase in attendance.
+ - 45 new health risk assessments were submitted today. +
+
+
+ ); +} + +export default CorporateWellness;