From b41ffc58be20dd7ae98db6d29a2bff7ffd6c8dc3 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 9 Sep 2026 23:05:06 +0300 Subject: [PATCH] fix(ui): hide dirty branch warning on mobile Remove the uncommitted-changes tooltip, warning icon, and tooltip timer from mobile draft target triggers. Drop the unused mobile warning props while preserving desktop behavior. Validation: UI type-check and lint passed. Oxlint and dead-code reported existing findings outside the changes. Visual validation was unavailable because the in-app browser timed out. --- packages/ui/src/components/chat/ChatInput.tsx | 2 - .../chat/composer/ui/DraftTargetSelectors.tsx | 39 ++++++------------- 2 files changed, 11 insertions(+), 30 deletions(-) diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index c8f9d157..28531133 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -3322,8 +3322,6 @@ const ChatInputComponent: React.FC = ({ + props: Pick & { onOpenPicker: (picker: 'project' | 'branch') => void }, ) { const { t } = useI18n(); - const { selectedProject, selectedBranchLabel, showBranchSelector, hasUncommittedChanges, announceDirtyState, theme, onOpenPicker } = props; - const dirtyTooltip = useDirtyFlashTooltip(hasUncommittedChanges, announceDirtyState); + const { selectedProject, selectedBranchLabel, showBranchSelector, theme, onOpenPicker } = props; return (
@@ -503,30 +502,14 @@ export function MobileDraftTargetTriggers( {showBranchSelector ? ( - - - - - {hasUncommittedChanges ? ( - - {t('chat.draftDirtyNotice.tooltip')} - - ) : null} - + ) : null}
);