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

Add base for fhir forms #9262

Merged
merged 379 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
c464e63
Clean up unused type references
bodhish Dec 15, 2024
c47a541
Merge branch 'cleanup-facility' into form-field-v1
bodhish Dec 15, 2024
d2a6e12
Appointments flow: adjustments
Jacobjeevan Dec 15, 2024
6c8cd61
Switch to QR code for Appointment Card; Add care logo
rithviknishad Dec 15, 2024
6fa3520
hide things not planned for now and remove redundant fields
rithviknishad Dec 15, 2024
9da93aa
Add viewer for symptoms and diagnosis
bodhish Dec 15, 2024
cfa055d
minor fixes/styling changes
Jacobjeevan Dec 15, 2024
20cc9b2
Merge branch 'form-field-v1' into rithviknishad/feat/scheduling
rithviknishad Dec 15, 2024
f775e6f
Cleanup Questionnaire Renderers
gigincg Dec 15, 2024
e82126c
Add list for allergy
bodhish Dec 15, 2024
2c57ce9
Integrate Schedule APIs
rithviknishad Dec 15, 2024
c9726a9
slots for a day; partial.
rithviknishad Dec 15, 2024
9624078
Merge branch 'rithviknishad/feat/scheduling' into form-field-v1
rithviknishad Dec 15, 2024
0a7a133
landing flow; some more updates
Jacobjeevan Dec 15, 2024
fcd9ac2
form error fix
Jacobjeevan Dec 15, 2024
d4b94c2
appointment create APIs
rithviknishad Dec 15, 2024
1b60519
Add support for styling
bodhish Dec 15, 2024
1a82817
Rebuild landing page
bodhish Dec 15, 2024
754a479
appointment token; and other fixes
rithviknishad Dec 15, 2024
40dc5b0
appointments list page
rithviknishad Dec 15, 2024
062dd94
Add phone number login
bodhish Dec 15, 2024
e5a2a28
landing flow: fix errors, adjust to match api changes
Jacobjeevan Dec 16, 2024
44405be
Lets show all users in the facility homepage
bodhish Dec 16, 2024
1e0eb39
More styling changes
Jacobjeevan Dec 16, 2024
dd12b34
Disable error message for 404
bodhish Dec 16, 2024
86e58a7
Fix overflow
bodhish Dec 16, 2024
402aa2c
scheduling: gracefully handle no home facility linked
rithviknishad Dec 16, 2024
2401e2f
OTP access token in createAppointment call; minor styling changes
Jacobjeevan Dec 16, 2024
19e035e
Merge remote-tracking branch 'origin' into form-field-v1
rithviknishad Dec 17, 2024
d5bfef9
OTP flow/API fixes
Jacobjeevan Dec 17, 2024
abfbc61
fix scroll in appointments page
rithviknishad Dec 17, 2024
4f2cbf4
Support Questionnaire with Encounter Creation
gigincg Dec 17, 2024
9f3637b
Removed/cleaned up mock data; switched to using tanstack, translation…
Jacobjeevan Dec 17, 2024
9833569
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
Jacobjeevan Dec 17, 2024
547edd4
Changes to Public Appointment
bodhish Dec 17, 2024
bcf1970
Add udpates tab in patients
bodhish Dec 17, 2024
47ee165
Support Patient Questionnaires
gigincg Dec 17, 2024
5dea3a9
Add filter for patient forms
bodhish Dec 17, 2024
e23cff7
Fix Patient Link for Volunteer
gigincg Dec 17, 2024
04cb300
Update QuestionnaireForm
bodhish Dec 17, 2024
770f991
Hide logs in prod
bodhish Dec 17, 2024
04d3ea7
Remove linkId from questions
bodhish Dec 17, 2024
ee3b941
Use encounterId as resourceId when available
gigincg Dec 17, 2024
912ee9a
Add support for custom logo in landing page
bodhish Dec 17, 2024
ed2d5e3
Update package lock
bodhish Dec 17, 2024
f9d7fbd
Reduce height for the logo
bodhish Dec 17, 2024
cdb3558
Enhance logo handling in Login and LandingPage components.
bodhish Dec 17, 2024
5d3c719
Fix logos in login page
bodhish Dec 18, 2024
ba16ea2
Hide occupancy
bodhish Dec 18, 2024
6691441
Add Appointments Tab
gigincg Dec 18, 2024
1a21311
minor: paste support for OTP, skip verification for valid token with …
Jacobjeevan Dec 19, 2024
b0ecc62
debounce valueset searches; correct wordings and scroll issues; depre…
rithviknishad Dec 20, 2024
f12a27e
medication request enhancement
rithviknishad Dec 20, 2024
6a859c8
WIP: OTPPatient Router, switch otp to react form etc
Jacobjeevan Dec 20, 2024
6a41e31
Replace consultation form
bodhish Dec 20, 2024
2a2c09b
appointments misc. cleanups
rithviknishad Dec 20, 2024
3e926ab
integrate schedule exceptions API
rithviknishad Dec 20, 2024
16f1331
Clean up encounter form
bodhish Dec 21, 2024
b50cbcf
Add encounter route
bodhish Dec 21, 2024
b79daaf
WIP v2: OTP appointments flow
Jacobjeevan Dec 21, 2024
7f6fe60
minor tweaks
Jacobjeevan Dec 21, 2024
d29b13c
Hide options when encounter class is not selected
bodhish Dec 21, 2024
bf6330a
fix issues with schedule exceptions listing and deletes
rithviknishad Dec 21, 2024
1b118f7
added patient switcher support
Jacobjeevan Dec 21, 2024
457da44
Rename resource request to request #9525
bodhish Dec 21, 2024
ef30f7a
Appointments: switch to card, styling, clean up
Jacobjeevan Dec 21, 2024
25b3aec
Rename resource request to request #9525
bodhish Dec 21, 2024
2582637
WIP: OTP Appointments flow
Jacobjeevan Dec 21, 2024
e2d02b6
Cleanup unsed assets
bodhish Dec 22, 2024
5b83a6e
appointments: fix issue with timezone; board height when empty; i18n
rithviknishad Dec 22, 2024
e3c8571
appointments: availability heatmap, slots group by name, and other im…
rithviknishad Dec 22, 2024
595450d
fix UserSpec's avatar url attribute key, cleanup appointment routes, …
rithviknishad Dec 22, 2024
dbba8da
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
Jacobjeevan Dec 23, 2024
698befa
appointments: sort slots and slot groups by their start time
rithviknishad Dec 23, 2024
26dc260
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
Jacobjeevan Dec 23, 2024
e0c8889
appointments: cleanup routes; fix born undefined issue; wip: show det…
rithviknishad Dec 23, 2024
47b21d1
wip: minor fixes, additions
Jacobjeevan Dec 23, 2024
46bf5ed
Add a description field to facility
bodhish Dec 23, 2024
f5411d8
Add NGO and CBO to Facility Type; Fixes #9529
rithviknishad Dec 24, 2024
22eee90
Appointments: (WIP) filter by slots
rithviknishad Dec 24, 2024
67b6d03
medication request: add site
rithviknishad Dec 24, 2024
9bbaed4
minor fixes: otp flow
Jacobjeevan Dec 24, 2024
2203a25
appointments filters and kill switch; wip; checkpoint before deleting…
rithviknishad Dec 24, 2024
35e0725
New Patient Search and Register UI (#9400)
shivankacker Dec 24, 2024
d2c94a0
Styles fixes
bodhish Dec 24, 2024
b6103b1
Resource form adjustments; translations
Jacobjeevan Dec 24, 2024
572cdae
scheduling: remove `resource_type` as per recent API changes
rithviknishad Dec 24, 2024
a370cfe
Fix filters
bodhish Dec 24, 2024
7bf3bca
Add organisation page
bodhish Dec 25, 2024
421bfa2
fix icon usage causing build to fail
rithviknishad Dec 25, 2024
cc737e4
Clena up org
bodhish Dec 25, 2024
52956f5
Add a OrganisationSelector
bodhish Dec 25, 2024
2acd106
Appointments: Save token as image
rithviknishad Dec 25, 2024
6a56d9b
Org Selector for Patient Registration
gigincg Dec 25, 2024
fb5407e
Appointments: Support for changing status
rithviknishad Dec 25, 2024
b196362
Add geo_org to Request
gigincg Dec 25, 2024
8ca7a57
fix edge case showing 0 hours for slot duration, improve action butto…
rithviknishad Dec 25, 2024
157e523
Change type for organisation
bodhish Dec 25, 2024
664b217
appointments: wire filter by practicioner, date, search, improved slo…
rithviknishad Dec 25, 2024
9a28652
fix schedule appointment link and scrollable section for too many slo…
rithviknishad Dec 25, 2024
1f5cd90
Style organisation selector
bodhish Dec 25, 2024
9d1fc9a
List parents in org
bodhish Dec 25, 2024
03a5ca0
Remove create org button
bodhish Dec 25, 2024
bf64f6f
Fix export button styling on shifting and resource page and facility …
shivankacker Dec 25, 2024
9295643
Add support to add and remove organisation roles
bodhish Dec 25, 2024
2594908
schedule: prevent creation of schedules without weekdays or sessions
rithviknishad Dec 26, 2024
4517cf0
Add support DateTime in Questionnaire
gigincg Dec 26, 2024
9b7f390
Clean up
bodhish Dec 25, 2024
3b746f4
Add org form to otp flow
bodhish Dec 26, 2024
46e9ef3
Appointments list view
Jacobjeevan Dec 26, 2024
57f7c0e
Patient registration form: react hook forms, and minor tweaks
Jacobjeevan Dec 26, 2024
4dcd431
Added medication statement question (#9528)
khavinshankar Dec 27, 2024
e042651
Clean up facility create and remove kasp
bodhish Dec 27, 2024
79afe4e
otp patient registration: switching backing to dateformfield
Jacobjeevan Dec 27, 2024
c297b92
file renaming and some tweaks
Jacobjeevan Dec 27, 2024
e4a9060
minor fixes/tweaks
Jacobjeevan Dec 27, 2024
317e792
more tweaks, renaming, added dialog for patient appointments
Jacobjeevan Dec 27, 2024
b075970
Add observation plots
bodhish Dec 27, 2024
96cd29e
Clean up patient create
bodhish Dec 27, 2024
85a80bc
Replace sidebar
bodhish Dec 27, 2024
eb249fd
Wire new api for encounter
bodhish Dec 28, 2024
92202c5
configurable plots
rithviknishad Dec 28, 2024
27a064c
Add an option to verify
bodhish Dec 28, 2024
55636a6
Merge branch 'form-field-v1' into rithviknishad/plots
rithviknishad Dec 28, 2024
37757af
Merge branch 'rithviknishad/plots' into form-field-v1
rithviknishad Dec 28, 2024
3e89df5
Clean up patient transfer
bodhish Dec 28, 2024
38e0dfa
Fix sidebar logic
bodhish Dec 28, 2024
95a5107
add plots: abg, resp support, nutrition, dialysis
rithviknishad Dec 28, 2024
c01598d
remove invesgtigations and dialysis tab
rithviknishad Dec 28, 2024
bb745c2
fixed facility sidebar redirection
nihal467 Dec 28, 2024
896d6b5
fixed facility sidebar redirection
nihal467 Dec 28, 2024
ffa11d4
Merge branch 'form-field-v1' of https://github.com/ohcnetwork/care_fe…
nihal467 Dec 28, 2024
988570c
Remove setSelectedFacility prop from FacilitySwitcher in AppSidebar c…
rithviknishad Dec 28, 2024
4e53924
Add new encounter page
bodhish Dec 28, 2024
45483b6
fix encounter not getting created
rithviknishad Dec 28, 2024
8236465
remove unused files
rithviknishad Dec 28, 2024
531abb2
fix profile redirect not working from sidebar
rithviknishad Dec 28, 2024
efbbe48
Wire active encounters in verify page
bodhish Dec 28, 2024
894bfb6
fix asset route
rithviknishad Dec 28, 2024
11e9d0a
WIP: new sidebar integration for patient
Jacobjeevan Dec 28, 2024
b744ce4
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
rithviknishad Dec 28, 2024
dd98155
fix facility view patients
rithviknishad Dec 28, 2024
3c869f4
Add encounter create page
bodhish Dec 28, 2024
adbab3c
add tabs to encounter show
rithviknishad Dec 28, 2024
bb0d545
fix nav link
rithviknishad Dec 28, 2024
25426fe
Add facility organisation page
bodhish Dec 28, 2024
5980ee1
fix things in updates
rithviknishad Dec 28, 2024
5dd612c
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
rithviknishad Dec 28, 2024
7cd29ca
Update url for encounter
bodhish Dec 28, 2024
3b19fde
sidebar and router tweaks
Jacobjeevan Dec 28, 2024
0dedb10
nav mobile adjustments
Jacobjeevan Dec 28, 2024
bd2a3bc
Add organisation create
bodhish Dec 28, 2024
e923e43
Change api for facility users
bodhish Dec 28, 2024
a6c11e1
Fix file uplaods
bodhish Dec 28, 2024
7d01e4e
Fix encounter form buttons
bodhish Dec 28, 2024
fcc808f
Wire encounterId to encounter question
bodhish Dec 28, 2024
cfcdfc8
Add encounter update form to form builder
bodhish Dec 28, 2024
8a8ba38
Add status history to encounterQgst
bodhish Dec 28, 2024
ca75575
Render encounter form in encounter update tab
bodhish Dec 28, 2024
213777b
fixed selection issue in the autocomplete popover
khavinshankar Dec 29, 2024
27f663f
Update the query key for cache invalidation
bodhish Dec 29, 2024
3cdbfad
Add encounters page
bodhish Dec 29, 2024
b40a676
Add facility switcher
bodhish Dec 29, 2024
bb81159
Hide border color in sidebar
bodhish Dec 29, 2024
147fb3e
Rebuild sidebar to suport org switching
bodhish Dec 29, 2024
cc7b3f7
Clean up patient search page
bodhish Dec 29, 2024
8ad3e86
Style fixes for title
bodhish Dec 29, 2024
9b8e634
Improve styles for verify patient page
bodhish Dec 29, 2024
b21c5ed
Update redirect in patient create
bodhish Dec 29, 2024
44e1a97
Clean up api request for loading question responses
bodhish Dec 29, 2024
a7b76e9
Remove sidebar close trigger
bodhish Dec 29, 2024
91eb525
Clean up patients
bodhish Dec 29, 2024
27b1a4b
encounter files
Jacobjeevan Dec 29, 2024
1f11a16
Add discharged status to encounter list
bodhish Dec 29, 2024
d903755
Add option to link organization to encounter
bodhish Dec 29, 2024
67635f7
Add option to add and remove oganizations from encounter
bodhish Dec 29, 2024
4fd5c2b
Hide more routes
bodhish Dec 29, 2024
1d014dd
Clean up facility index
bodhish Dec 29, 2024
1552609
Update types for resource request
bodhish Dec 29, 2024
e9385c1
add missing package and fixed type error
rithviknishad Dec 30, 2024
23eb6e9
Revert "add missing package and fixed type error"
rithviknishad Dec 30, 2024
51957a7
Wired the components in Consultation Medication Tab with latest FHIR …
khavinshankar Dec 30, 2024
f23241e
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
rithviknishad Dec 30, 2024
216730e
update dob fields
rithviknishad Dec 30, 2024
65ea0c5
add sign out button in user dashboard
rithviknishad Dec 30, 2024
f6e58ef
file styling tweaks
Jacobjeevan Dec 30, 2024
fc5599b
remove old sidebar
rithviknishad Dec 30, 2024
5cfd511
fix imports
rithviknishad Dec 30, 2024
7fb179c
hide neuro, pressure sore and nursing
rithviknishad Dec 30, 2024
00b1e8a
switch to sonner for notifications
rithviknishad Dec 30, 2024
f636e93
updated the type of medication_request's dosage_instruction
khavinshankar Dec 30, 2024
d66c8db
Wire patient user apis
bodhish Dec 30, 2024
5bf7d38
Add phonenumber to patient users
bodhish Dec 30, 2024
6da2d4f
use sonner notification
rithviknishad Dec 30, 2024
9c1e72c
missing translation in encounter
nihal467 Dec 30, 2024
7ad89a4
Merge branch 'form-field-v1' of https://github.com/ohcnetwork/care_fe…
nihal467 Dec 30, 2024
322953d
Let users create facilites
bodhish Dec 30, 2024
0f1c906
Add facility list
bodhish Dec 30, 2024
82c434a
fix click issue in user sheet
rithviknishad Dec 30, 2024
1602e79
Added more priority options in the encounters tab dropdown
nihal467 Dec 30, 2024
c7a2167
Merge branch 'form-field-v1' of https://github.com/ohcnetwork/care_fe…
nihal467 Dec 30, 2024
266507a
update lockfile
rithviknishad Dec 30, 2024
aae2eca
Change user type
bodhish Dec 30, 2024
f5445bd
Update package lock
bodhish Dec 30, 2024
5e30050
Use outline variant (#9611)
yash-learner Dec 30, 2024
7592bcd
Add Facility Type
gigincg Dec 30, 2024
3eceb3a
Change user type in add users
bodhish Dec 30, 2024
d9e7d79
use `UserSelect`
rithviknishad Dec 30, 2024
5187082
Facility create: switch to react hook form, mobile styling
Jacobjeevan Dec 30, 2024
ea06ea4
schedule no longer requires home facility
rithviknishad Dec 30, 2024
2567f4d
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
rithviknishad Dec 30, 2024
c1a17ae
make UserSelector handle data fetching
rithviknishad Dec 30, 2024
4b9d333
uninstall pnotify
rithviknishad Dec 30, 2024
3d59158
Contains Hacks; User Types
gigincg Dec 30, 2024
59728cc
Add user selector to link user sheet
rithviknishad Dec 30, 2024
3f2d28f
Add organization patient page
bodhish Dec 30, 2024
a38cda0
fix search filter in user selector
rithviknishad Dec 30, 2024
090cff9
Make encounter responsive on mobile (#9614)
yash-learner Dec 30, 2024
0dd1b2d
add missing translation for class history
nihal467 Dec 30, 2024
0356c13
choice question: handle repeats
rithviknishad Dec 30, 2024
b8bdfa5
fixed medication statement creation and improved the list table with …
khavinshankar Dec 30, 2024
aa5de89
Create Add Edit Form
gigincg Dec 30, 2024
62b60b4
Add facility pages for organisation
bodhish Dec 30, 2024
0a48b25
scheduleable users
Jacobjeevan Dec 30, 2024
3fa6e45
scheduleable user
Jacobjeevan Dec 30, 2024
402f965
Merge branch 'develop' into form-field-v1
rithviknishad Dec 30, 2024
40b7faf
Merge branch 'form-field-v1' of github.com:ohcnetwork/care_fe into fo…
rithviknishad Dec 30, 2024
e324cf6
fix build failures
rithviknishad Dec 30, 2024
e840ff2
Refactor facility routes and update cover image handling
bodhish Dec 30, 2024
a237805
Update lock
bodhish Dec 30, 2024
ac52bfe
Add Facility Form
gigincg Dec 30, 2024
65574a7
switching to userbase for user list and user detail; rrm useraddEditform
Jacobjeevan Dec 30, 2024
035d294
undo createuserform changes
Jacobjeevan Dec 30, 2024
d672cad
seamlessly open link user post add user
rithviknishad Dec 30, 2024
d5856fd
add create user for facility org; open link user post create
rithviknishad Dec 30, 2024
e11b6a6
blood group unknown and patient age registration fix
Jacobjeevan Dec 30, 2024
f5d654b
Refactor OrganizationFacilities component layout and add Note type de…
bodhish Dec 30, 2024
f2916b3
Create a new facility show page
bodhish Dec 30, 2024
872d667
Reduce height for cards in facility page
bodhish Dec 30, 2024
293e715
Refactor FacilityHome component layout by replacing Page with a div a…
bodhish Dec 30, 2024
534df8c
Clean up types
bodhish Dec 30, 2024
ad84046
Add search and pagination to organization
bodhish Dec 30, 2024
8abffc9
Enhance sidebar navigation and improve FacilityOrganizationView with …
bodhish Dec 30, 2024
8ac481f
fix profile pic not shown in link user to org
rithviknishad Dec 31, 2024
4f1b74b
add profile pic to missing avatar components
rithviknishad Dec 31, 2024
f012942
fix signout and auth state management
rithviknishad Dec 31, 2024
587e5ca
landing page and facilities listing
Jacobjeevan Dec 31, 2024
e23edce
Remove weekly working hours and video connect link fields from Create…
bodhish Dec 31, 2024
b20e167
make users page responsive
rithviknishad Dec 31, 2024
ea19afa
fix login redirect for app router
rithviknishad Dec 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ General Guidelines

- Care uses TanStack Query for data fetching from the API along with query and mutate utilities for the queryFn and mutationFn. (Docs @ /Utils/request/README.md)
- APIs are defined in the api.tsx file.
- Use raviger for routing.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ REACT_APP_COVER_IMAGE_ALT=https://cdn.ohc.network/care_logo.svg
REACT_PUBLIC_URL=https://care.ohc.network

# Care API URL without the /api prefix
REACT_CARE_API_URL=https://careapi.ohc.network
REACT_CARE_API_URL=https://care-api.do.ohc.network

# Dev envs
ESLINT_NO_DEV_ERRORS=true
Expand Down
7 changes: 1 addition & 6 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ REACT_SENTRY_DSN=
# Sentry environment (default: staging)
REACT_SENTRY_ENVIRONMENT=

# KASP settings
REACT_KASP_ENABLED=true
REACT_KASP_STRING=KASP
REACT_KASP_FULL_STRING=Karunya Arogya Suraksha Padhathi

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

Expand All @@ -79,4 +74,4 @@ REACT_JWT_TOKEN_REFRESH_INTERVAL=
REACT_MIN_ENCOUNTER_DATE=

# 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"
REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ cypress/fixtures/token.json
# Care Apps
/apps/*
src/pluginMap.ts
/apps_backup/*
/apps_backup/*

# Federation Temp files
/.__mf__temp
32 changes: 21 additions & 11 deletions care.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ interface ILogo {
dark: string;
}

const boolean = (key: string, fallback = false) => {
if (env[key] === "true") return true;
if (env[key] === "false") return false;
return fallback;
};

const logo = (value?: string, fallback?: ILogo) => {
if (!value) {
return fallback;
Expand All @@ -13,10 +19,10 @@ const logo = (value?: string, fallback?: ILogo) => {
try {
return JSON.parse(value) as ILogo;
} catch {
// TODO: define vite plugin to validate care.config.ts during build step
return fallback;
}
};

const careConfig = {
apiUrl: env.REACT_CARE_API_URL,

Expand Down Expand Up @@ -51,19 +57,12 @@ const careConfig = {
reCaptchaSiteKey:
env.REACT_RECAPTCHA_SITE_KEY || "6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN",

kasp: {
enabled: env.REACT_KASP_ENABLED === "true",
string: env.REACT_KASP_STRING || "KASP",
fullString:
env.REACT_KASP_FULL_STRING || "Karunya Arogya Suraksha Padhathi",
},

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

wartimeShifting: env.REACT_WARTIME_SHIFTING === "true",
wartimeShifting: boolean("REACT_WARTIME_SHIFTING"),

stillWatching: {
idleTimeout: env.REACT_STILL_WATCHING_IDLE_TIMEOUT
Expand Down Expand Up @@ -97,11 +96,19 @@ const careConfig = {
},

hcx: {
enabled: env.REACT_ENABLE_HCX === "true",
enabled: boolean("REACT_ENABLE_HCX"),
},

abdm: {
enabled: (env.REACT_ENABLE_ABDM ?? "true") === "true",
enabled: boolean("REACT_ENABLE_ABDM", true),
},

appointments: {
// Kill switch in-case the heatmap API doesn't scale as expected
useAvailabilityStatsAPI: boolean(
"REACT_APPOINTMENTS_USE_AVAILABILITY_STATS_API",
true,
),
},

careApps: env.REACT_ENABLED_APPS
Expand All @@ -110,6 +117,9 @@ const careConfig = {
package: app.split("@")[0],
}))
: [],

plotsConfigUrl:
env.REACT_OBSERVATION_PLOTS_CONFIG_URL || "/config/plots.json",
} as const;

export default careConfig;
5 changes: 2 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build]
publish = "build/"
publish = "build"
command = "CI='' npm run build"

[build.environment]
NODE_VERSION = "20.12.0"
NPM_FLAGS = "--legacy-peer-deps"
NODE_VERSION = "22.11.0"
sainak marked this conversation as resolved.
Show resolved Hide resolved
NODE_OPTIONS = "--max_old_space_size=4096"

[[redirects]]
Expand Down
Loading
Loading