tweak(timezone): multi timezone testing fixes#9231
tweak(timezone): multi timezone testing fixes#9231dannash100 wants to merge 242 commits intomainfrom
Conversation
Core infrastructure for timezone-aware date/time formatting across the application. Changes: - Add timezone-aware format functions to @tamanu/utils/dateTime - Create DateTimeContext in ui-components for consistent formatting - Update DateDisplay component to use context-based formatting - Add timeZone setting to facility schema - Expose timezone settings via server APIs for patient portal - Add reflect-metadata for mobile TypeORM compatibility
…a-2585-datetime-foundation
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…a-2585-datetime-foundation
…a-2585-datetime-foundation
Introduce withDateTimeContext HOC and useDateTimeFormat hook for PDF components to ensure consistent timezone-aware date formatting across all printouts. - Add formatInTz utility for explicit format string patterns - Create self-contained PDF date context to avoid React instance conflicts - Migrate all printout components from getDisplayDate to context-based formatters - Update patientAccessors and labRequestAccessors to accept formatters - Replace time-only formats with formatTime where applicable
…-pdf-timezone-formatting
Integrate DateTimeContext from ui-components across all web components. Changes: - Add DateTimeProvider wrapper in Root.jsx - Update all date display components to use useDateTimeFormat hook - Migrate from direct date-fns calls to context-based formatters - Update forms, views, and tables for consistent timezone handling
…ocationBookingDrawer.jsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
tweak(dateTime): Fix some errors on multiple timzone epic
…e-epic merge: main into timezone epic
…-timezone tweak: epic merge tweaks timezone
* i like this one * wikid wikid * ya * yayer * yayer * yayer * better comment * ya * ya ok * remove comments * ya * ay bay bay * mo mo mo * mo mo mo * momomo * ya * dont think we ever need these * uhuh * country timezone ya dig * this thing aint used * had to do it to em * ill probably end up renaming to getCurrentDateTimeStringForPersist or sumthing * funky todo * oh yeah * all accounted for * ya * oopsie * edge cases * sure ting * last edgecases I think thats it! * fixed they rekon * ok * gottem * gottem * gottem * ya * this kinda bung ill go bvak over this * yeah? * i love it * try * move around providers * ladies and gentlemen eddy on the keys 🎵 * interestingly we want initial value for date only fields to be facility time zone - as we are saving it as is for facility date time * nasty case * man thats a nasty case need to think about that if it comes up agian * ok this is improvemnt i think cud work wit that * bruh * couple todos * ya * im a genius * another 1 * ga ga gottem * these ones shud be date only it seem * one more * i shud do the migrations * found a date that goes nowhere * tweakin * that works * think this broke cd * roll that back for now too * gottem * roll these bak for this pr * oh ya gottem * ya * comments * ya * hack for now * ok * ya mo * ya * ya * yes son * use util here * ta * ya * mo * simplify * ya? * sure * yeh aight * type gottem * are u happy bugbot * gottem * heck yeah 8-) * 3am merge challenge (gone wrong) * ya * boy oh boy * yer.... * yeah ok * yeah rd * sure * ya ok * ya * bugbot * ill come back to this one * nice catches * small catch * another ting * refactor * this could be cleaner * mabye gud? * ya * ya wip' * ya * wip * mo * mo * mo * ya * ya * mo" * mo" * closer' * closer' * major cleanup * major cleanup * missed two * actuly no need this in some case * thatl do * gud catch * gud catch * gud catch * thatl do * safe guard * safe guard * safe guard * safe guard * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * rename * rename * rename * rename * rename * rename * rename * rename * rename * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya
* ya * oopsie * edge cases * sure ting * last edgecases I think thats it! * fixed they rekon * ok * gottem * gottem * gottem * ya * this kinda bung ill go bvak over this * yeah? * i love it * try * move around providers * ladies and gentlemen eddy on the keys 🎵 * interestingly we want initial value for date only fields to be facility time zone - as we are saving it as is for facility date time * nasty case * man thats a nasty case need to think about that if it comes up agian * ok this is improvemnt i think cud work wit that * bruh * couple todos * ya * im a genius * another 1 * ga ga gottem * these ones shud be date only it seem * one more * i shud do the migrations * found a date that goes nowhere * tweakin * that works * think this broke cd * roll that back for now too * gottem * roll these bak for this pr * oh ya gottem * ya * comments * ya * hack for now * ok * ya mo * ya * ya * yes son * use util here * ta * ya * mo * simplify * ya? * sure * yeh aight * type gottem * are u happy bugbot * gottem * heck yeah 8-) * 3am merge challenge (gone wrong) * ya * boy oh boy * yer.... * yeah ok * yeah rd * sure * fix concept of today in date selector * is that right or am i tripping * ladies and gentlemen we gottem * YES * looking fine as heck * ya ok * ya * ya * ya * ya * ya * ya * ya * ya * ya * wee tweak * bugbot * ill come back to this one * nice catches * nice catches * small catch * another ting * fix this * another spot * another edge case shiet * Mar edge cases * cleaner * works now * missed spot * missed spot * another one * another 1 * cleanups * ya * cleanup * ya * ya * ya * nice 1 * lint and more cleanups * twak * refactor * this could be cleaner * mabye gud? * ok * ok * ya * ya * ya wip' * ya * wip * mo * mo * mo * ya * ya * mo" * mo" * closer' * closer' * major cleanup * major cleanup * ya * ya * missed two * actuly no need this in some case * thatl do * gud catch * gud catch * gud catch * thatl do * safe guard * safe guard * safe guard * safe guard * safe guard * safe guard * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * rename * rename * rename * rename * rename * remove changing listing endpoints too much * rename * rename * rename * rename * rename * rename * rename * rename * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * works * works * works * Mar all working by looks of it * make countryTimeZone non optional * fix to local * fix to local * QA fixes * QA fixes * clean up * more cleanup * ok is that it? * last tweak i rekon * last tweak i rekon * last tweak i rekon * ok is that it? * qa * ya * unused stuff * last tweak i rekon * yaya * remove log * add da T * sneaky gottem * when the gottems come out sizlin * when the gottems come out sizlin * when the gottems come out sizlin * sneaky gottem
…sential/tamanu into epic-multiple-timezones
…9153) * move around providers * ladies and gentlemen eddy on the keys 🎵 * interestingly we want initial value for date only fields to be facility time zone - as we are saving it as is for facility date time * nasty case * man thats a nasty case need to think about that if it comes up agian * ok this is improvemnt i think cud work wit that * bruh * couple todos * ya * im a genius * another 1 * ga ga gottem * these ones shud be date only it seem * one more * i shud do the migrations * found a date that goes nowhere * tweakin * that works * think this broke cd * roll that back for now too * gottem * roll these bak for this pr * oh ya gottem * ya * comments * ya * hack for now * ok * ya mo * ya * ya * yes son * use util here * ta * ya * mo * simplify * ya? * sure * yeh aight * type gottem * are u happy bugbot * gottem * heck yeah 8-) * 3am merge challenge (gone wrong) * ya * boy oh boy * yer.... * yeah ok * yeah rd * sure * fix concept of today in date selector * is that right or am i tripping * ladies and gentlemen we gottem * YES * looking fine as heck * ya ok * ya * ya * ya * ya * ya * ya * ya * ya * ya * wee tweak * bugbot * ill come back to this one * nice catches * nice catches * small catch * another ting * fix this * another spot * another edge case shiet * Mar edge cases * cleaner * works now * missed spot * missed spot * another one * another 1 * cleanups * ya * cleanup * ya * ya * ya * nice 1 * lint and more cleanups * twak * refactor * this could be cleaner * mabye gud? * ok * ok * ya * ya * ya wip' * ya * wip * mo * mo * mo * ya * ya * mo" * mo" * closer' * closer' * major cleanup * major cleanup * ya * ya * missed two * actuly no need this in some case * thatl do * gud catch * gud catch * gud catch * thatl do * safe guard * safe guard * safe guard * safe guard * safe guard * safe guard * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * thatl do * rename * rename * rename * rename * rename * remove changing listing endpoints too much * rename * rename * rename * rename * rename * rename * rename * rename * rename * rename * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * ya * works * works * works * Mar all working by looks of it * make countryTimeZone non optional * to primary * fix to local * fix to local * QA fixes * QA fixes * clean up * more cleanup * ok is that it? * last tweak i rekon * last tweak i rekon * last tweak i rekon * ok is that it? * ok is that it? * qa * ya * unused stuff * last tweak i rekon * yaya * ya * ya * Mo * ya ok
…ntl available options (#9185) * make facilityTimeZone an autocomplete * nice * ya good call
* cleanups * cleanups * feat(web): SAV-1091: Display Id QR code scanner (#9163) * mvp * styles * improve validation * Update QRCodeSearchField.jsx * @zxing/browser * Update package-lock.json * merge: 2.49 into main (#9192) * release: Cut-off for release/2.49 * fix(notes): HOTFIX-2.49: Filter out system notes (#9146) refactor: Extract NON_EDITABLE_NOTE_TYPES constant and filter system/mobile notes Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Thomas Codling <tcodling@users.noreply.github.com> * fix(translations): PHX-303: Update medication label translations 2.49 hotfix (#9151) fix(translations): PHX-303: Update medication label translations (and more) (#9125) * Simplify * Include type information for reference data so it can be properly translated in frontend * Properly include variable in styled component * Add missing dependencies * Properly retrieve string ID for enums * Wrap functions in callbacks and memo to get a stable reference * Update order to group returns --------- Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> * fix: Release 2.49: Remove Invoice Price Lists Error (#9154) * Update InvoicePriceList.ts * Update invoicePriceListMatching.test.ts * fix(mobile): Release fix 2.49 :AutocompleteModalField empty on selection (#9157) fix(mobile): TAMOC-389 AutocompleteModalField empty on selection (#9131) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * fix: Release 2.49: Update lab invoicing setting (#9158) * add SAMPLE_NOT_COLLECTED to lab invoicing * Update EncounterInvoice.test.js * Update EncounterInvoice.test.js * Update EncounterInvoice.test.js * fix: Hotfix v2.49: Medication logic changes (#9141) * Merge pull request #9127 from beyondessential/fix-release-2-48-medication-timezone-issues fix: Release 2.48: Medication timezone issues * fix(mobile): TAMOC-389: 2.48 fix: AutocompleteModalField empty on selection (#9130) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak * decrement ongoing repeats on send to pharmacy * mark as completed on dispense * show remaining repeats * quantity label * Update PharmacyOrderMedicationTable.jsx * show correct remiainging number * Update PharmacyOrderMedicationTable.jsx * active encounter copy * Update medication.js * Update medication.js * tooltip * Update PharmacyOrderMedicationTable.jsx * Update MedicationForm.jsx * Update PharmacyOrderMedicationTable.jsx * Update MedicationDetails.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update Medication.test.js * dispense testing * import ongoing tests * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update fake.ts * Update PharmacyOrderMedicationTable.jsx * swap checkbox for note * Update PharmacyOrderMedicationTable.jsx * checkbox styling * Update MedicationForm.jsx * Update DischargeForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update medication.js * Update medication.js * Update medication.js * dry up hacky funciton * fix permissions * Update medication.js * Update PharmacyOrderModal.jsx * Update patient.js * Update medication.js * better function name * fix * Update medication.js * invalidated test * dead code * use source prescription id * remove unused args * Revert "remove unused args" This reverts commit 15e6fd4. * Revert "use source prescription id" This reverts commit ec45043. * Update packages/web/app/components/Medication/PharmacyOrderMedicationTable.jsx Co-authored-by: Tom Caiger <caigertom@gmail.com> * simplifications from tom c --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> * fix: v2.49: Directly link PharmacyOrderPrescriptions to its original ongoing prescription (#9160) * Merge pull request #9127 from beyondessential/fix-release-2-48-medication-timezone-issues fix: Release 2.48: Medication timezone issues * fix(mobile): TAMOC-389: 2.48 fix: AutocompleteModalField empty on selection (#9130) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak * decrement ongoing repeats on send to pharmacy * mark as completed on dispense * show remaining repeats * quantity label * Update PharmacyOrderMedicationTable.jsx * show correct remiainging number * Update PharmacyOrderMedicationTable.jsx * active encounter copy * Update medication.js * Update medication.js * tooltip * Update PharmacyOrderMedicationTable.jsx * Update MedicationForm.jsx * Update PharmacyOrderMedicationTable.jsx * Update MedicationDetails.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update Medication.test.js * dispense testing * import ongoing tests * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update fake.ts * Update PharmacyOrderMedicationTable.jsx * swap checkbox for note * Update PharmacyOrderMedicationTable.jsx * checkbox styling * Update MedicationForm.jsx * Update DischargeForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update medication.js * Update medication.js * Update medication.js * dry up hacky funciton * fix permissions * Update medication.js * Update PharmacyOrderModal.jsx * Update patient.js * Update medication.js * better function name * fix * Update medication.js * invalidated test * dead code * use source prescription id * remove unused args * Revert "remove unused args" This reverts commit 15e6fd4. * Revert "use source prescription id" This reverts commit ec45043. * lik pop to ongoing This reverts commit 7ce73ee. * Delete 1769850000001-backfillSourcePrescriptionIdOnPharmacyOrderPrescriptions.ts * Update medication.js * Update packages/web/app/components/Medication/PharmacyOrderMedicationTable.jsx Co-authored-by: Tom Caiger <caigertom@gmail.com> * simplifications from tom c * better name * Update pharmacy_order_prescriptions.md --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> * fix(medications): no-issue: Disabled checkbox bug (#9164) * Update DispenseMedicationWorkflowModal.jsx * Update DispenseMedicationWorkflowModal.jsx * fix(encounters): Release v2.49: Missing modal declaration (#9162) * Update EncounterActions.jsx * lost discharge check * fix(medication): v2.49: Use frequency value for comparison instead of translated label (#9167) * correct frequency submission * Update MedicationForm.jsx * simplify util and move single use into component * Update FrequencySearchField.tsx * Update medications.jsx * fix(translation): PHX-303: Translate medication name (#9171) * Pass translated name for the medication * Create helper function to encapsulate logic Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> * Remove unused import * Add medication du ration units to be translatable enums Co-authored-by: Cursor Bugbot <bugbot@cursor.com>' --------- Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> * feat(invoicing): SAV-1129: Invoice UI updates (#9178) * ui tweaks * Update InvoicesTable.jsx * sort * Update InvoiceItem.jsx * Update InvoiceDetails.jsx * feat(invoicing): SAV-1129: Invoice UI Tweaks (#9183) * refactor utils * invoice summary * Update InvoicesTable.jsx * js doc * Update patientInvoice.js * fix(medication): no-issue: Design fixes (#9173) * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * correct quantity label * show proper validation * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update MedicationForm.jsx * fix(medications): release 2.49: Use correct submit handler (#9187) Update PharmacyOrderModal.jsx * fix: Release 2.49: Show correct repeats on pharmacy orders (#9190) show correct repeats --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Thomas Codling <tcodling@users.noreply.github.com> Co-authored-by: Luis Emilio Navarro <60558370+NavarroEmilioLuis@users.noreply.github.com> Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> * remove headers * test(e2e): Fixes for release 2.49 E2E tests (into main) (#9196) * release: Cut-off for release/2.49 * fix(notes): HOTFIX-2.49: Filter out system notes (#9146) refactor: Extract NON_EDITABLE_NOTE_TYPES constant and filter system/mobile notes Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Thomas Codling <tcodling@users.noreply.github.com> * fix(translations): PHX-303: Update medication label translations 2.49 hotfix (#9151) fix(translations): PHX-303: Update medication label translations (and more) (#9125) * Simplify * Include type information for reference data so it can be properly translated in frontend * Properly include variable in styled component * Add missing dependencies * Properly retrieve string ID for enums * Wrap functions in callbacks and memo to get a stable reference * Update order to group returns --------- Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> * fix: Release 2.49: Remove Invoice Price Lists Error (#9154) * Update InvoicePriceList.ts * Update invoicePriceListMatching.test.ts * fix(mobile): Release fix 2.49 :AutocompleteModalField empty on selection (#9157) fix(mobile): TAMOC-389 AutocompleteModalField empty on selection (#9131) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * fix: Release 2.49: Update lab invoicing setting (#9158) * add SAMPLE_NOT_COLLECTED to lab invoicing * Update EncounterInvoice.test.js * Update EncounterInvoice.test.js * Update EncounterInvoice.test.js * fix: Hotfix v2.49: Medication logic changes (#9141) * Merge pull request #9127 from beyondessential/fix-release-2-48-medication-timezone-issues fix: Release 2.48: Medication timezone issues * fix(mobile): TAMOC-389: 2.48 fix: AutocompleteModalField empty on selection (#9130) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak * decrement ongoing repeats on send to pharmacy * mark as completed on dispense * show remaining repeats * quantity label * Update PharmacyOrderMedicationTable.jsx * show correct remiainging number * Update PharmacyOrderMedicationTable.jsx * active encounter copy * Update medication.js * Update medication.js * tooltip * Update PharmacyOrderMedicationTable.jsx * Update MedicationForm.jsx * Update PharmacyOrderMedicationTable.jsx * Update MedicationDetails.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update Medication.test.js * dispense testing * import ongoing tests * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update fake.ts * Update PharmacyOrderMedicationTable.jsx * swap checkbox for note * Update PharmacyOrderMedicationTable.jsx * checkbox styling * Update MedicationForm.jsx * Update DischargeForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update medication.js * Update medication.js * Update medication.js * dry up hacky funciton * fix permissions * Update medication.js * Update PharmacyOrderModal.jsx * Update patient.js * Update medication.js * better function name * fix * Update medication.js * invalidated test * dead code * use source prescription id * remove unused args * Revert "remove unused args" This reverts commit 15e6fd4. * Revert "use source prescription id" This reverts commit ec45043. * Update packages/web/app/components/Medication/PharmacyOrderMedicationTable.jsx Co-authored-by: Tom Caiger <caigertom@gmail.com> * simplifications from tom c --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> * fix: v2.49: Directly link PharmacyOrderPrescriptions to its original ongoing prescription (#9160) * Merge pull request #9127 from beyondessential/fix-release-2-48-medication-timezone-issues fix: Release 2.48: Medication timezone issues * fix(mobile): TAMOC-389: 2.48 fix: AutocompleteModalField empty on selection (#9130) * fix(mobile): TAMOC-389: 2.47 hotfix: AutocompleteModalField empty on selection (#9114) * fix * fix * ya * ya * ya * Ya * comment bak * decrement ongoing repeats on send to pharmacy * mark as completed on dispense * show remaining repeats * quantity label * Update PharmacyOrderMedicationTable.jsx * show correct remiainging number * Update PharmacyOrderMedicationTable.jsx * active encounter copy * Update medication.js * Update medication.js * tooltip * Update PharmacyOrderMedicationTable.jsx * Update MedicationForm.jsx * Update PharmacyOrderMedicationTable.jsx * Update MedicationDetails.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update Medication.test.js * dispense testing * import ongoing tests * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update Medication.test.js * Update fake.ts * Update PharmacyOrderMedicationTable.jsx * swap checkbox for note * Update PharmacyOrderMedicationTable.jsx * checkbox styling * Update MedicationForm.jsx * Update DischargeForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update MedicationForm.jsx * Update medication.js * Update medication.js * Update medication.js * dry up hacky funciton * fix permissions * Update medication.js * Update PharmacyOrderModal.jsx * Update patient.js * Update medication.js * better function name * fix * Update medication.js * invalidated test * dead code * use source prescription id * remove unused args * Revert "remove unused args" This reverts commit 15e6fd4. * Revert "use source prescription id" This reverts commit ec45043. * lik pop to ongoing This reverts commit 7ce73ee. * Delete 1769850000001-backfillSourcePrescriptionIdOnPharmacyOrderPrescriptions.ts * Update medication.js * Update packages/web/app/components/Medication/PharmacyOrderMedicationTable.jsx Co-authored-by: Tom Caiger <caigertom@gmail.com> * simplifications from tom c * better name * Update pharmacy_order_prescriptions.md --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> * fix(medications): no-issue: Disabled checkbox bug (#9164) * Update DispenseMedicationWorkflowModal.jsx * Update DispenseMedicationWorkflowModal.jsx * fix(encounters): Release v2.49: Missing modal declaration (#9162) * Update EncounterActions.jsx * lost discharge check * fix(medication): v2.49: Use frequency value for comparison instead of translated label (#9167) * correct frequency submission * Update MedicationForm.jsx * simplify util and move single use into component * Update FrequencySearchField.tsx * Update medications.jsx * fix(translation): PHX-303: Translate medication name (#9171) * Pass translated name for the medication * Create helper function to encapsulate logic Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> * Remove unused import * Add medication du ration units to be translatable enums Co-authored-by: Cursor Bugbot <bugbot@cursor.com>' --------- Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> * feat(invoicing): SAV-1129: Invoice UI updates (#9178) * ui tweaks * Update InvoicesTable.jsx * sort * Update InvoiceItem.jsx * Update InvoiceDetails.jsx * feat(invoicing): SAV-1129: Invoice UI Tweaks (#9183) * refactor utils * invoice summary * Update InvoicesTable.jsx * js doc * Update patientInvoice.js * fix(medication): no-issue: Design fixes (#9173) * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderMedicationTable.jsx * correct quantity label * show proper validation * Update PharmacyOrderMedicationTable.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update PharmacyOrderModal.jsx * Update MedicationForm.jsx * fix(medications): release 2.49: Use correct submit handler (#9187) Update PharmacyOrderModal.jsx * fix: Release 2.49: Show correct repeats on pharmacy orders (#9190) show correct repeats * test(e2e): Release 2.49 E2E tests (#9142) * Add E2E.md for PR against release branch adding random new file so I can make PR against release branch * Fixing test failures for 2.49 * Removing unused imports from test files * Skipping change diet test * Delete E2E.md before merging --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Thomas Codling <tcodling@users.noreply.github.com> Co-authored-by: Luis Emilio Navarro <60558370+NavarroEmilioLuis@users.noreply.github.com> Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> Co-authored-by: Tom Caiger <caigertom@gmail.com> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> Co-authored-by: sepidehdehghani992 <sepideh@bes.au> * release: Bump version to 2.51.0 * merge conflicts * updates * last tweaks --------- Co-authored-by: Tom Caiger <caigertom@gmail.com> Co-authored-by: Thomas Codling <58054247+tcodling@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Thomas Codling <tcodling@users.noreply.github.com> Co-authored-by: Luis Emilio Navarro <60558370+NavarroEmilioLuis@users.noreply.github.com> Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> Co-authored-by: Gemini Code Assist <gemini-code-assist@google.com> Co-authored-by: sepidehdehghani992 <sepideh@bes.au>
Merge main into multiple-timezone-epic
Summary of ChangesHello @dannash100, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines date handling within the application, specifically targeting the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the VaccineForm to handle timezone differences for vaccine dates in edit mode. It applies trimToDate to the existing date value to ensure only the date portion is used, which helps prevent issues when converting between timezones. The changes are confined to VaccineForm.jsx and appear to correctly address the issue.
|
🦸 Review Hero Summary |
Changes
Add a brief description of the changes in this PR to help give the reviewer context.
Deploys
Tests
Review Hero
Remember to...