Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Develop To Staging #10299

Merged
merged 102 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
55217c6
Bump @rollup/rollup-linux-x64-gnu from 4.30.1 to 4.32.0 (#10141)
dependabot[bot] Jan 24, 2025
4c0991e
Add renovate.json (#10132)
renovate[bot] Jan 24, 2025
ba3ca88
Change `organizations_remove` route method to DELETE (#10159)
rajku-dev Jan 25, 2025
4cc0e21
Update dependency vite to v5.4.12 [SECURITY] (#10152)
renovate[bot] Jan 25, 2025
e43fe7d
Update dependency @tailwindcss/forms to v0.5.10 (#10161)
renovate[bot] Jan 25, 2025
7e10ba0
Upgrade to `Eslint` v9 (#10102)
AdityaJ2305 Jan 25, 2025
b88e7d0
Update dependency @tailwindcss/forms to v0.5.10 (#10168)
renovate[bot] Jan 25, 2025
5624f9a
Update dependency vite to v5.4.12 [SECURITY] (#10167)
renovate[bot] Jan 25, 2025
c51ef57
Update dependency @types/node to v22.10.10 (#10163)
renovate[bot] Jan 25, 2025
0c06afc
Update dependency @tailwindcss/typography to v0.5.16 (#10162)
renovate[bot] Jan 25, 2025
0acf586
Fix dev server (#10174)
sainak Jan 25, 2025
30e057d
Added required field validation and scroll before submit for questio…
Jacobjeevan Jan 25, 2025
131111f
reset questionnaire errors (#10177)
Jacobjeevan Jan 25, 2025
acbb262
Update renovate config (#10184)
rithviknishad Jan 25, 2025
0b053f6
Update all dependencies (minor, patch) (#10185)
renovate[bot] Jan 25, 2025
dad3637
Prefill Structured Data; Add Edit Links for Structured (#9992)
gigincg Jan 27, 2025
e6f6859
Trigger default filters apply logic only when there are no search par…
rithviknishad Jan 27, 2025
4d1ace2
fixes year_of_birth post patient registration success (#10206)
rithviknishad Jan 27, 2025
8cc177e
New Cypress Test for Creation Of Questionnaire (#10210)
nihal467 Jan 27, 2025
e17cd88
Remove Query Invalidation after Questionnaire Batch Request
gigincg Jan 27, 2025
4ae8e8b
changed latitude longitude type to a number in facility create form (…
khavinshankar Jan 27, 2025
a481488
added i18n support for plugins (#10182)
khavinshankar Jan 27, 2025
6834157
Confirm Alert for Patient Registration (#10205)
Jacobjeevan Jan 28, 2025
892dc4a
Render multi line text in Questionnaire Response (#10216)
rajku-dev Jan 28, 2025
4a30d79
Bump lucide-react from 0.473.0 to 0.474.0 (#10209)
dependabot[bot] Jan 28, 2025
58234fd
Update all dependencies (minor, patch) (#10222)
renovate[bot] Jan 28, 2025
6a665ab
disable dependabot updates in favour of renovate (#10223)
rithviknishad Jan 28, 2025
e18ef85
Update actions/github-script action to v7 (#10193)
renovate[bot] Jan 28, 2025
40cc96e
Update actions/checkout action to v4 (#10189)
renovate[bot] Jan 28, 2025
f8693d8
fixed inputs focus issue in plugs when a dialog is child of dropdown …
khavinshankar Jan 28, 2025
1ffff23
Update dependency marked to v15 (#10225)
renovate[bot] Jan 28, 2025
153926a
Fix: Adjust Image Upload Button Width in Edit Cover Photo and Avatar …
modamaan Jan 28, 2025
2e681c6
Update actions/stale action to v9 (#10194)
renovate[bot] Jan 28, 2025
d586d13
added dpg badge to readme (#10134)
shivankacker Jan 28, 2025
230b483
Switch to `PhoneInput` (#10214)
rithviknishad Jan 28, 2025
b476406
Remove 'discharge' from MedicationAdministration category types (#10232)
rithviknishad Jan 28, 2025
c0197cd
Enhance Practitioner Selection in Book Appointment Page (#10236)
rithviknishad Jan 28, 2025
99eb563
Remove slot type selection from schedule template forms (#10238)
rithviknishad Jan 28, 2025
2b8aaa0
Refactor Token Slot Button into Reusable Component (#10244)
rithviknishad Jan 28, 2025
8d0999f
prevent showing callout when slots are negative (#10242)
rithviknishad Jan 28, 2025
9858102
Follow Up: Upgrade `Eslint` version to v9 (#10180)
AdityaJ2305 Jan 28, 2025
ee9cfdb
Update dependency eslint-config-prettier to v10 (#10197)
renovate[bot] Jan 28, 2025
5b6ddea
Fixes incorrect count in appointments column when search query is pre…
rithviknishad Jan 28, 2025
1d8fc2f
Remove status change dropdown from AppointmentActions component (#10248)
rithviknishad Jan 28, 2025
1568bfd
Update all dependencies (minor, patch) (#10245)
renovate[bot] Jan 28, 2025
0c3342f
Disable Unnecessary Browser Pop-up on Patient Registration Form (#10251)
AdityaJ2305 Jan 28, 2025
25cdaf6
Patient Age and Facility Location Edits (#10260)
Jacobjeevan Jan 29, 2025
5cd4b17
Fix Layout Overflow on Appointment and Patient Details Pages for Mobi…
modamaan Jan 29, 2025
33c322e
Fix: Facility Creation Form: Pincode Autofill Overwrites Pre-filled G…
Rishith25 Jan 29, 2025
34a4a29
Update dependency prettier-plugin-tailwindcss to v0.6.11 (#10179)
renovate[bot] Jan 29, 2025
19ae5be
Update all dependencies (minor, patch) (#10268)
renovate[bot] Jan 29, 2025
3dd7132
Update dependency vite-plugin-pwa to ^0.21.0 (#10188)
renovate[bot] Jan 29, 2025
ee73c80
Update docker/setup-buildx-action action to v3 (#10271)
renovate[bot] Jan 29, 2025
881610a
Update docker/build-push-action action to v6 (#10270)
renovate[bot] Jan 29, 2025
d9689df
Update leonsteinhaeuser/project-beta-automations action to v2 (#10274)
renovate[bot] Jan 29, 2025
9b6dcbd
Feat: Display total no. of entities with heading in Organization (#10…
AdityaJ2305 Jan 29, 2025
dcf2bb9
Patient Detail Tabs: Org List Access (#10121)
Jacobjeevan Jan 29, 2025
933fff1
Replaced all TextAreaForm component with Textarea shadcn ui component…
NikhilA8606 Jan 29, 2025
2e770cd
Update prince-chrismc/label-merge-conflicts-action action to v3 (#10276)
renovate[bot] Jan 29, 2025
3976382
Update dependency sonner to v1.7.3 (#10281)
renovate[bot] Jan 29, 2025
b949c64
Add Real-Time Validation for `CreateUserForm` and Standardize UI Acr…
AdityaJ2305 Jan 30, 2025
3bdb1ee
Fix: Adjust spacing and overflow behavior in FileUploadDialog compone…
DonXavierdev Jan 30, 2025
bd0557b
Fix the accessibility issue by adding DialogTitle to DialogContent an…
modamaan Jan 30, 2025
fcd08c8
Update dependency ubuntu to v24 (#10229)
renovate[bot] Jan 30, 2025
bcd3c7b
Fix type edit in QuestionnaireEditor
gigincg Jan 30, 2025
4d4aa18
Add location pages
bodhish Jan 29, 2025
50cb157
Add facility settings routes and layout
bodhish Jan 30, 2025
7ba933c
Nested Routes for Facility Settings; Org to Departments
gigincg Jan 30, 2025
36d7ac7
Update dependency undici to v5.28.5
bodhish Jan 30, 2025
cdf4e46
patient registration in multiple combination (#10287)
nihal467 Jan 30, 2025
284f1a2
Reorganize Facility Settings
gigincg Jan 30, 2025
db0a8d6
Simplify GeneralSettings to use FacilityHome component
bodhish Jan 30, 2025
5edb84e
Update theme color; update icons; remove unused assets (#10292)
rithviknishad Jan 30, 2025
e35cc72
Add overview page
bodhish Jan 30, 2025
81a6257
Refactor Facility Settings; Location Organizations
gigincg Jan 30, 2025
b834ee4
added * to all mandatory fields in resource create (#10314)
nihal467 Jan 31, 2025
023208b
Expand the cypress to search a patient and create an encounter (#10317)
nihal467 Jan 31, 2025
febfcae
Fix: View Facility Redirection in public page is broken (#10318)
AdityaJ2305 Jan 31, 2025
6be23f5
Update all dependencies (minor, patch) (#10290)
renovate[bot] Jan 31, 2025
fd9f145
showing "-" in the emergency contact person field to represent the fi…
Prakhar29Sharma Jan 31, 2025
34c7b68
fixed the redirection in organisation (#10328)
nihal467 Jan 31, 2025
3f238c5
Fix: Use headers.set() instead of headers.append() in makeHeaders (#1…
rithviknishad Jan 31, 2025
54a474a
Set theme color to white in vite PWA manifest (#10321)
rithviknishad Jan 31, 2025
5abeec2
Expose dev server to host (#10330)
rithviknishad Jan 31, 2025
8645c58
Remove automatic picker show for date and time inputs (#10331)
rithviknishad Jan 31, 2025
928bfc6
fix Page in location: infer location.mode;
gigincg Jan 31, 2025
b4e9216
Rm whatsapp phone number, hide email for updates (#10334)
Jacobjeevan Jan 31, 2025
e4b291a
Dob/Age and Lat/Log Override (#10280)
Jacobjeevan Jan 31, 2025
71439ba
Remove pin-code autofill feature (#10291)
rithviknishad Jan 31, 2025
c9a3764
fix responsiveness of date field and gender in public patient registr…
rithviknishad Jan 31, 2025
4694c21
Make autocompletes mobile friendly (#10336)
rithviknishad Jan 31, 2025
a7fca70
Add empty parent parameter to location and organization list queries
bodhish Jan 31, 2025
db35974
removed hard corded values in the appointments (#10337)
nihal467 Jan 31, 2025
e8d5348
Refactor location list views with reusable LocationCard component
bodhish Jan 31, 2025
55d5790
fix: Align and format cards in Health Profile (#10298)
ashwinpraveengo Jan 31, 2025
2298ed5
Fix Camera Capture and Upload Workflow (#10326)
rajku-dev Jan 31, 2025
44b728b
Fix: Resource Letter printing issue (#10230)
AdityaJ2305 Jan 31, 2025
7b61652
Remove index-based numbering from appointments table row (#10338)
rithviknishad Jan 31, 2025
46caeff
Patient Updates Tab, Structured responses filter by Encounter (#10329)
amjithtitus09 Jan 31, 2025
1c41bf8
Location Update fix (#10339)
amjithtitus09 Jan 31, 2025
5a7bdb8
Resources redesign (#10308)
Jacobjeevan Jan 31, 2025
4d9e7d0
ResourceUpdates Bug Fix (#10341)
Jacobjeevan Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 0 additions & 84 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ REACT_DEFAULT_ENCOUNTER_TYPE=

# Available languages to switch between (2 Digit language code seperated by comas. See src->Locale->config.ts for available codes)
REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn"

# ISO 3166-1 Alpha-2 code for the default country code (default: "IN")
REACT_DEFAULT_COUNTRY=
9 changes: 5 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
version: 2
updates:
- package-ecosystem: "yarn"
- package-ecosystem: npm
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 0
allow:
- dependency-name: "*"
dependency-type: "production"
assignees:
- "tomahawk_pilot"
labels:
- "yarn"
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
open-pull-requests-limit: 0
assignees:
- "tomahawk_pilot"
labels:
- "ci"
- "dependencies"
- "dependencies"
2 changes: 1 addition & 1 deletion .github/workflows/auto-testing-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Check PR Conditions and Add Label
id: check_conditions
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/combine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Combine dependencies
id: combine-dependencies
uses: github/combine-prs@v5.0.0
uses: github/combine-prs@v5.2.0
with:
pr_title: Combined dependencies # The title of the pull request to create
select_label: dependencies # The label which marks PRs that should be combined.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/comment-p1-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
issues: write
steps:
- name: Add comment
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
script: |
const body = ':warning: **Refrain from assigning this issue to yourself if you have another `P1` issue assigned that is not yet closed.**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout 📥
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Determine PR Origin
id: pr_origin
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
Expand All @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-buildx-test-

- name: Test build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
${{ runner.os }}-buildx-build-

- name: Build and push image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/issue-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'opened' || github.event.action == 'reopened'
steps:
- name: 'Move issue to "Triage"'
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
uses: leonsteinhaeuser/project-beta-automations@v2.2.1
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: ohcnetwork
Expand All @@ -26,7 +26,7 @@ jobs:
if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: 'Moved issue to "Done"'
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
uses: leonsteinhaeuser/project-beta-automations@v2.2.1
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: ohcnetwork
Expand All @@ -39,7 +39,7 @@ jobs:
if: github.repository == 'ohcnetwork/care_fe' && github.event_name == 'issues' && github.event.action == 'assigned'
steps:
- name: 'Move issue to "In Progress"'
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
uses: leonsteinhaeuser/project-beta-automations@v2.2.1
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: ohcnetwork
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-deploy-failed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Add 'Deploy-Failed'
if: contains(github.event.comment.body, 'failed')
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Remove 'Deploy-Failed' label
if: contains(github.event.comment.body, 'ready')
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.removeLabel({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-merge-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.repository == 'ohcnetwork/care_fe'
runs-on: ubuntu-24.04-arm
steps:
- uses: prince-chrismc/label-merge-conflicts-action@v2
- uses: prince-chrismc/label-merge-conflicts-action@v3
with:
conflict_label_name: "merge conflict"
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
if: github.repository == 'ohcnetwork/care_fe' && join(needs.check-linked-issues.outputs.linked_issues) != ''
steps:
- name: Label
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const issues = "${{ needs.check-linked-issues.outputs.linked_issues }}".split(',')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ permissions:
jobs:
release:
name: Release on Push
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Necessary to fetch all tags

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-24.04-arm
if: github.repository == 'ohcnetwork/care_fe'
steps:
- uses: actions/stale@v6
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: "stale"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/thank-you.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
contents: write
steps:
- name: Add thankyou note
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
script: |
const thankyouNote = 'Your efforts have helped advance digital healthcare and TeleICU systems. :rocket: Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! :raised_hands:';
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"useTabs": false,
"tabWidth": 2,
"semi": true,
"endOfLine": "lf",
"endOfLine": "auto",
"jsxSingleQuote": false,
"arrowParens": "always",
"tailwindFunctions": ["classNames"],
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ohcnetwork/branding/refs/heads/main/Care/SVG/Logo/Care-Logo_gradient_mark_with_white_wordmark.svg">
<img alt="CARE Logo" src="https://raw.githubusercontent.com/ohcnetwork/branding/refs/heads/main/Care/SVG/Logo/Care-Logo_gradient_mark_with_dark_wordmark.svg" width="400">
</picture>
<br>
<a href="https://digitalpublicgoods.net/r/care"><img src="https://img.shields.io/badge/Verified-DPG%20(Since%20%202021)-3333AB?logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCAzMSAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjIwMDggMjEuMzY3OEwxMC4xNzM2IDE4LjAxMjRMMTEuNTIxOSAxNi40MDAzTDEzLjk5MjggMTguNDU5TDE5LjYyNjkgMTIuMjExMUwyMS4xOTA5IDEzLjYxNkwxNC4yMDA4IDIxLjM2NzhaTTI0LjYyNDEgOS4zNTEyN0wyNC44MDcxIDMuMDcyOTdMMTguODgxIDUuMTg2NjJMMTUuMzMxNCAtMi4zMzA4MmUtMDVMMTEuNzgyMSA1LjE4NjYyTDUuODU2MDEgMy4wNzI5N0w2LjAzOTA2IDkuMzUxMjdMMCAxMS4xMTc3TDMuODQ1MjEgMTYuMDg5NUwwIDIxLjA2MTJMNi4wMzkwNiAyMi44Mjc3TDUuODU2MDEgMjkuMTA2TDExLjc4MjEgMjYuOTkyM0wxNS4zMzE0IDMyLjE3OUwxOC44ODEgMjYuOTkyM0wyNC44MDcxIDI5LjEwNkwyNC42MjQxIDIyLjgyNzdMMzAuNjYzMSAyMS4wNjEyTDI2LjgxNzYgMTYuMDg5NUwzMC42NjMxIDExLjExNzdMMjQuNjI0MSA5LjM1MTI3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==" alt="DPG Badge"></a>
</p>
</a>
<p align="center"><b>Our goal is to continuously improve the quality and accessibility of public healthcare services using digital tools.</b></p>
Expand Down Expand Up @@ -151,3 +153,10 @@ Starts a production http-server in local to run the project with Service worker.
The build is minified and the filenames include the hashes.

**🚀 Your app is ready to be deployed!**

<div align="center">

<br />
<a href="https://digitalpublicgoods.net/r/care" target="_blank" rel="noopener noreferrer"><img src="https://github.com/DPGAlliance/dpg-resources/blob/main/docs/assets/dpg-badge.png?raw=true" width="100" alt="Digital Public Goods Badge"></a>

</div>
33 changes: 29 additions & 4 deletions care.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CountryCode } from "libphonenumber-js/types.cjs";

import { EncounterClass } from "@/types/emr/encounter";

const env = import.meta.env;
Expand Down Expand Up @@ -119,14 +121,37 @@ const careConfig = {
},

careApps: env.REACT_ENABLED_APPS
? env.REACT_ENABLED_APPS.split(",").map((app) => ({
branch: app.split("@")[1],
package: app.split("@")[0],
}))
? env.REACT_ENABLED_APPS.split(",").map((app) => {
const [module, cdn] = app.split("@");
const [org, repo] = module.split("/");

if (!org || !repo) {
throw new Error(
`Invalid plug configuration: ${module}. Expected 'org/repo@url'.`,
);
}

let url = "";
if (!cdn) {
url = `https://${org}.github.io/${repo}`;
}

if (!url.startsWith("http")) {
url = `${cdn.includes("localhost") ? "http" : "https"}://${cdn}`;
}

return {
url: new URL(url).toString(),
name: repo,
package: module,
};
})
: [],

plotsConfigUrl:
env.REACT_OBSERVATION_PLOTS_CONFIG_URL || "/config/plots.json",

defaultCountry: (env.REACT_DEFAULT_COUNTRY || "IN") as CountryCode,
} as const;

export default careConfig;
11 changes: 6 additions & 5 deletions cypress/e2e/facility_spec/facility_creation.cy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { FacilityCreation } from "pageObject/facility/FacilityCreation";
import { generatePhoneNumber } from "utils/commonUtils";
import { generateFacilityData } from "utils/facilityData";
import { FacilityCreation } from "@/pageObject/facility/FacilityCreation";
import { generatePhoneNumber } from "@/utils/commonUtils";
import { generateFacilityData } from "@/utils/facilityData";

const LOCATION_HIERARCHY = {
state: "Kerala",
district: "Ernakulam",
localBody: "Aluva",
ward: "4",
};
Expand All @@ -12,10 +14,9 @@ describe("Facility Management", () => {
const facilityType = "Primary Health Centre";

beforeEach(() => {
// Set larger viewport to ensure all elements are visible
cy.viewport(1920, 1080);
cy.visit("/login");
cy.loginByApi("nurse");
cy.visit("/");
});

it("Create a new facility using the admin role and verify validation errors", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/login_spec/loginpage.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LoginPage } from "../../pageObject/auth/LoginPage";
import { LoginPage } from "@/pageObject/auth/LoginPage";

describe("Login Page", () => {
const loginPage = new LoginPage();
Expand Down
Loading
Loading