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

medplum / medplum / 22793819583 / 1
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: dep-upgrades-2026-06-08
DEFAULT BRANCH: main
Ran 07 Mar 2026 06:35AM UTC
Files 748
Run time 18s
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%
22793819583.1

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 %.

32351 of 34148 relevant lines covered (94.74%)

15132.86 hits per line

Source Files on job 22793819583.1
  • 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 Build 22793819583
  • d6407c4c on github
  • Prev Job for on gh-readonly-queue/main/pr-8599-b02a9f29e4371af96473bc2495e7b058a80502bf (#22783131062.1)
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