Repository navigation
fix: region search, timeline a11y, bad links, offline lists - #619
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
whes1015
force-pushed
the
fix/small-ux-and-perf
branch
from
October 16, 2026 18:19
4c4c42d to
a8a73cf
Compare
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
whes1015
added this pull request to stack #626
October 16, 2026 19:21
whes1015
force-pushed
the
fix/small-ux-and-perf
branch
from
October 16, 2026 19:31
a8a73cf to
88d7d6a
Compare
Member
Author
whes1015
force-pushed
the
fix/small-ux-and-perf
branch
from
October 16, 2026 19:37
88d7d6a to
71ca9de
Compare
Member
Author
whes1015
force-pushed
the
fix/small-ux-and-perf
branch
from
October 16, 2026 19:44
71ca9de to
1db3972
Compare
Platform: all Fix(zh-Hant): 地區搜尋輸入「台北」也找得到臺北市,並可在第一頁直接搜尋並加入鄉鎮市區(例如「板橋」) Fix(en-US): region search treats 台 and 臺 alike and finds townships such as 板橋 straight from the first page
Platform: all Fix(zh-Hant): 地圖時間軸可用螢幕閱讀器操作:會讀出目前的時間,並可上下滑動逐格切換 Fix(en-US): screen readers can now use the map timeline, which reads out the current time and steps one frame per swipe
Platform: all Fix(zh-Hant): 修正開啟格式錯誤的連結(如缺少時間的地震重播)會出現錯誤畫面,現在會改開最接近的頁面 Fix(en-US): a malformed link, such as an earthquake replay without its start time, now opens the nearest working page instead of an error screen
Platform: all Optimization(zh-Hant): 低階手機上強震監視器的地震波圈不再越畫越慢、落後於實際時間 Optimization(en-US): on slower phones the seismic monitor's wave rings no longer fall further and further behind real time
Platform: android Optimization(zh-Hant): 記憶體 4 GB 以下的 Android 手機在地震速報時降低地震波圈的更新頻率,地圖與速報畫面更順暢 Optimization(en-US): Android phones under 4 GB of memory redraw the earthquake wave rings less often during an alert, keeping the map and alert screens responsive
Platform: all Fix(zh-Hant): 校時改為取最近幾次結果的平均,地震速報倒數與震波圈不再因網路延遲每分鐘跳動 Fix(en-US): time calibration now averages its recent readings, so alert countdowns and wave rings no longer jump every minute with network delay
Platform: all Fix(zh-Hant): 離線時地震報告列表改為顯示上次的資料,並標示無法連線與資料時間,不再只出現錯誤畫面 Fix(en-US): offline, the earthquake report list shows the last reports it loaded, labelled as saved with their age, instead of an error screen
Platform: all Fix(zh-Hant): 離線時事件頁改為顯示上次的歷史事件,並標示無法連線與資料時間,不再只出現錯誤畫面 Fix(en-US): offline, the Events tab shows the event history it last loaded, labelled as saved with its age, instead of an error screen
whes1015
force-pushed
the
fix/small-ux-and-perf
branch
from
October 16, 2026 19:48
1db3972 to
a63962f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
這個 PR 做了什麼
六個彼此獨立的小修正:地區搜尋找不到「台北」和鄉鎮、時間軸無法用螢幕閱讀器操作、格式錯誤的連結會讓 app 崩潰、低階手機上波前圈寫入塞車、校正時間每次同步都跳動,以及離線時報告列表只顯示錯誤。
改動內容
正式程式碼
8f0cc662地區搜尋支援「台/臺」和鄉鎮lib/core/geo/place_search.dart):臺→台、去掉所有空白、全形轉半形、轉小寫。abe2c7fc螢幕閱讀器可以逐格操作地圖時間軸907ecd51格式錯誤的連結開啟最接近的頁面,不再崩潰int.parse(state.uri.queryParameters['t']!),缺參數或格式錯就直接丟例外。t或格式錯 → 開對應的報告;錯誤的回報 id → 回報列表;空白的報告 id 或城市 → 上一層列表。b7a832e0上一次波前圈寫入還沒完成就跳過這一格32ee0c27低階 Android 手機的波前圈改成 5 Hzwavefront_cadence.dart:放大到城市時圈會一格一格前進而不是平滑移動,但和模型的落差在 1.2 km 以內。iOS 一律不降級。f4e80350校正時間在雜訊大的同步下保持穩定6baf52bf、e4f0f91a離線時顯示最後的報告列表和事件紀錄,並標示資料時間getOrSaved才回傳那份快取並標記為舊資料。Ok新增可選的stale欄位(Staleness:失敗原因,加上伺服器最後確認資料的時間)。fetched欄位,原地新增、不清掉既有快取;200 時寫入,304 只對有選擇的請求寫入。RealtimeView的狀態橫幅抽成共用的FreshnessBanner,顯示「無法連線・顯示 3 小時前的資料」。a63962fc文件:說明 stale-if-error 和舊資料橫幅。測試
每一項都有對應的單元或 widget 測試:搜尋正規化、時間軸語意、錯誤連結、in-flight 跳過、節奏、時鐘截尾平均、stale-if-error 與橫幅。
相關 issue
沒有對應的 issue。
怎麼驗
tool/commit.sh --push通過(analyze、codegen、全部 Dart 測試、l10n)。新字串 12 個語系都有翻譯。Ok.stale改變了核心Result的契約。忽略這個欄位的使用端會把舊資料當成現在的;目前只有上面兩個列表會產生它,而且兩者都會顯示橫幅。請確認可以接受。fetched欄位的遷移。檢查清單
tool/check/commits.sh通過tool/commit.sh --push)AppLocalizations,12 個語系都有翻譯