Repository navigation
fix(weather): keep iOS widget forecast warnings readable - #657
Open
YinCheng0106 wants to merge 7 commits into
Open
YinCheng0106 wants to merge 7 commits into
YinCheng0106 wants to merge 7 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Platform: ios Fix(zh-Hant): 舊預報提示移至中型天氣小工具標頭,保留觀測時間並調整重新整理圖示大小 Fix(en-US): move stale forecast warnings into the Medium weather widget header, preserve observation times and balance refresh icons Fix(zh-Hant): 補齊天氣小工具「所在地」設定的日文、韓文及簡體中文翻譯 Fix(en-US): complete Japanese, Korean and Simplified Chinese translations for the widget's Current Location option
Platform: ios Fix(zh-Hant): 將大型天氣小工具的預報過期警示移到觀測時間旁,並統一中型小工具的警示與時間字級 Fix(en-US): Move the large weather widget's stale forecast warning beside the observation time and match the medium widget's warning and time text sizes
YinCheng0106
force-pushed
the
fix/ios-widget-stale-forecast-layout
branch
from
November 12, 2026 15:51
3e37184 to
31c3ebe
Compare
Member
Author
This branch has not been deployed
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 做了什麼
改善 iOS 天氣小工具在預報資料過舊時的資訊呈現,避免警示文字擠壓每小時預報區域,並統一 Medium 與 Large Widget 的警示位置、字體樣式及無障礙語意。
本次以保留既有 UI 設計為原則,調整過期提示的版面配置,補強不同語系、字級及固定卡片尺寸下的回歸測試。
正式程式碼
ios/DPIPWidgets/DPIPWidgets.swiftViewThatFits,空間不足時切換為警示圖示。.caption2,與觀測時間保持一致。.caption2。ios/DPIPWidgetIntentsExtension/Localizable.xcstrings測試與驗證
ios/RunnerTests/ForecastWidgetTests.swiftios/WidgetFixture/ios/WidgetFixtureUITests/MediumWeatherUITests.swift.github/workflows/ios.ymlios/Runner.xcodeproj/project.pbxprojtool/dev/test_widget_ui.shRebase
已將分支 Rebase 至更新後的
main。19ae25bff798584c0c714b18f71259c40cbf4f4131c3ebe281fab33c187ec28f9121b4c4e62dc594git range-diff確認原有 6 筆提交的修改內容等價。已知限制
上述問題將獨立追蹤,避免擴大本次 PR 的修改範圍。
相關 issue
沒有對應的 issue。
已搜尋既有 Widget、預報及無障礙相關議題,未找到直接對應本次修復的項目。
怎麼驗
自動化測試
WidgetKit 實際畫面
測試環境:
驗證結果:
無障礙驗證
尚未驗證
檢查清單
tool/check/commits.sh origin/main..HEAD通過—— commit 訊息就是更新日誌,格式見 commit.md
(本機報告顯示 Gates 全過,合併前仍需核對此項)
mise exec -- flutter analyze與mise exec -- flutter test通過(Flutter 測試已通過;需確認 analyze 的獨立執行結果)
(iOS 原生 Widget 使用 String Catalog,不適用 Flutter AppLocalizations)
gh pr checks:每一項都是 pass 或 skipped)—— 沒過不能合併
AppSpacing/AppRadius/AppMotion,深色模式看過,文字對比度可接受
(本次為原生 SwiftUI,不適用 Flutter UI Tokens;深色模式已檢視,
仍需確認完整文字對比度驗收)