- Stale search results no longer flash during a new search
- Import errors no longer linger after the import finishes
- Search history actions stay visible while scrolling
- Text from other apps now fills the search field in one step
- Refreshed performance profiles
- Updated libraries and build tooling
The screen synced the view model query back into the text field on
every query change. The text field state now owns the text. Typed
edits are pulled up to the view model; history clicks edit the field
state directly, and process-text queries arrive as one-shot events
delivered to the field.
A failed local import left the error in the state flow forever, so the
dictionaries section replayed it as a snackbar on every recomposition
and screens created later picked it up long after the failure. Terminal
import errors now decay to idle after the same grace period as
downloads, unless a newer state has replaced them.
- A numbered series in search results is no longer split by another dictionary
- Search history with many entries now expands to full screen height
- Article line spacing is now consistent
- Improved download error handling
- Improved overall stability
- Updated libraries
Add a reproducible generator for startup, search, article opening and scrolling, search history, the settings and About screens and their dialogs. Replace the hand-written profile with generated release profiles.
Size the sheet to its content with a minimum height and a static full-height
cap. Keep the drag handle below display cutouts and avoid offset-dependent
insets, which can destabilize the sheet anchors. Also drop the trailing period
in the empty dictionary list description.
A failed update left DownloadState.Error in the state flow forever:
settings replayed it as a snackbar on every recomposition and search
stayed locked until the next app start.
A download error stayed in the state flow forever: the dictionaries
section replayed it as a snackbar on every recomposition and screens
created later picked it up long after the failure, even while a newer
download was already running. Error states now decay to idle after the
same grace period as success, unless a newer state has replaced them.
Errors of downloads this screen did not start no longer touch the
status; when the prior status is unknown or still unresolved, today's
persisted status is restored or a fresh evaluation runs instead of
fabricating UpToDate.
Deduplicate matches in the searcher and apply one ordering pass after
merging dictionaries: display length first, then natural numeric-aware
order. Keep numbered series with the same prefix and suffix contiguous
within each dictionary and place numerals before non-numeric characters.
Persist NeedsUpdate with its source ids and restore today's persisted
status — UpToDate and NeedsUpdate alike — through one shared helper used
by both startup paths, falling back to a fresh evaluation when the
persisted status can no longer be trusted (stale date, removed sources,
or the update already installed).
- Search loads all prefix matches; broad prefix searches are much faster
- Fixed indexing progress freezing on large dictionaries
- Large articles open faster
- Numbered results sort in numeric order
- UI improvements
- Updated libraries and build tooling
Report which sources have a newer file instead of a single flag, and
show a Material badge at the top-end corner of each such dictionary's
icon. The section icon carries the badge while the section is
collapsed.
With the search bar at the bottom, offset the results list so the
first result sits on the article title row and the back button
lands under the finger, in single- and two-pane layouts alike.
The source check, folder access and request ran before the first
byte with no visible feedback. Enter the loading state on tap and
show an indeterminate wavy indicator until download progress is
known. File import is unchanged. An early cancel deletes only files
created by the current download, so installed dictionaries survive.
Needed for the expressive wavy progress indicator. Move the sheet
states to rememberBottomSheetState, drop opt-ins for APIs that are
now stable, and read the window height from LocalWindowInfo.
Rows were read via peek(), which gives Paging no access hints, so
prefix matches beyond the first page never loaded. Drop the head/tail
paging: a query reads the whole prefix range of every active
dictionary in one scan, merges and ranks it, and hands Paging a single
page. The append error row and its strings go away; the prefix scan
reuses search() with substring matches disabled. FileSource reads
through a buffer, cutting per-entry syscall overhead.
The parse phase estimated progress from a line-count formula that hit
its ceiling early, so the percentage froze on large dictionaries.
Estimate it from the position in the decompressed stream against the
uncompressed size instead.
A fast download reposted the ongoing notification several times per
second. Publish stage changes immediately and rate-limit intermediate
updates to the latest snapshot.
Cover the startup path, per-keystroke search with index reads and
ranking, the dictzip article read, block merge and text warm-up,
and dictionary indexing; they previously ran as JIT-warmed or
interpreted code.
The screen merges small parser blocks into larger render blocks,
while the warm-up measured the unmerged parser blocks. Merge once in
the view model and keep the merged blocks in the article state, so
the screen and the warm-up share exactly what will be drawn.
The warm-up ran only above a block-count threshold, so an article
that parses into one large block never qualified. Trigger on the
total character count as well.
The final ranking tie-break compared headwords lexicographically,
so entries numbered with digits or CJK numerals sorted by text
instead of by number. Compare runs of digits or numeral characters
by their numeric value, saturating on very long runs.
- Added search history
- The search bar can be placed at the top or bottom of the screen
- Fixed headwords with stress marks displaying truncated in search results
- Improved download, indexing and navigation stability
- The About screen opens faster
- Updated build tooling and code cleanup