fix several requirements for command palette#7366
Open
AykhanAhmadli wants to merge 2 commits intorelease/1.33from
Open
fix several requirements for command palette#7366AykhanAhmadli wants to merge 2 commits intorelease/1.33from
AykhanAhmadli wants to merge 2 commits intorelease/1.33from
Conversation
Contributor
AykhanAhmadli
commented
May 1, 2026
- Palette no longer offers or applies quick picks. Locked follow-ups remain editable, matching existing app behavior.
- Palette no longer offers quick picks while tabs are hidden behind the "Select an intake performer and a provider" alert.
- Verified existing checks correctly suppress global items on their target pages; no duplication.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the EHR command palette behavior so quick picks/templates are only offered and applied when in-person charting is actually available, and suppresses quick-pick actions in read-only contexts (while keeping locked follow-ups editable per existing accessibility rules).
Changes:
- Gate global quick picks + template application behind a new
isChartingAvailablecheck (provider/intake selected as required, and not read-only). - Suppress radiology/immunization command palette quick picks and pending quick-pick application when the appointment is read-only.
- Align quick-pick availability with the “Select an intake performer and a provider” blocking alert state.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/ehr/src/hooks/useGlobalQuickPicks.ts | Adds charting-availability gating for global quick picks and template application using encounter/provider selection and appointment accessibility. |
| apps/ehr/src/features/radiology/pages/CreateRadiologyOrder.tsx | Disables command palette radiology quick picks and ignores pending quick picks when appointment is read-only. |
| apps/ehr/src/features/immunization/pages/ImmunizationOrderCreateEdit.tsx | Disables command palette immunization quick picks and ignores pending quick picks when appointment is read-only. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.