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

medplum / medplum / 23955263694
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-8755-b09bd46d1cb28858fcfa8969a15d9d09435e165e
DEFAULT BRANCH: main
Ran 03 Apr 2026 05:45PM UTC
Jobs 1
Files 762
Run time 2min
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

03 Apr 2026 05:13PM UTC coverage: 91.952% (-0.03%) from 91.984%
23955263694

push

github

web-flow
feat(app): Add Tenants tab to Patient page (#8775)

* feat(app): Add Tenants tab to Patient page for managing multi-tenant assignments

Adds a new "Tenants" tab on the Patient resource page that displays current
`meta.accounts` and allows admins to add/remove Organization, HealthcareService,
or CareTeam tenant assignments. Changes are shown as a diff before saving, with
a confirmation modal and optional compartment propagation via `$set-accounts`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: maddyli <maddy@medplum.com>

* [autofix.ci] apply automated fixes

Signed-off-by: maddyli <maddy@medplum.com>

* fix: Address PR review feedback on Tenants tab

- Type TENANT_TARGET_TYPES as ResourceType[] (techdavidy)
- Guard against missing patient.id instead of unsafe cast (techdavidy)
- Invalidate patient cache and call onSaved callback after successful save
  to refresh state (claude[bot] state sync analysis)
- Add onSaved prop to PatientTenantsForm for parent-driven refresh
- TenantsPage uses navigate(0) to force full re-fetch after save

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: maddyli <maddy@medplum.com>

* refactor: Rename Tenants tab and components to Accounts

Renames all "Tenant" references to "Account" throughout:
- PatientTenantsForm -> PatientAccountsForm
- TenantsPage -> AccountsPage
- Tab label: "Tenants" -> "Accounts"
- Route: /tenants -> /accounts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: maddyli <maddy@medplum.com>

* fix: Fix test failures in PatientAccountsForm and AccountsPage

- Remove test dependency on createResourceIfNoneExist with explicit ID
- Use getByRole for button assertions instead of getByText (spans)
- Add MantineProvider wrapper for modal rendering in jsdom
- Add keepMounted to Modal for test compatibility
- Fix $set-accounts spy assertions to match actual call signature
- Fix TypeScript error with HeadersInit indexing

Co-Authored-By: Claude... (continued)

18133 of 20647 branches covered (87.82%)

Branch coverage included in aggregate %.

64 of 80 new or added lines in 3 files covered. (80.0%)

32924 of 34879 relevant lines covered (94.39%)

14379.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
75.68
packages/react/src/PatientAccountsForm/PatientAccountsForm.tsx
1
91.67
packages/app/src/resource/AccountsPage.tsx
Jobs
ID Job ID Ran Files Coverage
1 23955263694.1 03 Apr 2026 05:45PM UTC 762
91.95
GitHub Action Run
Source Files on build 23955263694
  • Tree
  • List 762
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • beb90f91 on github
  • Prev Build on gh-readonly-queue/main/pr-7769-ceef3ed787e5e111d7dd86702eae7a59aa14216b (#23955263177)
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