-
Notifications
You must be signed in to change notification settings - Fork 1.1k
add patient filter to token queue #16103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ export const ServicePointsDropDown = () => { | |
| const [isOpen, setIsOpen] = useState(false); | ||
| const { assignedServicePointIds, allServicePoints, toggleServicePoint } = | ||
| useQueueServicePoints(); | ||
| const defaultServicePoints = useBreakpoints({ default: 2, sm: 6 }); | ||
| const defaultServicePoints = useBreakpoints({ default: 4, sm: 6 }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed-width chips plus higher default count can overflow mobile layouts. Line 21 increases visible chips to 4 by default, and Line 54 forces each chip to Proposed fix- const defaultServicePoints = useBreakpoints({ default: 4, sm: 6 });
+ const defaultServicePoints = useBreakpoints({ default: 2, sm: 4 });
- <div className="flex w-full sm:w-auto gap-1 rounded-r-none border border-r-0 border-gray-300 rounded-l-md p-1 bg-white">
+ <div className="flex w-full sm:w-auto gap-1 rounded-r-none border border-r-0 border-gray-300 rounded-l-md p-1 bg-white overflow-x-auto">
- className="flex w-48 items-center justify-center gap-1 border border-gray-300 py-0.5 px-1.5 rounded-sm bg-gray-50 whitespace-nowrap"
+ className="flex min-w-0 max-w-48 items-center justify-center gap-1 border border-gray-300 py-0.5 px-1.5 rounded-sm bg-gray-50"Also applies to: 38-38, 54-57 🤖 Prompt for AI Agents |
||
|
|
||
| if (!allServicePoints) { | ||
| return ( | ||
|
|
@@ -35,7 +35,7 @@ export const ServicePointsDropDown = () => { | |
|
|
||
| return ( | ||
| <div className="flex"> | ||
| <div className="flex gap-1 rounded-r-none border border-r-0 border-gray-300 rounded-l-md p-1.5 bg-white items-center justify-center"> | ||
| <div className="flex w-full sm:w-auto gap-1 rounded-r-none border border-r-0 border-gray-300 rounded-l-md p-1 bg-white"> | ||
| {assignedServicePointIds.length === 0 ? ( | ||
| <span className="text-sm font-medium"> | ||
| {t("assign_service_points")} | ||
|
|
@@ -51,10 +51,10 @@ export const ServicePointsDropDown = () => { | |
| return ( | ||
| <div | ||
| key={subQueue.id} | ||
| className="flex items-center justify-center gap-1 border border-gray-300 py-0.5 px-1.5 rounded-sm bg-gray-50 whitespace-nowrap" | ||
| className="flex w-48 items-center justify-center gap-1 border border-gray-300 py-0.5 px-1.5 rounded-sm bg-gray-50 whitespace-nowrap" | ||
| > | ||
| <div className="bg-primary-200 border border-primary-500 w-2 h-2 rounded-full" /> | ||
| <span className="text-sm text-gray-950 font-medium"> | ||
| <span className="text-sm text-gray-950 font-medium truncate"> | ||
| {subQueue.name} | ||
| </span> | ||
| </div> | ||
|
|
@@ -75,7 +75,7 @@ export const ServicePointsDropDown = () => { | |
| <DropdownMenuTrigger asChild> | ||
| <Button | ||
| variant="ghost" | ||
| className="rounded-l-none w-10 h-11 border border-gray-300 bg-white" | ||
| className="rounded-l-none w-10 h-9 border border-gray-300 bg-white" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Loading state height no longer matches the final trigger button height. Line 78 uses Proposed fix- <Skeleton className="h-11 w-40 rounded-r-none rounded-l-md" />
- <Skeleton className="h-11 w-10 rounded-l-none rounded-r-md" />
+ <Skeleton className="h-9 w-40 rounded-r-none rounded-l-md" />
+ <Skeleton className="h-9 w-10 rounded-l-none rounded-r-md" />🤖 Prompt for AI Agents |
||
| > | ||
| <ChevronDownIcon /> | ||
| </Button> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid storing patient names in URL query params (PHI exposure risk).
Line 99 persists
patient_namein the URL. In a healthcare flow, this can leak PHI via history, logs, analytics, and shared links. Keep onlypatient_filterin query params; keep display name in local state.Proposed fix
Also applies to: 94-107, 112-113
🤖 Prompt for AI Agents