feat: request a tool when home search finds nothing (#385)

Adds a prefilled 'Request a tool' affordance to the home search empty state and beneath weak results. Opens the in-app feedback dialog with a new search_miss source and a structured search_query when analytics is on; links to a prefilled GitHub Discussions (Ideas) post when off, so a request is never silently dropped. Reuses the existing feedback pipe, dialog, and analytics gate; no new storage. i18n across all 21 locales.
This commit is contained in:
SnapOtter
2026-07-01 18:50:55 +08:00
committed by GitHub
parent 174001d384
commit c68297d5a4
32 changed files with 531 additions and 30 deletions
+5
View File
@@ -62,6 +62,9 @@ export const ru: TranslationKeys = {
submit: "Send feedback",
submitting: "Sending...",
submitFailed: "Feedback could not be sent. Please try again.",
searchMissTitle: "Запросить инструмент",
searchMissContext: "Вы искали: {query}",
searchMissDiscussionsFallback: "Не удалось записать. Откройте запрос в Discussions.",
thanksTitle: "Thanks for the feedback.",
thanksDescription: "It helps us improve SnapOtter without collecting files or private content.",
quickThanks: "Thanks for the signal.",
@@ -2948,6 +2951,8 @@ export const ru: TranslationKeys = {
gettingStarted: "Начало работы",
noToolsMatch: "Инструменты по запросу '{query}' не найдены",
clearSearch: "Очистить поиск",
requestToolCta: "Запросить '{query}'",
requestToolBelowResults: "Не нашли? Запросите инструмент",
all: "Все",
documents: "PDF",
data: "Файлы",