Skip to content
Draft
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
79ad661
feat: add Patient Medications and Diagnostic Reports pages with navig…
abhimanyurajeesh Jul 30, 2026
605f469
A lot of changes
bodhish Jul 30, 2026
8352e5c
style(design): FINDING-001 — normalise patient portal typography onto…
bodhish Jul 30, 2026
461d81e
style(design): FINDING-002 — meet the 44px minimum touch target
bodhish Jul 30, 2026
70afec5
style(design): FINDING-002b — raise appointment card actions to 44px
bodhish Jul 30, 2026
9a562b1
More clean up
bodhish Jul 30, 2026
756c054
More design fixes
bodhish Jul 30, 2026
da12f46
Fix routes
bodhish Jul 30, 2026
a5d9117
just a small desktop view, (revert if no like)
abhimanyurajeesh Jul 30, 2026
5b375f8
more desktop fix and few other things
abhimanyurajeesh Jul 31, 2026
6db94da
more layout fix
abhimanyurajeesh Jul 31, 2026
d459856
Merge remote-tracking branch 'upstream/develop' into ENG-831
abhimanyurajeesh Jul 31, 2026
b6d4af4
clean ups
abhimanyurajeesh Jul 31, 2026
1d120d8
Merge branch 'develop' into ENG-831
abhimanyurajeesh Jul 31, 2026
49d6cb6
just clean ups
abhimanyurajeesh Jul 31, 2026
c2617c6
Merge branch 'develop' into ENG-831
abhimanyurajeesh Aug 3, 2026
14a48c0
more clean up
abhimanyurajeesh Aug 3, 2026
d3aec31
more clean up
abhimanyurajeesh Aug 3, 2026
a3bcd11
some more clean up
abhimanyurajeesh Aug 4, 2026
725cf45
Merge branch 'develop' into ENG-831
abhimanyurajeesh Aug 4, 2026
e276f62
little bit more clean up and new ui
abhimanyurajeesh Aug 4, 2026
e241601
fix lint
abhimanyurajeesh Aug 4, 2026
e8138b3
fix tel globally
abhimanyurajeesh Aug 4, 2026
2ca3b42
small thing
abhimanyurajeesh Aug 4, 2026
90fd169
hopefully last commit
abhimanyurajeesh Aug 4, 2026
d46c1c7
one last try to fix the number fill
abhimanyurajeesh Aug 5, 2026
67cc426
Merge remote-tracking branch 'upstream/develop' into ENG-831
abhimanyurajeesh Aug 5, 2026
9325d81
Merge branch 'develop' into ENG-831
abhimanyurajeesh Aug 5, 2026
8643c31
feat: add no appointment history message and handle query error in Ap…
abhimanyurajeesh Aug 6, 2026
d8c2751
feat: clear cached data on sign-out to prevent stale session data
abhimanyurajeesh Aug 6, 2026
b2d5897
feat: reduce patient token freshness duration from 45 to 15 minutes
abhimanyurajeesh Aug 6, 2026
b515fef
Merge branch 'develop' into ENG-831
abhimanyurajeesh Aug 11, 2026
2bee677
feat: add date range filter to patient records and prescriptions
abhimanyurajeesh Aug 11, 2026
31afc7e
Add CCN Beckn referral and appointment booking
Aug 12, 2026
1defbe1
Change to developApi BE
Aug 12, 2026
d890e5e
feat: comment out date range filter and related logic in PatientRecords
abhimanyurajeesh Aug 12, 2026
707a921
remove the date filter file
abhimanyurajeesh Aug 12, 2026
1a1f5b9
Move Beckn confirm to the origin facility
Aug 12, 2026
55b8d44
Show what is actually being confirmed in the Beckn popup
Aug 12, 2026
dfd4283
Merge branch 'ENG-831' into amjithtitus09-ccn-beckn-referral
Aug 12, 2026
228c53a
Add Availability Schedule to select API
Aug 12, 2026
7c07e06
Send the appointment window as performance[] on select
Aug 12, 2026
077ca16
Send a real timestamp for the select availability window
Aug 13, 2026
ddafc71
Add Refer Patient Encounter Action
gigincg Aug 13, 2026
8ddd2de
Merge branch 'amjithtitus09-ccn-beckn-referral' of github.com:ohcnetw…
Aug 13, 2026
9fedb06
Changes in CC Console
Aug 13, 2026
9051ab6
Update the ui
bodhish Aug 13, 2026
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ HEADERS="Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
REACT_RECAPTCHA_SITE_KEY=6LcedK8qAAAAAM2PpuqlqhZUxQpmIqHqluL74dDs

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Do not merge the committed API base URL change.

REACT_CARE_API_URL is the committed default for every developer environment and for the test setup. care.config.ts line 50 returns it as the API base URL for all frontend requests, and tests/globalSetup.ts, tests/helper/utils.ts, and tests/setup/questionnaire.setup.ts all read it.

Changing it to https://develop-api.ohc.network repoints every local run and every CI run at the develop backend.

The PR objectives state that the CCN flow requires a backend with the Beckn BAP module enabled, so the change is understandable for the branch preview. Keep it out of the merged diff. Set the value through the deployment environment or a local .env.local override instead.

As per coding guidelines: "Check corresponding backend endpoint in the care backend repo and update both repos if API changes are needed."

🤖 Prompt for 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.

In @.env at line 12, Revert the REACT_CARE_API_URL change in .env to the
repository’s committed default so care.config.ts and test setup continue using
the standard backend. Configure the develop backend URL only through deployment
environment settings or a local .env.local override, keeping the committed .env
unchanged.

Source: Learnings

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committing the develop API URL into the shared .env? So every dev who pulls this branch silently starts talking to develop-api. This is a preview-only hack in a file that ships to everyone — put it in .env.local/preview config, not here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointing the committed default API URL at develop-api.ohc.network in .env? Congratulations, every fresh clone now silently talks to a dev backend. Even for a preview branch this belongs in a local/preview-only override, not the checked-in default.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committing REACT_CARE_API_URL=(developapi.ohc.network/redacted) to the checked-in .env points every default build at the develop API. Even for a preview branch, this is exactly the kind of change that survives a careless merge and quietly repoints production tooling. Use a preview-specific env override instead.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committing develop-api.ohc.network as the default API URL in .env? That is a shared default for everyone, not your preview branch scratchpad. Use a .env.local or a preview-specific env var before this ever gets near develop.

REACT_SBOM_BASE_URL=https://sbom.ohc.network
Comment on lines 11 to 13

# Default payment terms for invoices
Expand Down
1 change: 0 additions & 1 deletion .github/instructions/hooks.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ applyTo: "src/hooks/**/*.{ts,tsx}"
### Authentication & User Management
- useAuthUser: Current user state and permissions
- usePatientUser: Patient authentication for public appointments
- usePatientSignOut: Secure patient session termination

### Medical Data Management
- useFilters: Medical record filtering and search
Expand Down
26 changes: 24 additions & 2 deletions care.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ const careConfig = {
: undefined),

defaultDischargeDisposition: env.REACT_DEFAULT_DISCHARGE_DISPOSITION as
| EncounterDischargeDisposition
| undefined,
EncounterDischargeDisposition | undefined,

mapFallbackUrlTemplate:
env.REACT_MAPS_FALLBACK_URL_TEMPLATE ||
Expand Down Expand Up @@ -246,6 +245,29 @@ const careConfig = {
? parseInt(env.REACT_APP_RESEND_OTP_TIMEOUT, 10)
: 30,

/**
* Number of digits in the OTP sent for patient login and password reset.
* Must match the backend's `OTP_LENGTH` setting, which defaults to 5.
*/
otpLength: env.REACT_OTP_LENGTH ? parseInt(env.REACT_OTP_LENGTH, 10) : 5,

/**
* How long a patient login token is treated as still valid without hitting
* the API, so a returning patient can skip straight past the OTP screen.
* Must stay under the backend's `PatientToken.lifetime` (currently 1 hour,
* see `config/patient_otp_token.py`) — kept well under to leave a safety
* margin, since the real expiry is only enforced server-side.
*/
patientTokenFreshnessMinutes: env.REACT_PATIENT_TOKEN_FRESHNESS_MINUTES
? parseInt(env.REACT_PATIENT_TOKEN_FRESHNESS_MINUTES, 10)
: 15,

/**
* Health helpline shown to patients who cannot sign in. Deployment specific,
* so the prompt is hidden entirely when this is unset.
*/
patientSupportPhone: env.REACT_PATIENT_SUPPORT_PHONE,

imageUploadMaxSizeInMB: env.REACT_APP_MAX_IMAGE_UPLOAD_SIZE_MB
? parseInt(env.REACT_APP_MAX_IMAGE_UPLOAD_SIZE_MB, 10)
: 2,
Expand Down
146 changes: 146 additions & 0 deletions public/images/care_patient_login.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading