improvement: UI/UX improved for v1 standalone treatments/cases feature.
This commit is contained in:
@@ -12,6 +12,8 @@ import {
|
||||
labTaskStatusVariant,
|
||||
} from '@/components/lab/labTaskStatusDisplay';
|
||||
import { LabCaseDueDateBadge } from '@/components/lab/LabCaseDueDateBadge';
|
||||
import { LabCaseOriginBadge } from '@/components/ui/lab/LabCaseOriginBadge';
|
||||
import { isLabGeneratedCase } from '@/components/lab/labCaseOrigin';
|
||||
import { formatAppDate, APP_DATE } from '@/lib/i18n/format';
|
||||
import { notifyTabBadgesChanged } from '@/lib/tabBadgeUtils';
|
||||
import {
|
||||
@@ -153,6 +155,9 @@ export function TaskRow({
|
||||
{t('importantBadge')}
|
||||
</Badge>
|
||||
) : null}
|
||||
{flatMode && !exiting ? (
|
||||
<LabCaseOriginBadge origin={task.origin} className="text-[10px]" />
|
||||
) : null}
|
||||
{flatMode && task.caseDueDate && !exiting ? (
|
||||
<LabCaseDueDateBadge
|
||||
dueDate={task.caseDueDate}
|
||||
@@ -220,6 +225,7 @@ export function TaskRow({
|
||||
viewerSide="LAB"
|
||||
canPost
|
||||
canToggleVisibility
|
||||
clinicVisibility={!isLabGeneratedCase(task.origin)}
|
||||
loadComments={async () => {
|
||||
const r = await tasksApi.listComments(task.labCaseId);
|
||||
return r.data;
|
||||
|
||||
Reference in New Issue
Block a user