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

medplum / medplum / 22793998241
92%

Build:
DEFAULT BRANCH: main
Ran 07 Mar 2026 06:47AM UTC
Jobs 1
Files 748
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

07 Mar 2026 06:26AM UTC coverage: 92.303% (-0.002%) from 92.305%
22793998241

push

github

web-flow
FooMedical Scheduling Demo (#8599)

* Mark `<Scheduler>` props as optional

There are already guards in place to handle usage of this component when
these props are not passed. Let's make the type information reflect
reality by marking these props as optional.

Signed-off-by: Noah Silas <noah@medplum.com>

* Move Schedule.actor fetching into separate effect

This doesn't depend on the current `month` state, so putting this into a
separate effect that runs less frequently is better illustrative of how
things should work.

In practice this is pretty minimal in effect, as the schedule should get
cached by the Medplum client and so re-running the query will be fast on
subsequent renders.

Signed-off-by: Noah Silas <noah@medplum.com>

* Remove a type assertion

Due to its type signature, `isReference()` can't actually be used to
refine a union type of `Resource | Reference<Resource>`. On the other
hand, `isResource()` does work the way we want!

So, by switching our condition here from `isReference(props.schedule)`
to `isResource(props.schedule)`, both branches end up with improved
typing, and we can drop an `as Schedule` typecast.

Signed-off-by: Noah Silas <noah@medplum.com>

* Improve Scheduler practitioner extraction

We had been assuming that a Schedule we get has a single actor of type
Practitioner, and using a typecast to bypass checks. Let's replace that
assumption with something we validate at runtime and in the type
checker.

Signed-off-by: Noah Silas <noah@medplum.com>

* Add new `fetchSlots` prop to Scheduler component

Previously this was being passed in via the `schedule` prop. That has
some complications:
- Requires a lot of  type checking
- Can't provide custom slot fetching (such as $find) while also
  contextualizing with a single practitioner's schedule

Splitting this out into a separate prop will facilitate future
scheduling work.

This is technically a breaking change (passing a function is no longer
accepted in the `schedule` prop), ... (continued)

17821 of 20208 branches covered (88.19%)

Branch coverage included in aggregate %.

16 of 18 new or added lines in 1 file covered. (88.89%)

32351 of 34148 relevant lines covered (94.74%)

15132.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.85
-1.19% packages/react/src/Scheduler/Scheduler.tsx
Jobs
ID Job ID Ran Files Coverage
1 22793998241.1 07 Mar 2026 06:47AM UTC 748
92.3
GitHub Action Run
Source Files on build 22793998241
  • Tree
  • List 748
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • d6407c4c on github
  • Prev Build on gh-readonly-queue/main/pr-8607-fffd1926977ca4d906f751be866c845ce8401aec (#22783131062)
  • Next Build on main (#22806636201)
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