Skip to content

fix(home): stop the monitor banner crash, and polish Home/map/settings UI - #550

Merged
whes1015 merged 8 commits into
mainfrom
fix-ui
Aug 23, 2026
Merged

fix(home): stop the monitor banner crash, and polish Home/map/settings UI#550
whes1015 merged 8 commits into
mainfrom
fix-ui

Conversation

@PiscesXD

@PiscesXD PiscesXD commented Aug 23, 2026

Copy link
Copy Markdown
Member

這個 PR 做了什麼

修正首頁強震監視器橫幅出現/消失時偶發的 semantics assertion 閃退(node.built),並整理首頁、地圖、設定上的幾處 UI 細節:亮色主題卡片對比、地圖圖層清單記住捲動位置、權限提示橫幅移除、兩處圖示置中。細節見各則 commit。

相關 issue

怎麼驗

  • 開啟 demo 強震盜視(monitor demo rts)讓 alert 橫幅出現,反覆拖曳首頁 sheet、讓橫幅出現又消失——先前每幾幀就丟一次 node.built assertion,現在不再發生
  • 亮色主題下看首頁卡片:改為不透明底、天候圖示跟著天空前景色走
  • 開地圖圖層 picker、捲到下面、選一層後再開——位置保留(先前每次彈回頂部)
  • 頂部不再出現定位/通知權限提示橫幅;權限清單與 EEW 來源列的圖示垂直置中
  • tool/commit.sh 全綠(含完整測試套件 1632 項)

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyzemise exec -- flutter test 通過
  • 新的使用者可見字串都走 AppLocalizations,沒有寫死
  • 有 UI 變更的話:用的是 AppSpacing / AppRadius / AppMotion
    深色模式看過,文字對比度可接受

Fix(zh-Hant): 強震監視器連結移到贊助列下方
Fix(en-US): the earthquake monitor link is now below the support pill
Fix(zh-Hant): EEW 地震來源卡片的圖示改為垂直置中
Fix(en-US): the EEW source card icon is now vertically centered
Fix(zh-Hant): 修正首頁強震監視器橫幅出現或消失時偶發閃退
Fix(en-US): fix an occasional crash when the Home monitor banner appears or disappears
Optimization(zh-Hant): 亮色主題下卡片與圖示對比更清晰,權限提示橫幅不再佔據頂部
Optimization(en-US): clearer card and icon contrast in the light theme; the top permission banners are gone
New(zh-Hant): 圖層選擇清單會記住上次捲到的位置
New(en-US): the layer picker retains your last scroll offset
Fix(zh-Hant): 權限清單的狀態圖示改為垂直置中
Fix(en-US): the permission checklist icons are centred in their rows
@github-actions

Copy link
Copy Markdown

OpenCodeReview: Review partially complete: 0 finding(s); 8 of 10 selected item(s) failed.

@PiscesXD PiscesXD changed the title Fix UI fix(home): stop the monitor banner crash, and polish Home/map/settings UI Aug 23, 2026
Fix(zh-Hant): 修正粵語等語系下地震報告與更新日誌的日期格式會當掉
Fix(en-US): dates on the changelog and report pages no longer crash under locales intl has no data for
Fix(zh-Hant): 修正圖層清單記住的捲動位置在重新開啟時讓選單卡在縮小狀態
Fix(en-US): the layer picker no longer stays stuck small when it restores your last scroll offset
@whes1015
whes1015 merged commit cec81bb into main Aug 23, 2026
6 checks passed
@whes1015
whes1015 deleted the fix-ui branch August 23, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants