Repository navigation
Description
Context
Follow-up to #120 / #134, based on maintainer feedback after physical DEV acceptance. The current top-level input is dedicated to adding words, while finding existing entries becomes cumbersome as the dictionary grows (already noticeable beyond roughly ten words).
Proposed UX
- Replace the existing add-word input and inline add button with a persistent Material 3 search field above the dictionary list.
- Filter locally as the user types, using case-insensitive substring matching; preserve stored spelling and deterministic ordering. Provide a clear-query action, meaningful accessible label, result count and distinct empty-dictionary/no-results states.
- Move adding a word to a clearly labelled Material 3 floating action button (+), opening a dedicated add dialog consistent with the accepted edit dialog. Final placement must avoid obscuring list rows, system navigation or the IME; adjust bottom content padding/insets accordingly.
- Reuse existing validation (nonempty, single word, <=64 characters), duplicate feedback, persistence and busy-state safeguards. Keep add/edit/remove available with search active; do not silently change the query or stored words. If a mutation makes an item no longer match, update results and give clear operation feedback.
- Preserve query across configuration changes where appropriate; search must never mutate the dictionary or trigger engine reloads for each keystroke. No new dependencies, permissions, network access or engine refactor.
Acceptance criteria
- Search is immediately available regardless of dictionary size; partial and case-insensitive queries work, clear restores full list, no-match and empty states are distinct.
- Dedicated add action and dialog support valid add, cancellation, invalid input and duplicates without regression.
- Editing/removing filtered entries targets the correct word and refreshes the results/count; persistence is unchanged.
- Search and add action remain usable with large lists, long words, large fonts, light/dark themes, screen reader and visible software keyboard; no rows/actions are obscured.
- Automated Compose/instrumentation coverage for search, clear, no matches and filtered mutations; CI, CodeQL, relevant instrumentation and APK privacy checks pass.
- Physical DEV acceptance on a populated dictionary (at least 15–20 synthetic entries), including search, add/edit/remove, cancellation, restart persistence and visual/accessibility checks.
Scope: dedicated UI enhancement PR, separate from completed #120. Exact visual placement of the add action can be refined during implementation/physical testing. No release or merge implied.
Acceptance evidence — 2026-12-01
All acceptance criteria are satisfied on PR #139, tested head c25b51ca9702f1ed22cc4676ee29c2a0e7b8a110.
- CI, CodeQL and instrumentation passed; 211 instrumentation tests, no failures or skips. Both APK privacy checks passed.
- Physical DEV acceptance: maintainer confirmed the full 21-item checklist. Device model and OS build were not recorded; results are maintainer-reported.
Implementation accepted and PR #139 squash-merged into main at 389389b1 with explicit maintainer authorization. All acceptance criteria are satisfied on the tested PR head; post-merge CI is tracked separately. No release is implied.
Activity
feat(dictionary): search entries and separate the add action (#139)
docs: record accepted dictionary search and merge (#140)