From 6c7d541f311d39844d2f909857429d34c138c7fc Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 06:15:03 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20Clear=20Rating?= =?UTF-8?q?=20button=20and=20fix=20localization=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added an accessible "Clear Rating" button (✕) to the personal rating section in GameDetailHeader to allow unsetting ratings. - Corrected the English translation for "Platforms" (was "Plateformes"). - Added localized strings for "Clear Rating" in English and French. - Fixed a TypeScript error in GameScreenshotsCarousel causing build failures. - Ensured proper accessibility with aria-labels and tooltips. Co-authored-by: Gamepulse <8333979+Gamepulse@users.noreply.github.com> --- .Jules/palette.md | 7 +++++++ src/components/Library/GameDetailHeader.tsx | 15 ++++++++++++++- .../Library/GameScreenshotsCarousel.tsx | 2 -- src/i18n/translations.ts | 4 +++- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..bced613 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,7 @@ +## 2025-05-15 - [UX Pattern: Range Input Null State] +**Learning:** Native HTML range inputs (``) cannot represent a `null` or "unset" state as they always default to a value (usually the minimum). +**Action:** Provide a separate "Clear" or "Reset" button next to numeric range controls to allow users to explicitly unset the value. + +## 2025-05-15 - [Accessibility: Icon-only Buttons] +**Learning:** Icon-only buttons containing text emojis (e.g., ✕) can be confusing for screen readers if the emoji is not hidden and a proper label is not provided. +**Action:** Wrap text emojis in `