Improve Blocked Words UX and Real-Time Engine Filtering
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- mobile-dev
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Kotlin
- Estrellas
- 1k
- Forks
- 59
- Merge medio
- 13 h 21 min
- PR fusionados (30 d)
- 48
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LeanBitLab/LeanType
-
Voice input fails in browser address bars due to incorrect password field detection (v4.2.9, follow-up to #516)Posiblemente ocupada @LeanBitLab la tomó hace 2 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
LeanBitLab/LeanType#713 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
LeanBitLab/LeanType#423 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add more symbol layoutsAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
LeanBitLab/LeanType#724 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
LeanBitLab/LeanType#723 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
LeanBitLab/LeanType#721 ·
Los mantenedores suelen responder en 1 día
Todos los issues de LeanBitLab/LeanType
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
SimonHalvdansson/Harmonic-HN#399 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
[Request] 李跳跳Abiertorequest-adaption
Dificultad 2/5 Menos de una hora Aptitud para principiantes 78/100
BetterAndroid/android-notification-icon-project#799 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
ProdigyV21/ARVIO#832 ·
Los mantenedores suelen responder en 1 día