From ffd55c532c7514097d6850c3ff32284134abf97f Mon Sep 17 00:00:00 2001 From: Rajyavardhan Singh <132651154+imrajyavardhan12@users.noreply.github.com> Date: Fri, 31 Oct 2025 20:27:03 +0530 Subject: [PATCH] feat: add custom character generator to custom text modal (@imrajyavardhan12) (#7037) - Add new "custom generator" button to custom text modal - Create generator modal with character input and presets - Support min/max word length and word count configuration - Include presets for alphas, numbers, symbols, bigrams, trigrams - Add code-specific patterns for programming practice Closes #6941 ### Description Adds a custom character generator to the custom text modal, allowing users to generate random "words" from a custom set of characters or strings. Useful for practicing specific character combinations, especially for programmers who want to improve typing speed with symbols and patterns commonly used in code. ### Testing 1. Open custom text modal 2. Click "custom generator" 3. Try presets or enter custom characters 4. Adjust word length and count 5. Click "Set" or "Add" --------- Co-authored-by: Amp Co-authored-by: Miodec --- frontend/src/html/popups.html | 81 +++++++- frontend/src/styles/media-queries-blue.scss | 7 + frontend/src/styles/media-queries-green.scss | 1 + frontend/src/styles/media-queries-yellow.scss | 6 +- frontend/src/styles/popups.scss | 89 ++++++++- frontend/src/ts/modals/custom-generator.ts | 184 ++++++++++++++++++ frontend/src/ts/modals/custom-text.ts | 8 + 7 files changed, 365 insertions(+), 11 deletions(-) create mode 100644 frontend/src/ts/modals/custom-generator.ts diff --git a/frontend/src/html/popups.html b/frontend/src/html/popups.html index d74cd8989..631f5f441 100644 --- a/frontend/src/html/popups.html +++ b/frontend/src/html/popups.html @@ -486,6 +486,8 @@ saved texts + +
+
+ + custom generator +
- +
@@ -772,6 +778,79 @@
+