• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scarver2 / ehr-portal / 23572037483
78%

Build:
DEFAULT BRANCH: main
Ran 26 Mar 2026 12:56AM UTC
Jobs 1
Files 43
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2026 12:55AM UTC coverage: 76.554%. Remained the same
23572037483

push

github

web-flow
fix: Update portal GraphQL queries to use clinic field instead of clinicName (#56)

* fix: Update portal GraphQL queries to use clinic field instead of clinicName

Fixed breaking GraphQL query after Provider type refactor from clinicName
string field to clinic association object.

Changes:
- Updated GraphQL queries to request clinic { name } instead of clinicName
- Updated TypeScript type definitions to clinic: { name: string } | null
- Updated all component usages to access clinic?.name with optional chaining
- Updated test mocks to use clinic: { name: "..." } format

Files updated:
- providers/page.tsx: Updated query and component usage
- providers/[id]/page.tsx: Updated query, type, and display logic
- profile/page.tsx: Updated query, type, and display logic
- encounters/[id]/page.tsx: Updated query, type, and provider clinic display
- providers/page.test.tsx: Updated mock data
- providers/[id]/page.test.tsx: Updated mock data and assertions

This resolves the GraphQL error:
  Field 'clinicName' doesn't exist on type 'Provider' (Did you mean 'clinic'?)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* fix: Update e2e test mock data to use clinic field instead of clinicName

Updated mock provider data in e2e global-setup.ts to match the new clinic
object structure instead of clinicName string field.

Changes:
- mockProviders[0]: clinic: { id: '1', name: 'Heart Clinic' }
- mockProviders[1]: clinic: { id: '2', name: 'Brain Center' }

This fixes the e2e test 'displays the clinic name' that was failing
because it couldn't find the clinic text on the page.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>

353 of 493 branches covered (71.6%)

Branch coverage included in aggregate %.

509 of 633 relevant lines covered (80.41%)

18.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23572037483.1 26 Mar 2026 12:56AM UTC 43
76.55
GitHub Action Run
Source Files on build 23572037483
  • Tree
  • List 43
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23572037483
  • c6dd5f24 on github
  • Prev Build on main (#23570424271)
  • Next Build on main (#23600991801)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc