From c6ebe215d88d384e76b34b426430653722834111 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Sun, 5 Jul 2026 13:01:45 +0200 Subject: [PATCH 1/8] fix(wikipedia): skip empty sections (@Leonabcd123) (#8162) Prevents the `Random word is empty` error, which doesn't provide any value to the user, as we fetch again until we get valid text. --- frontend/src/ts/test/wikipedia.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/ts/test/wikipedia.ts b/frontend/src/ts/test/wikipedia.ts index af890e5a1c2d..4519d06641eb 100644 --- a/frontend/src/ts/test/wikipedia.ts +++ b/frontend/src/ts/test/wikipedia.ts @@ -100,6 +100,12 @@ export async function getSection( // Removing whitespace before and after text sectionText = sectionText.trim(); + // If this section is empty, fetch another one + if (sectionText === "") { + res(getSection(language)); + return; + } + const words = sectionText.split(" "); const section = new JSONData.Section( From 897769258a4367d2d2cb7c09491df873d62b7c87 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Sun, 5 Jul 2026 15:24:19 +0200 Subject: [PATCH 2/8] refactor: solid streak hour offset modal (@fehmer) (#8196) Co-authored-by: Miodec --- frontend/src/html/popups.html | 28 +-- frontend/src/styles/popups.scss | 38 ---- frontend/src/ts/components/modals/Modals.tsx | 2 + .../modals/StreakHourOffsetModal.tsx | 174 ++++++++++++++++++ .../pages/account-settings/AccountTab.tsx | 4 +- .../ts/components/ui/form/FieldIndicator.tsx | 6 +- .../src/ts/components/ui/form/InputField.tsx | 6 +- frontend/src/ts/modals/streak-hour-offset.ts | 156 ---------------- frontend/src/ts/states/modals.ts | 3 +- 9 files changed, 190 insertions(+), 227 deletions(-) create mode 100644 frontend/src/ts/components/modals/StreakHourOffsetModal.tsx delete mode 100644 frontend/src/ts/modals/streak-hour-offset.ts diff --git a/frontend/src/html/popups.html b/frontend/src/html/popups.html index 3ee31d09cc30..2f920af7ec60 100644 --- a/frontend/src/html/popups.html +++ b/frontend/src/html/popups.html @@ -120,33 +120,7 @@ - +