Improve Blocked Words UX and Real-Time Engine Filtering
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Bereich
- mobile-dev
Rechercherichtung
Start by tracing the suggestion-chip long-press and delete-state handling, including the postDelayed timeout and DICTIONARY_USER_TYPED restriction. Then read the engine's raw-input filtering and dictionary reload paths, along with how blacklist .txt files are loaded. Done means only one word's delete control is active until dismissed, typed words can be blacklisted, and blacklisted words are suppressed from both raw input and suggestions.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Current Limitations
- UX Constraints: The delete (bin) icon on suggestion chips disappears automatically after a 3-second timeout (
postDelayed), and it is completely disabled for raw user-typed words (DICTIONARY_USER_TYPED). - Real-time Filtering: Blacklisted words can still appear during active typing because the filter only applies to dictionary suggestions, not the raw input stream.
Proposed Solutions
1. UI & State Management Improvements
- Remove the 3-second timeout (
postDelayed). Ensure that only one word can be in delete mode at a time—long-pressing a new word must instantly clear the bin icon from the previous word. Let the delete state persist until the user taps the bin or interacts elsewhere. - Track a single active delete view state so long-pressing a new word automatically resets the previous one.
- Remove the restriction on
DICTIONARY_USER_TYPEDso users can delete and blacklist any word they type.
2. Engine-Level Filtering with Zero Performance Impact (Caching)
- To prevent heavy file I/O or lag on every keystroke, load the blacklist
.txtfiles into an in-memoryHashSetupon initialization or dictionary reload. - Perform real-time checks against this in-memory
Set(microseconds lookup time). This ensures blacklisted words are completely suppressed from both raw typing and suggestions without adding any performance overhead or lag to the core engine.
- Vorherrschende Sprache
- Kotlin
- Sterne
- 1k
- Forks
- 59
- Ø Merge
- 13 Std. 11 Min.
- Gemergte PRs (30 T.)
- 47
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus LeanBitLab/LeanType
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
LeanBitLab/LeanType#713 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
LeanBitLab/LeanType#423 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Crush ReportOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 20/100
LeanBitLab/LeanType#715 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Text Expander/cursor-handling bugEvtl. vergeben @LeanBitLab hat das vor 2 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
LeanBitLab/LeanType#703 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
LeanBitLab/LeanType#699 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in LeanBitLab/LeanType
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
lugassawan/swe-workbench#823 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
Droid-Deck/DroidDeck#1355 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
IronCoreLabs/ironcore-alloy#351 ·
-
Lovelace refine Taak
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
MinBZK/MijnOverheidZakelijk#1383 ·