Skip to content

feat(dictionary): search entries and separate the add action - #139

Merged
zefutoff merged 2 commits into
mainfrom
feat/issue136-dictionary-search
Dec 1, 2026
Merged

zefutoff merged 2 commits into
mainfrom
feat/issue136-dictionary-search

Conversation

@zefutoff

@zefutoff zefutoff commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Pin a Material 3 search field above the word list, with case-insensitive substring matching, a clear action, result count and distinct empty/no-match states.
  • Add a dedicated, accessible (+) floating action button alongside the search field, without overlaying the word rows. Apply IME insets and resize the dictionary activity for the software keyboard.
  • Share the add/edit dialog presentation and existing validation; keep the query unchanged after add/edit/remove and across activity recreation.
  • Add Compose and activity instrumentation for search, clear, result counts, empty states, filtered mutations, cancellation, validation, duplicate handling and persistence. Update the unreleased changelog.

Why

Refs #136. The existing top-level input is dedicated to adding words, making larger personal dictionaries difficult to navigate. Keep this UI-only change separate from the accepted dictionary editing work in #120/#134.

Android integration paths

  • Application UI / setup

Validation

  • Tests were added or updated where appropriate
  • make check passes — verified in CI
  • make assemble passes — verified in CI
  • Android instrumentation was run when the change affects Android framework behavior — API 26/35/37.0 passed
  • No private or real user text was added as a fixture
  • User-visible changes are reflected in documentation or CHANGELOG.md
  • ADR added or updated if module boundaries, runtime, privacy or integration policy changed — not applicable

Static review: filter computation uses only the existing ordered in-memory list; no engine calls on query changes. Add, edit and remove retain the serialized executor and busy guards. The search field and FAB remain available while scrolling. Physical placement, keyboard behavior and accessibility were subsequently accepted by the maintainer (see below).

Instrumentation failure analysis

Initial head 1222c09f: CI and CodeQL passed; both Debug and unsigned Release APK permission checks passed. The instrumentation run produced one failing legacy accessibility test on each API (26: 60/61 application tests; 35 and 37.0: 62/63 each; spellchecker: 8/8 on each). XML reports confirm that all newly added search and filtered mutation tests passed. The failing test expected the obsolete always-present dictionary-status tag after loading, whereas the count now has a dedicated dictionary-count live region.

Follow-up c25b51ca9702f1ed22cc4676ee29c2a0e7b8a110 waits for the loaded count and checks its polite accessibility semantics, and independently asserts the same live-region semantics on operation feedback. No application code, test exclusions, or CI settings changed. Fresh checks on this head passed.

Final automated validation

Verified head c25b51ca9702f1ed22cc4676ee29c2a0e7b8a110:

  • CI and CodeQL: passed.
  • Android instrumentation: passed. API 26: 61 app + 8 spellchecker; API 35: 63 + 8; API 37.0: 63 + 8. Logs report 211 executed tests, zero failures, errors or skips.
  • The initial API 26 attempt failed before test execution during dependency resolution; rerunning the failed job succeeded without any source, dependency or workflow changes.
  • Debug and unsigned Release APKs both passed the no-INTERNET permission check.

Physical DEV acceptance

Maintainer confirmation on 2026-12-01: all 21 physical checklist items passed on the tested head, including a populated dictionary, search/clear, filtered mutations, validation/cancellation, restart persistence, both themes, large text, long words, IME/scrolling, FAB placement and TalkBack. Device model and OS build were not recorded; results are maintainer-reported, not independently reproduced.

All acceptance gates for #136 are satisfied; merge authorization remains separate.

Privacy

  • The change preserves the offline-only architecture
  • The final APK still declares no android.permission.INTERNET — verified in Debug and unsigned Release APK logs
  • No new sensitive Android permission or data flow was introduced without explicit review

Engine changes

  • Not applicable
  • Grammalecte commit/version updated in tools/grammalecte.env
  • Vendored assets regenerated from source
  • tools/check-vendor.sh passes
  • Regenerated assets are reproducible
  • Regression fixtures cover relevant correction changes

Additional notes

  • CI, CodeQL and relevant Android instrumentation passed on the verified head above.
  • Physical DEV acceptance completed on a populated dictionary; see the dated acceptance record above.
  • The FAB sits next to the pinned search field rather than floating over the bottom of the list; placement accepted in physical testing.
  • Automated results were verified through GitHub Actions logs; physical acceptance was reported by the maintainer.
  • No merge, issue closure or release without explicit authorization; physical acceptance is now recorded.

zefutoff commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Physical DEV acceptance — 2026-12-01

The maintainer explicitly confirmed all 21 physical DEV checklist items on the tested head c25b51ca9702f1ed22cc4676ee29c2a0e7b8a110:

  • Populated dictionary (~20 entries), partial and case-insensitive search, result counts, no matches, clear action and persistent search while scrolling.
  • Add with active query, cancel, empty/invalid/duplicate input, edit/remove filtered entries, query preservation after mutations and restart persistence.
  • Light/dark themes, enlarged fonts, long words, visible keyboard and scrolling, (+) action placement and TalkBack accessibility.

All checklist items were confirmed by the maintainer; device model/OS build and screenshots were not supplied in this acceptance report. Physical results are maintainer-reported, not independently reproduced. CI, CodeQL, all three instrumentation API jobs and both APK privacy checks were independently verified on the same head. No merge or release authorization is inferred from this report.

@zefutoff
zefutoff merged commit 389389b into main Dec 1, 2026
8 of 9 checks passed
@zefutoff
zefutoff deleted the feat/issue136-dictionary-search branch December 1, 2026 22:31
zefutoff added a commit that referenced this pull request Dec 3, 2026
Record the accepted #139 dictionary search, #136 closure, 211 instrumentation tests, physical DEV acceptance and #138 monitoring status. Post-merge #139 CI and CodeQL and documentation PR CI and CodeQL verified successful; both APK privacy checks passed. Documentation only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant