diff --git a/scripts/rtl-baseline.json b/scripts/rtl-baseline.json index f4c88162..5d74abc0 100644 --- a/scripts/rtl-baseline.json +++ b/scripts/rtl-baseline.json @@ -1,11 +1,5 @@ { "src/components/AGGrid/EnhancedCellRenderers.tsx": 2, - "src/components/AI/AIChatModal.tsx": 7, - "src/components/AI/HeyOzwell/OzwellSettingsMenu.tsx": 1, - "src/components/AI/HeyOzwell/VisitScribe.tsx": 2, - "src/components/AI/HeyOzwell/VoiceManager.tsx": 1, - "src/components/AI/HeyOzwell/VoiceSetup.tsx": 1, - "src/components/AI/Reconciliation.tsx": 1, "src/components/AddContactModal/AddContactModal.tsx": 2, "src/components/AdditionalFields/AdditionalFields.tsx": 2, "src/components/Alert/Alert.tsx": 4, @@ -62,12 +56,6 @@ "src/components/MediaEditor/ScriptPanel.tsx": 2, "src/components/MediaEditor/SpeedMarkerMenu.tsx": 2, "src/components/MedicationList/MedicationList.tsx": 1, - "src/components/Messaging/AttachmentPicker.tsx": 3, - "src/components/Messaging/ConversationHeader.tsx": 4, - "src/components/Messaging/MessageBubble.tsx": 7, - "src/components/Messaging/MessageComposer.tsx": 7, - "src/components/Messaging/MessageList.tsx": 4, - "src/components/Messaging/MessageThread.tsx": 2, "src/components/OnboardingWizard/OnboardingWizard.tsx": 6, "src/components/OrderCard/OrderCard.tsx": 2, "src/components/OrderConfirmationWizard/OrderConfirmationWizard.tsx": 5, diff --git a/src/components/AI/AIChatModal.tsx b/src/components/AI/AIChatModal.tsx index dc8fa9ed..83af0538 100644 --- a/src/components/AI/AIChatModal.tsx +++ b/src/components/AI/AIChatModal.tsx @@ -25,8 +25,16 @@ export interface AIChatTriggerProps { pulse?: boolean; /** Badge count for notifications */ badge?: number; - /** Position of the button */ - position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'; + /** Position of the button. `start`/`end` aliases are direction-aware (RTL). */ + position?: + | 'bottom-right' + | 'bottom-left' + | 'top-right' + | 'top-left' + | 'bottom-end' + | 'bottom-start' + | 'top-end' + | 'top-start'; /** Additional class name */ className?: string; } @@ -40,10 +48,14 @@ export function AIChatTrigger({ className, }: AIChatTriggerProps) { const positionClasses = { - 'bottom-right': 'bottom-4 right-4', - 'bottom-left': 'bottom-4 left-4', - 'top-right': 'top-4 right-4', - 'top-left': 'top-4 left-4', + 'bottom-right': 'bottom-4 end-4', + 'bottom-left': 'bottom-4 start-4', + 'top-right': 'top-4 end-4', + 'top-left': 'top-4 start-4', + 'bottom-end': 'bottom-4 end-4', + 'bottom-start': 'bottom-4 start-4', + 'top-end': 'top-4 end-4', + 'top-start': 'top-4 start-4', }; return ( @@ -72,7 +84,7 @@ export function AIChatTrigger({ {badge && badge > 0 && ( {badge > 9 ? '9+' : badge} @@ -96,8 +108,13 @@ export interface AIChatModalProps extends Omit< open: boolean; /** Callback when the modal should close */ onOpenChange: (open: boolean) => void; - /** Position of the modal */ - position?: 'bottom-right' | 'bottom-left' | 'center'; + /** Position of the modal. `start`/`end` aliases are direction-aware (RTL). */ + position?: + | 'bottom-right' + | 'bottom-left' + | 'bottom-end' + | 'bottom-start' + | 'center'; /** Width of the modal */ width?: string | number; /** Height of the modal */ @@ -129,8 +146,10 @@ export function AIChatModal({ if (!open) return null; const positionClasses = { - 'bottom-right': 'bottom-20 right-4', - 'bottom-left': 'bottom-20 left-4', + 'bottom-right': 'bottom-20 end-4', + 'bottom-left': 'bottom-20 start-4', + 'bottom-end': 'bottom-20 end-4', + 'bottom-start': 'bottom-20 start-4', center: 'top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2', }; diff --git a/src/components/AI/HeyOzwell/OzwellSettingsMenu.tsx b/src/components/AI/HeyOzwell/OzwellSettingsMenu.tsx index 603a6f72..4c41c417 100644 --- a/src/components/AI/HeyOzwell/OzwellSettingsMenu.tsx +++ b/src/components/AI/HeyOzwell/OzwellSettingsMenu.tsx @@ -43,7 +43,7 @@ function ItemLabel({ label, sub }: { label: string; sub: string }) { /** DropdownItem's default-variant classes, reused by the custom collapsible row for visual parity. */ const itemClasses = cn( - 'flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm', + 'flex w-full items-center gap-3 rounded-lg px-3 py-2 text-start text-sm', 'transition-colors duration-150 focus:outline-none', 'text-neutral-700 dark:text-neutral-300', 'hover:bg-neutral-100 dark:hover:bg-neutral-700', diff --git a/src/components/AI/HeyOzwell/VisitScribe.tsx b/src/components/AI/HeyOzwell/VisitScribe.tsx index 806764e5..c3e1a52f 100644 --- a/src/components/AI/HeyOzwell/VisitScribe.tsx +++ b/src/components/AI/HeyOzwell/VisitScribe.tsx @@ -220,7 +220,7 @@ export function VisitScribe({ {recording ? (