Skip to content

Commit

Permalink
Merge pull request #10436 from ohcnetwork/develop
Browse files Browse the repository at this point in the history
Merge Develop To Staging v3.1.0
  • Loading branch information
khavinshankar authored Feb 7, 2025
2 parents 1b254c4 + 226dc5a commit 436907b
Show file tree
Hide file tree
Showing 150 changed files with 7,257 additions and 5,165 deletions.
3 changes: 0 additions & 3 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ REACT_SENTRY_DSN=
# Sentry environment (default: staging)
REACT_SENTRY_ENVIRONMENT=

# Sample format file paths
REACT_SAMPLE_FORMAT_ASSET_IMPORT=/asset-import-template.xlsx

# Camera feed, still watching idle timeout (in seconds; default: 180)
REACT_STILL_WATCHING_IDLE_TIMEOUT=

Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/auto-testing-label.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/combine.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/comment-p1-issues.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/label-deploy-failed.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/label-merge-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
wait_ms: 15000
detect_merge_changes: false
conflict_comment: |
:wave: Hi, @${author},
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.
Conflicts have been detected against the base branch. Please merge the base branch into your branch.
cc: @${author}
> _See: https://docs.ohc.network/docs/contributing#how-to-resolve-merge-conflicts_
54 changes: 0 additions & 54 deletions .github/workflows/label-wip.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches:
- develop
- master
merge_group:

jobs:
Expand All @@ -22,10 +21,13 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint -- --quiet

- name: Run unimported
run: npm run unimported
2 changes: 1 addition & 1 deletion .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@fae13e456b9973657a670eef6bccc3a4c2b5153d
uses: github/ossar-action@v1
id: ossar

# Upload results to the Security tab
Expand Down
54 changes: 54 additions & 0 deletions .unimportedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"ignorePatterns": [
"node_modules/**",
"**/*.d.ts"
],
"ignoreUnimported": [
"src/Locale/update_locale.js",
"src/PluginRegistry.ts",
"src/pluginTypes.ts",
"src/service-worker.ts"
],
"ignoreUnused": [
"@fontsource/figtree",
"@originjs/vite-plugin-federation",
"@vitejs/plugin-react",
"browserslist-useragent-regexp",
"cross-env",
"postcss-loader"
],
"ignoreUnresolved": [
[
"./pluginMap",
[
"src/pluginTypes.ts"
]
],
[
"@/supportedBrowsers",
[
"src/components/ErrorPages/BrowserWarning.tsx"
]
],
[
"tsx/cjs",
[
"node_modules/find-cypress-specs/src/index.js"
]
],
[
"virtual:pwa-register",
[
"src/index.tsx"
]
]
],
"respectGitignore": true,
"entry": [
"src/index.tsx",
"vite.config.mts",
"tailwind.config.js",
"cypress.config.ts",
"scripts/**"
]
}
5 changes: 0 additions & 5 deletions care.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ const careConfig = {
reCaptchaSiteKey:
env.REACT_RECAPTCHA_SITE_KEY || "6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN",

sampleFormats: {
assetImport:
env.REACT_SAMPLE_FORMAT_ASSET_IMPORT || "/asset-import-template.xlsx",
},

wartimeShifting: boolean("REACT_WARTIME_SHIFTING"),

stillWatching: {
Expand Down
5 changes: 2 additions & 3 deletions cypress/e2e/patient_spec/patient_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
PatientFormData,
patientCreation,
} from "@/pageObject/Patients/PatientCreation";
import { patientDashboard } from "@/pageObject/Patients/PatientDashboard";
import { PatientEncounter } from "@/pageObject/Patients/PatientEncounter";
import { patientVerify } from "@/pageObject/Patients/PatientVerify";
import { FacilityCreation } from "@/pageObject/facility/FacilityCreation";
Expand Down Expand Up @@ -126,7 +125,7 @@ describe("Patient Management", () => {
.clickSubmitEncounter()
.assertEncounterCreationSuccess();

patientDashboard.verifyEncounterPatientInfo([
patientEncounter.verifyEncounterPatientInfo([
ENCOUNTER_TYPE,
ENCOUNTER_STATUS,
ENCOUNTER_PRIORITY,
Expand Down Expand Up @@ -154,7 +153,7 @@ describe("Patient Management", () => {
.clickSubmitEncounter()
.assertEncounterCreationSuccess();

patientDashboard.verifyEncounterPatientInfo([
patientEncounter.verifyEncounterPatientInfo([
ENCOUNTER_TYPE,
ENCOUNTER_STATUS,
ENCOUNTER_PRIORITY,
Expand Down
Loading

0 comments on commit 436907b

Please sign in to comment.