Improve Blocked Words UX and Real-Time Engine Filtering
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Domínio
- mobile-dev
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Kotlin
- Estrelas
- 1k
- Forks
- 59
- Merge médio
- 13h 11min
- PRs com merge (30d)
- 47
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de LeanBitLab/LeanType
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
LeanBitLab/LeanType#713 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
LeanBitLab/LeanType#423 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Crush ReportAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 20/100
LeanBitLab/LeanType#715 ·
Mantenedores costumam responder em até 1 dia
-
Text Expander/cursor-handling bugTalvez já em andamento @LeanBitLab assumiu há 2 dias. Abertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
LeanBitLab/LeanType#703 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
LeanBitLab/LeanType#699 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de LeanBitLab/LeanType
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
apache/cassandra-easy-stress#112 ·
-
afk-ok area:data-quality importer size:S
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
enorm-labs/event-junkie#3767 ·
Mantenedores costumam responder em até 1 dia
-
[Resource]: CrewforthAbertaresource-submission validation-passed
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
hesreallyhim/awesome-claude-code#3201 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
software-mansion/starknet-jvm#641 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
leboncoin/spark-android#2342 ·
Mantenedores costumam responder em até 1 dia