From a31009876ccb519073eaee83194ce0209d6d9f7a Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Wed, 27 Nov 2024 10:19:33 +0100 Subject: [PATCH] [extension] Explicit file names (#8927) --- extension/app/src/hooks/useFileUploaderService.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extension/app/src/hooks/useFileUploaderService.ts b/extension/app/src/hooks/useFileUploaderService.ts index 522fb26720770..ca333d0bf184f 100644 --- a/extension/app/src/hooks/useFileUploaderService.ts +++ b/extension/app/src/hooks/useFileUploaderService.ts @@ -329,8 +329,8 @@ export function useFileUploaderService(conversationId?: string) { const title = findAvailableTitle( includeSelectionOnly - ? `${tabContent.title} (selection)` - : `${tabContent.title}`, + ? `[selection] ${tabContent.title}` + : `[text] ${tabContent.title}`, "txt", existingTitles ); @@ -389,7 +389,11 @@ export function useFileUploaderService(conversationId?: string) { (blob) => new File( [blob], - findAvailableTitle(`${tabContent.title}`, "jpg", existingTitles), + findAvailableTitle( + `[screenshot] ${tabContent.title}`, + "jpg", + existingTitles + ), { type: blob.type, }