From cfbf2c7ed9e0638687fb917a71615042475b8779 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Wed, 20 Aug 2025 17:27:09 +0100 Subject: [PATCH] unused auto rename tooltip --- .../public/locales/en-GB/translation.json | 12 ++++++++++ .../public/locales/en-US/translation.json | 12 ++++++++++ .../components/tooltips/useAutoRenameTips.ts | 23 +++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 frontend/src/components/tooltips/useAutoRenameTips.ts diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index cd499c11d..2275a1e92 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -1325,6 +1325,18 @@ }, "results": { "title": "Auto-Rename Results" + }, + "tooltip": { + "header": { + "title": "How Auto-Rename Works" + }, + "howItWorks": { + "title": "Smart Renaming", + "text": "Automatically finds the best title from your PDF content and uses it as the filename.", + "bullet1": "Looks for text that appears to be a title or heading", + "bullet2": "Creates a clean, valid filename from the detected title", + "bullet3": "Keeps the original name if no suitable title is found" + } } }, "adjust-contrast": { diff --git a/frontend/public/locales/en-US/translation.json b/frontend/public/locales/en-US/translation.json index c95cd568a..8942328f7 100644 --- a/frontend/public/locales/en-US/translation.json +++ b/frontend/public/locales/en-US/translation.json @@ -1052,6 +1052,18 @@ }, "results": { "title": "Auto-Rename Results" + }, + "tooltip": { + "header": { + "title": "How Auto-Rename Works" + }, + "howItWorks": { + "title": "Smart Renaming", + "text": "Automatically finds the best title from your PDF content and uses it as the filename.", + "bullet1": "Looks for text that appears to be a title or heading", + "bullet2": "Creates a clean, valid filename from the detected title", + "bullet3": "Keeps the original name if no suitable title is found" + } } }, "adjust-contrast": { diff --git a/frontend/src/components/tooltips/useAutoRenameTips.ts b/frontend/src/components/tooltips/useAutoRenameTips.ts new file mode 100644 index 000000000..394cb68e3 --- /dev/null +++ b/frontend/src/components/tooltips/useAutoRenameTips.ts @@ -0,0 +1,23 @@ +import { useTranslation } from 'react-i18next'; +import { TooltipContent } from '../../types/tips'; + +export const useAutoRenameTips = (): TooltipContent => { + const { t } = useTranslation(); + + return { + header: { + title: t("auto-rename.tooltip.header.title", "How Auto-Rename Works") + }, + tips: [ + { + title: t("auto-rename.tooltip.howItWorks.title", "Smart Renaming"), + description: t("auto-rename.tooltip.howItWorks.text", "Automatically finds the best title from your PDF content and uses it as the filename."), + bullets: [ + t("auto-rename.tooltip.howItWorks.bullet1", "Looks for text that appears to be a title or heading"), + t("auto-rename.tooltip.howItWorks.bullet2", "Creates a clean, valid filename from the detected title"), + t("auto-rename.tooltip.howItWorks.bullet3", "Keeps the original name if no suitable title is found") + ] + } + ] + }; +}; \ No newline at end of file