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

Migrate rescript components to typescript; uninstall ReScript #8316

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
bf30f3a
upgrade eslint and prettier packages
rithviknishad Jul 30, 2024
e817c0d
run project wide format
rithviknishad Jul 30, 2024
26bc7d3
use prettier for tailwind lint rules
rithviknishad Jul 30, 2024
087d17f
Rewrite component to typescript (Authored-by: Shivank @skks1212)
rithviknishad Jul 30, 2024
f9bb7e9
fix unused classname
rithviknishad Jul 30, 2024
4f45587
unplug rescript
rithviknishad Jul 30, 2024
24bf0f8
add critical care index page
rithviknishad Jul 31, 2024
b37ea6b
fix issue with dropdown clipping in popup modal
rithviknishad Jul 31, 2024
8b61cc7
adds icons for daily round sections
rithviknishad Jul 31, 2024
880c2dc
fix nested `p` tag error
rithviknishad Jul 31, 2024
6c1f870
fix pain chart not working for updates
rithviknishad Jul 31, 2024
39f7a55
fix range form field's text input being able to go beyond range
rithviknishad Jul 31, 2024
4396fe1
fix checbox not working
rithviknishad Jul 31, 2024
c14fdb4
fix range form field unable to parse strings as floats
rithviknishad Jul 31, 2024
b2c8e82
fix neurological monitoring sending incorrect values for some options
rithviknishad Jul 31, 2024
042efef
fix nursing care layout
rithviknishad Jul 31, 2024
dd9de00
add translations to editor index
rithviknishad Jul 31, 2024
df32999
fix pressure sore not working
rithviknishad Jul 31, 2024
8bb6f27
Merge branch 'develop' into log-update-v2
rithviknishad Jul 31, 2024
5f622d0
replace gray shade with secondary
rithviknishad Jul 31, 2024
f019713
fix cypress
rithviknishad Jul 31, 2024
803dcc3
Merge branch 'develop' into log-update-v2
rithviknishad Aug 1, 2024
1d7bcd7
fix log update sections not compliant with vite hmr update rules
rithviknishad Aug 1, 2024
dff3c04
fix bunch of issues with range form field
rithviknishad Aug 1, 2024
e1f7bfa
Fix issues with "Nursing Care" section
rithviknishad Aug 1, 2024
e2edf68
Fix issues with "Dialysis" section
rithviknishad Aug 1, 2024
e409f74
Fix issues with "Bloog Sugar" section
rithviknishad Aug 1, 2024
7fa0f30
Fix issues with "Dialysis" section
rithviknishad Aug 1, 2024
1897c1e
Fix issues with "ABG Analaysis" section
rithviknishad Aug 1, 2024
38775ef
Fix issues with "IO Balance" section
rithviknishad Aug 1, 2024
73d4002
Fix issues with "Pupil Size" component
rithviknishad Aug 2, 2024
af2292b
Fix issues with "Neurological Monitoring" section and RadioFormFIeld
rithviknishad Aug 2, 2024
8bd5e3f
fix uncontrolled input error in range form field
rithviknishad Aug 2, 2024
cddb546
Added support for IV and NIV Respiratory Support and fix issues with …
rithviknishad Aug 2, 2024
16bc590
improve type definitions for Human Body component and Pressure Sore
rithviknishad Aug 2, 2024
f53e6a2
Merge branch 'develop' into log-update-v2
rithviknishad Aug 4, 2024
957bf6c
Fix issues with "Pressure Sore" section
rithviknishad Aug 4, 2024
fea48f3
Visual improvements to Human Chart component
rithviknishad Aug 4, 2024
0fe4709
Fix issues with "Pain Chart" in Vitals section
rithviknishad Aug 4, 2024
cb02bab
Update preview componets in Consultation Dashboard to use newer compo…
rithviknishad Aug 4, 2024
780df3d
Check for linked ventilators when filing resp. support section
rithviknishad Aug 5, 2024
af65135
update cypress tests
rithviknishad Aug 5, 2024
ff35818
fix prine position padding and LOC layout
rithviknishad Aug 6, 2024
d800bdc
update LOC choices
rithviknishad Aug 6, 2024
5c91bf8
update vertical spacing of radio form field
rithviknishad Aug 6, 2024
75087fe
Merge branch 'develop' into log-update-v2
rithviknishad Aug 7, 2024
0cd47de
Nursing Care: reduced vertical spacing
rithviknishad Aug 7, 2024
731b9bb
Fix I/O Balance select menu not functional
rithviknishad Aug 7, 2024
314288a
ABG Analaysis: Correct pH value slider range to max 10 instead of 14
rithviknishad Aug 7, 2024
14adfb0
Respiratory Support: Adds missing range value description for tidal v…
rithviknishad Aug 7, 2024
7622471
remove unused field `consciousness_level_detail`
rithviknishad Aug 7, 2024
4f7674e
Fix showig constricted when cannot be assessed selected
rithviknishad Aug 7, 2024
a0491f2
Fixes issue when right pupil's checkbox label causes to toggle left p…
rithviknishad Aug 7, 2024
775b31e
Reduce spacing in Glasgow Coma Scale
rithviknishad Aug 7, 2024
cd2f8a7
Fix whitespace breaks in neurological monitoring preview: LOC
rithviknishad Aug 7, 2024
9525f26
Adds missing support for progress note round type sections
rithviknishad Aug 7, 2024
1a8d998
Fix spacing between title of pressure sore and pain scale preview tabs
rithviknishad Aug 7, 2024
89a7a53
Fix size and spacing of Range Form Field's numeric input and unit sel…
rithviknishad Aug 7, 2024
083f115
Fix pain scale and pressure sore popup not closing on clicking save b…
rithviknishad Aug 7, 2024
f142a92
Show Dialog Modal for mobile screens for Pressure sore and Pain scale…
rithviknishad Aug 7, 2024
e521fb8
ensure consistent colors for pressure sore and painscale buttons and …
rithviknishad Aug 7, 2024
f8496f0
Merge branch 'develop' into log-update-v2
rithviknishad Aug 7, 2024
b8c6124
fix lint issues
rithviknishad Aug 7, 2024
65554c5
Merge branch 'develop' into log-update-v2
rithviknishad Aug 8, 2024
5d71c90
Merge branch 'develop' into log-update-v2
rithviknishad Aug 12, 2024
ef88af9
prettify files that are not pretty
rithviknishad Aug 12, 2024
7e16b2c
improve i18n support and code quality refactor
rithviknishad Aug 12, 2024
b599e2c
Critical Care details page part 1 (5 of 11 sections)
rithviknishad Aug 12, 2024
8295e03
Resp. support section preview
rithviknishad Aug 13, 2024
9214466
Pressure Sore section preview
rithviknishad Aug 13, 2024
3c9d8b0
Nursing Care section preview
rithviknishad Aug 13, 2024
217d603
I/O balance section preview
rithviknishad Aug 13, 2024
66520b1
Vitals section preview
rithviknishad Aug 13, 2024
326d6ce
submit BP mean to backend
rithviknishad Aug 13, 2024
aa996aa
add success notifications for completing
rithviknishad Aug 13, 2024
cede549
fix pressure sore colors
rithviknishad Aug 13, 2024
c0e6d5c
remove unused dependencies
rithviknishad Aug 14, 2024
5cd0706
Revert "remove unused dependencies"
rithviknishad Aug 14, 2024
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
14 changes: 3 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:i18next/recommended",
"plugin:tailwindcss/recommended",
"plugin:prettier/recommended",
"plugin:storybook/recommended"
],
"overrides": [
Expand Down Expand Up @@ -46,10 +46,6 @@
"i18next"
],
"rules": {
"quotes": [
"error",
"double"
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -59,6 +55,7 @@
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": "warn",
"react/react-in-jsx-scope": "off",
"i18next/no-literal-string": [
"warn",
Expand All @@ -81,12 +78,7 @@
]
}
}
],
"tailwindcss/no-custom-classname": "off",
"tailwindcss/migration-from-tailwind-2": "error",
"tailwindcss/classnames-order": "off",
"tailwindcss/enforces-shorthand": "off",
"tailwindcss/no-contradicting-classname": "error"
]
},
"ignorePatterns": [
"dist",
Expand Down
32 changes: 0 additions & 32 deletions bsconfig.json

This file was deleted.

8 changes: 4 additions & 4 deletions cypress/e2e/patient_spec/patient_logupdate.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeSpo2(patientSpo2);
patientLogupdate.selectRhythm(patientRhythmType);
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-2").click();
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Telemedicine log created successfully");
});
Expand All @@ -82,7 +82,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeSpo2(patientSpo2);
patientLogupdate.selectRhythm(patientRhythmType);
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-2").click();
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Brief Update log created successfully");
cy.closeNotification();
Expand Down Expand Up @@ -137,7 +137,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeSpo2(patientSpo2);
patientLogupdate.selectRhythm(patientRhythmType);
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-2").click();
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.wait(2000);
cy.verifyNotification("Brief Update log created successfully");
Expand All @@ -161,7 +161,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typePulse(patientPulse);
patientLogupdate.typeTemperature(patientTemperature);
patientLogupdate.typeRespiratory(patientRespiratory);
cy.get("#consciousness_level-2").click();
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Brief Update log created successfully");
cy.closeNotification();
Expand Down
6 changes: 3 additions & 3 deletions cypress/pageobject/Patient/PatientCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PatientPage {
}

checkPhoneNumberIsEmergencyNumber() {
cy.get("#emergency_contact_checkbox > div > input").click();
cy.get("#emergency_contact_checkbox").click();
}

typePatientDateOfBirth(dateOfBirth: string) {
Expand Down Expand Up @@ -93,11 +93,11 @@ export class PatientPage {
}

clickPatientAntenatalStatusYes() {
cy.get("#is_antenatal-0").click();
cy.get("#is_antenatal-option-true").click();
}

clickPatientPostPartumStatusYes() {
cy.get("#is_postpartum-0").click();
cy.get("#is_postpartum-option-true").click();
}

clickCancelButton() {
Expand Down
Loading
Loading