Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.6 KB

File metadata and controls

30 lines (25 loc) · 1.6 KB

Extension v2.3.0 — Synapse DOB fill fix

Extension-only. Replace frontend/public/downloads/MedTask-Companion-unified-extension.zip, commit, then re-extract + reload the unpacked extension (chrome://extensions must show 2.3.0). Chrome will note a new "scripting" permission on reload — that's expected (see below).

Why the DOB stayed empty

First/Last are plain text boxes; the DOB is a date-picker WIDGET whose state lives in the page's own JavaScript world. Our content script runs in an isolated world — its write landed and the widget immediately repainted over it.

Fix

After filling, the content script now VERIFIES the DOB stuck. If not, it messages the background worker, which injects a helper into the page's MAIN world (all frames) and drives the widget through its own API, in order: Kendo DatePicker → Telerik/MS-Ajax RadDatePicker → jQuery mask events → native setter with full event storm. It then re-verifies. Auto-search now only fires when all three fields are VERIFIED, so a half-filled form never searches the wrong thing.

If it still won't stick

The button will toast "the DOB box refused the value" — at that point right-click the DOB box → Inspect → screenshot the highlighted <input ...> element and send it; the widget's exact make will be in its class/id and I'll target it directly.

Test

  1. Reload extension → 2.3.0. Portal → Search Patient → copy patient from a Hub imaging tile → 🩻 Fill from MedTask.
  2. Expect all three fields filled and the search auto-runs.
  3. If DOB fails, expect the explicit toast (not a silent empty box) — send the Inspect screenshot.