From ba583fc44839c8efb25916265668118be40af49e Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 2 Mar 2026 14:28:29 -0800 Subject: [PATCH] Attachments: move buttons --- src/apps/chat/components/composer/Composer.tsx | 12 ++++++------ .../attachment-sources}/ButtonAttachCamera.tsx | 0 .../attachment-sources}/ButtonAttachClipboard.tsx | 0 .../attachment-sources}/ButtonAttachGoogleDrive.tsx | 0 .../attachment-sources}/ButtonAttachNewDoc.tsx | 0 .../ButtonAttachScreenCapture.tsx | 0 .../attachment-sources}/ButtonAttachWeb.tsx | 0 .../attachment-sources}/WebInputModal.tsx | 0 8 files changed, 6 insertions(+), 6 deletions(-) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachCamera.tsx (100%) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachClipboard.tsx (100%) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachGoogleDrive.tsx (100%) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachNewDoc.tsx (100%) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachScreenCapture.tsx (100%) rename src/{apps/chat/components/composer/buttons => common/attachment-drafts/attachment-sources}/ButtonAttachWeb.tsx (100%) rename src/{apps/chat/components/composer => common/attachment-drafts/attachment-sources}/WebInputModal.tsx (100%) diff --git a/src/apps/chat/components/composer/Composer.tsx b/src/apps/chat/components/composer/Composer.tsx index a7031d112..945c66345 100644 --- a/src/apps/chat/components/composer/Composer.tsx +++ b/src/apps/chat/components/composer/Composer.tsx @@ -64,11 +64,11 @@ import { useAttachmentDraftsEnrichment } from '~/common/attachment-drafts/llm-en import type { ChatExecuteMode } from '../../execute-mode/execute-mode.types'; import { chatExecuteModeCanAttach, useChatExecuteMode } from '../../execute-mode/useChatExecuteMode'; -import { ButtonAttachCameraMemo } from './buttons/ButtonAttachCamera'; -import { ButtonAttachClipboardMemo } from './buttons/ButtonAttachClipboard'; -import { ButtonAttachGoogleDriveMemo } from './buttons/ButtonAttachGoogleDrive'; -import { ButtonAttachScreenCaptureMemo } from './buttons/ButtonAttachScreenCapture'; -import { ButtonAttachWebMemo } from './buttons/ButtonAttachWeb'; +import { ButtonAttachCameraMemo } from '~/common/attachment-drafts/attachment-sources/ButtonAttachCamera'; +import { ButtonAttachClipboardMemo } from '~/common/attachment-drafts/attachment-sources/ButtonAttachClipboard'; +import { ButtonAttachGoogleDriveMemo } from '~/common/attachment-drafts/attachment-sources/ButtonAttachGoogleDrive'; +import { ButtonAttachScreenCaptureMemo } from '~/common/attachment-drafts/attachment-sources/ButtonAttachScreenCapture'; +import { ButtonAttachWebMemo } from '~/common/attachment-drafts/attachment-sources/ButtonAttachWeb'; import { hasGoogleDriveCapability, useGoogleDrivePicker } from '~/common/attachment-drafts/useGoogleDrivePicker'; import { ButtonBeamMemo } from './buttons/ButtonBeam'; import { ButtonCallMemo } from './buttons/ButtonCall'; @@ -84,7 +84,7 @@ import { TokenBadgeMemo } from './tokens/TokenBadge'; import { TokenProgressbarMemo } from './tokens/TokenProgressbar'; import { useComposerDragDrop } from './useComposerDragDrop'; import { useTextTokenCount } from './tokens/useTextTokenCounter'; -import { useWebInputModal } from './WebInputModal'; +import { useWebInputModal } from '~/common/attachment-drafts/attachment-sources/WebInputModal'; // configuration diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachCamera.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachCamera.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachCamera.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachCamera.tsx diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachClipboard.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachClipboard.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachClipboard.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachClipboard.tsx diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachGoogleDrive.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachGoogleDrive.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachGoogleDrive.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachGoogleDrive.tsx diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachNewDoc.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachNewDoc.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachNewDoc.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachNewDoc.tsx diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachScreenCapture.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachScreenCapture.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachScreenCapture.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachScreenCapture.tsx diff --git a/src/apps/chat/components/composer/buttons/ButtonAttachWeb.tsx b/src/common/attachment-drafts/attachment-sources/ButtonAttachWeb.tsx similarity index 100% rename from src/apps/chat/components/composer/buttons/ButtonAttachWeb.tsx rename to src/common/attachment-drafts/attachment-sources/ButtonAttachWeb.tsx diff --git a/src/apps/chat/components/composer/WebInputModal.tsx b/src/common/attachment-drafts/attachment-sources/WebInputModal.tsx similarity index 100% rename from src/apps/chat/components/composer/WebInputModal.tsx rename to src/common/attachment-drafts/attachment-sources/WebInputModal.tsx