Commit Graph
151 Commits
Author SHA1 Message Date
OneWay c8e3312bff perf(profile): regenerate baseline and startup profiles 2026-11-07 22:04:00 +08:00
OneWay 53adde3a95 feat(profile): pass query and reference target through runner arguments 2026-11-07 22:03:00 +08:00
OneWay 8f16160794 refactor(profile): simplify the generator code 2026-11-07 22:02:00 +08:00
OneWay 64b9f06ff0 chore(deps): update the toolchain and dependencies
- Material 3 1.5.0-rc01
- Android Gradle Plugin 9.5.1
- UI Automator 2.4.1
- Gradle wrapper 9.9.0
- Pin the Compose runtime and runtime-tracing debug pair, move
  startup-runtime and tracing-wire into the catalog
2026-11-07 22:01:00 +08:00
OneWay 60e86cac2c fix(profile): decode UTF-16 dictionaries with the correct byte order 2026-11-07 22:00:00 +08:00
OneWay dcae63056c refactor(search): deliver external queries to the field as one-shot events
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.
2026-11-02 16:39:11 +08:00
OneWay 98b23bac48 fix(search): expire stale results after an empty query
Stale rows from an earlier query flashed during the next load.
Clear the cache when a finished query has no results.
2026-11-02 01:33:24 +08:00
OneWay c440fc5024 fix(import): expire the sticky import error state
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.
2026-11-01 21:01:43 +08:00
OneWay f2664e608e Release 1.9.0
- 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
1.9.0
2026-10-28 00:14:17 +08:00
OneWay 98867a2407 fix(history): keep history actions visible while scrolling 2026-10-28 00:14:17 +08:00
OneWay 938d920725 perf(profile): generate baseline and startup profiles
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.
2026-10-28 00:14:17 +08:00
OneWay 85ee7d703b chore(deps): bump the dependency-versions plugin to 0.66.0 2026-10-28 00:02:49 +08:00
OneWay 70a6a06115 chore(deps): bump okhttp to 5.5.1 2026-10-28 00:02:49 +08:00
OneWay 1ad3f623a2 chore(deps): bump material3 to 1.5.0-beta02 2026-10-28 00:02:49 +08:00
OneWay 38901790cd fix(article): keep article line spacing consistent 2026-10-28 00:02:49 +08:00
OneWay cf30a75afc refactor(history): simplify the search history sheet height
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.
2026-10-28 00:02:49 +08:00
OneWay d8b0f38a96 chore(deps): bump Gradle wrapper to 9.8.2 2026-10-21 04:34:31 +08:00
OneWay d92da46fbe chore(deps): bump kotlinx.serialization to 1.12.0 2026-10-21 04:33:24 +08:00
OneWay 3425818237 chore(deps): bump aboutlibraries to 15.3.0 2026-10-15 13:52:00 +08:00
OneWay 4b571b283b chore(deps): bump paging to 3.5.3 2026-10-15 13:41:07 +08:00
OneWay 01d3b3b1be refactor(prefs): create the settings store through DataStore.Builder
The store is now built through DataStore.Builder instead of the
preferencesDataStore delegate.
2026-10-22 21:48:01 +08:00
OneWay 2f451daeac fix(about): survive a licenses parse failure 2026-10-22 21:43:15 +08:00
OneWay b9d3a26797 fix(download): unblock search after a failed update
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.
2026-10-21 04:00:00 +08:00
OneWay dc9e449640 fix(download): expire the sticky error state
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.
2026-10-15 13:38:00 +08:00
OneWay c859486586 fix(settings): keep the update badge after a failed download
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.
2026-10-15 13:34:09 +08:00
OneWay f92d0588bd fix(search): order numbered headwords naturally
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.
2026-10-15 13:06:05 +08:00
OneWay e20af9c1ff fix(settings): keep the update badge across PROCESS_TEXT relaunches
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).
2026-10-14 23:33:51 +08:00
OneWay 731340fd13 Release 1.8.0
- 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
1.8.0
2026-10-14 01:53:38 +08:00
OneWay 3930b7bee9 docs(store): refresh screenshots 2026-10-12 15:41:29 +08:00
OneWay 911e8b61f6 feat(settings): badge dictionaries that have updates
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.
2026-10-12 15:38:55 +08:00
OneWay c9d1a3439c feat(search): line up the first result with the article title bar
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.
2026-10-12 15:36:18 +08:00
OneWay 41bc116c56 feat(download): show progress before a link download starts
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.
2026-10-12 15:33:42 +08:00
OneWay 7af9930667 chore(deps): bump material3 to 1.5.0-beta01
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.
2026-10-12 15:31:07 +08:00
OneWay a4197d2970 fix(search): load all prefix matches in one ranked pass
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.
2026-10-12 02:34:02 +08:00
OneWay 4fc765382e refactor(trace): remove unused flow section constants 2026-10-11 22:53:55 +08:00
OneWay c6ec14da3e fix(indexing): keep parsing progress moving
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.
2026-10-11 22:25:23 +08:00
OneWay 2fdcae6ae3 fix(notifications): throttle dictionary progress reposts
A fast download reposted the ongoing notification several times per
second. Publish stage changes immediately and rate-limit intermediate
updates to the latest snapshot.
2026-10-11 22:22:08 +08:00
OneWay ae4bffe516 chore(deps): bump Gradle wrapper to 9.8.1
Patch release with Windows wrapper script fixes.
2026-10-10 14:09:00 +08:00
OneWay ff54287916 chore(deps): bump the dependency-versions plugin to 0.65.0 2026-10-10 01:58:43 +08:00
OneWay 318d05350e chore(deps): bump paging to 3.5.2
Patch release fixing an append() call made before the initial refresh.
2026-10-10 01:58:19 +08:00
OneWay 4aeaca4a98 chore(deps): bump Kotlin to 2.4.21 2026-10-10 01:57:43 +08:00
OneWay 01ef1dee2c perf(profile): cover startup, search and article-open paths
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.
2026-10-10 01:13:18 +08:00
OneWay 5ad184ba58 refactor(article): warm up the blocks that are actually rendered
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.
2026-10-10 01:13:03 +08:00
OneWay 381ce33017 fix(article): warm up large single-block articles
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.
2026-10-10 01:12:48 +08:00
OneWay f3ecc3086c fix(search): order numbered headwords by numeric value
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.
2026-10-10 01:12:33 +08:00
OneWay ad3d4f83fb fix(search): pad the bottom of the search history sheet 2026-10-09 13:03:59 +08:00
OneWay 4e75c7d865 Release 1.7.0
- 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
1.7.0
2026-10-07 01:33:27 +08:00
OneWay 5a0426c864 fix(main): populate the search field and results on history click in wide mode
HistoryEntryClicked in wide mode only called SearchAndLoadArticle,
which never updates searchQuery, so the field stayed empty and the
results pager took the query.isBlank() branch with PagingData.empty().
Now dispatch onSearchQueryChanged first, then SearchAndLoadArticle.
2026-10-07 00:43:15 +08:00
OneWay 5b6bb08248 fix(article): align the back arrow with the title in compact mode
In the two-pane compact title bar the arrow sat slightly above
the first title line; offset it down to optically center it.
2026-10-07 00:43:15 +08:00
OneWay cea46c0955 fix(parser): keep the full headword in the display text
The display form was truncated at the first formatting tag, so headwords
with a mid-word stress mark displayed as their prefix only. Build the
display from the full text with tags stripped and render stress marks as
a combining acute accent. Bump the index version so existing indexes
rebuild.
2026-10-06 12:23:50 +08:00