From 87c1ee63ecde5bd7433b9e3cad09614a3f5c84ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Tue, 2 Dec 2025 01:00:08 +0100 Subject: [PATCH] feat: Add tooltip to star rating and support section updates - Add tooltip to star rating component encouraging users to help curators - Add curator application information to support section - Add bug report email link to support section - All changes localized (de/en) --- app/[locale]/about/page.tsx | 52 +++++++++++++++++++++++++++++++++++++ components/Game.tsx | 6 ++++- messages/de.json | 5 ++++ messages/en.json | 5 ++++ 4 files changed, 67 insertions(+), 1 deletion(-) diff --git a/app/[locale]/about/page.tsx b/app/[locale]/about/page.tsx index a33daea..67c9c3f 100644 --- a/app/[locale]/about/page.tsx +++ b/app/[locale]/about/page.tsx @@ -206,6 +206,58 @@ export default async function AboutPage({ params }: AboutPageProps) {

+
+

+ {t("supportCuratorTitle")} +

+

+ {t("supportCuratorText")} +

+
+
+

+ {t("supportReportBugTitle")} +

+

+ {t.rich("supportReportBugText", { + email: (chunks) => ( + + {chunks} + + ), + })} +

+
diff --git a/components/Game.tsx b/components/Game.tsx index ad42945..d37740c 100644 --- a/components/Game.tsx +++ b/components/Game.tsx @@ -687,7 +687,11 @@ function StarRating({ onRate, hasRated }: { onRate: (rating: number) => void, ha } return ( -
+
{t('rateThisPuzzle')}
{[...Array(5)].map((_, index) => { diff --git a/messages/de.json b/messages/de.json index 098c13b..c7e9605 100644 --- a/messages/de.json +++ b/messages/de.json @@ -47,6 +47,7 @@ "yourBrowserDoesNotSupport": "Ihr Browser unterstützt das Audio-Element nicht.", "thanksForRating": "Danke für die Bewertung!", "rateThisPuzzle": "Bewerte dieses Rätsel:", + "ratingTooltip": "Hilf unseren Kuratoren, gute Rätsel zu machen!", "shared": "✓ Geteilt!", "copied": "✓ Kopiert!", "shareFailed": "✗ Fehlgeschlagen", @@ -179,6 +180,10 @@ "supportPaypalLink": "paypal.me/MBusche", "supportSteadyTitle": "Steady", "supportSteadyDescription": "Regelmäßige Unterstützung über Steady", + "supportCuratorTitle": "Als Kurator bewerben", + "supportCuratorText": "Du hast gute Kenntnisse in einem Genre und möchtest dich als Kurator bewerben? Wir freuen uns über deine Nachricht!", + "supportReportBugTitle": "Fehler melden", + "supportReportBugText": "Fehler in der App gefunden? Bitte melde sie per E-Mail an admin@hoerdle.de.", "privacyTitle": "Datenschutz", "privacyIntro": "Der Schutz deiner Privatsphäre ist wichtig. Dieses Projekt versucht, so datensparsam wie möglich zu arbeiten.", "privacyPlausibleTitle": "Selbst gehostetes Plausible Analytics", diff --git a/messages/en.json b/messages/en.json index 3d93335..c68a43e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -47,6 +47,7 @@ "yourBrowserDoesNotSupport": "Your browser does not support the audio element.", "thanksForRating": "Thanks for rating!", "rateThisPuzzle": "Rate this puzzle:", + "ratingTooltip": "Help our curators create good puzzles!", "shared": "✓ Shared!", "copied": "✓ Copied!", "shareFailed": "✗ Failed", @@ -179,6 +180,10 @@ "supportPaypalLink": "paypal.me/MBusche", "supportSteadyTitle": "Steady", "supportSteadyDescription": "Regular support via Steady", + "supportCuratorTitle": "Apply as Curator", + "supportCuratorText": "Do you have good knowledge in a genre and would like to apply as a curator? We'd be happy to hear from you!", + "supportReportBugTitle": "Report Bugs", + "supportReportBugText": "Found a bug in the app? Please report it via email to admin@hoerdle.de.", "privacyTitle": "Privacy", "privacyIntro": "Protecting your privacy matters. This project aims to collect as little data as possible.", "privacyPlausibleTitle": "Self-hosted Plausible Analytics",