Skip to content

feat(weather): add medium and large iOS weather widgets - #582

Open
YinCheng0106 wants to merge 17 commits into
feat/ios-widget-weather-refreshfrom
feat/ios-widget-weather-families
Open

YinCheng0106 wants to merge 17 commits into
feat/ios-widget-weather-refreshfrom
feat/ios-widget-weather-families

Conversation

@YinCheng0106

@YinCheng0106 YinCheng0106 commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

這個 PR 做了什麼

新增 iOS 天氣小工具的 Medium 與 Large 尺寸,依照不同 Widget family 調整資訊層級與版面配置,讓使用者可以在主畫面查看更多目前天氣與預報資訊。

Small Widget 維持精簡的目前天氣資訊;Medium 與 Large Widget 則利用額外空間呈現更多天氣內容。

相關 issue

  • 無

怎麼驗

  • 在 iOS 實體裝置加入 Small、Medium、Large 三種天氣小工具。
  • 確認三種尺寸皆可正常顯示目前選擇地點的天氣資訊。
  • 確認 Medium / Large Widget 的內容、間距與文字沒有 clipping、重疊或超出邊界。
  • 分別測試「所在地」與 DPIP 已儲存地點,確認不同 Widget instance 可正常顯示對應地點。
  • 確認天氣狀態、圖示與相關文字可正常顯示。
  • 確認繁體中文介面顯示正常。
  • Small、Medium、Large 均已於實體裝置完成 UI 驗證。

UI 預覽

Small

small widget dark small widget light

Medium

medium widget dark medium widget light

Large

large widget dark large widget light

如果對資訊密度、字體大小、間距或不同尺寸的資訊配置有更合適的做法,也歡迎提出建議。

Reviewer 建議重點

建議優先確認:

  • Small / Medium / Large 三種 family 的資訊層級是否合理。
  • Medium / Large Widget 的資訊密度與可讀性。
  • 不同長度的地區名稱與天氣文字是否有潛在 layout 問題。
  • 天氣圖示、文字與詳細資訊在不同 family 間是否保持一致。
  • Large Widget 的文字大小、alignment 與 spacing 是否適合實際主畫面使用。

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyze 與 mise exec -- flutter test 通過
  • 新的使用者可見字串皆有本地化
  • 有 UI 變更的話:深色模式與文字顯示已確認;Widget UI 使用原生 SwiftUI layout

@YinCheng0106 YinCheng0106 added this to the v26.4 milestone Sep 26, 2026
@YinCheng0106 YinCheng0106 self-assigned this Sep 26, 2026
@YinCheng0106 YinCheng0106 added the ios Issues or pull requests related to the iOS platform. label Sep 26, 2026
@YinCheng0106
YinCheng0106 added this pull request to stack #581 September 26, 2026 14:42
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from d9672a5 to a2c16c4 Compare September 27, 2026 06:10
@YinCheng0106
YinCheng0106 marked this pull request as ready for review September 27, 2026 06:10
Copilot AI balanced review requested due to automatic review settings September 27, 2026 06:10

This comment was marked as low quality.

@YinCheng0106
YinCheng0106 requested review from PiscesXD, lowrt and whes1015 and a balanced review from Copilot September 27, 2026 06:12

This comment was marked as low quality.

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.45%. Comparing base (c33eb0f) to head (ca0167a).

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch 2 times, most recently from 4de7f01 to 234ceea Compare September 28, 2026 07:07
Platform: ios

New(zh-Hant): 天氣小工具資料新增風向與風速
New(en-US): add wind direction and speed to weather widget data
Platform: ios

New(zh-Hant): 天氣小工具資料新增目前體感溫度
New(en-US): add current apparent temperature to weather widget data
Platform: ios

New(zh-Hant): 新增中型 iOS 天氣小工具
New(en-US): add a medium iOS weather widget
Platform: ios

New(zh-Hant): 新增 iOS 天氣小工具原生逐時預報資料支援
New(en-US): add native hourly forecast data support for iOS weather widgets
Platform: ios

New(zh-Hant): 新增中型與大型 iOS 天氣小工具及逐時預報
New(en-US): add medium and large iOS weather widgets with hourly forecast
Platform: ios

Fix(zh-Hant): 修正大型天氣小工具的風速文字樣式不一致
Fix(en-US): fix inconsistent wind speed text styling in the large weather widget
Platform: ios

Fix(zh-Hant): 修正天氣小工具預報缺值時會出現空白時段
Fix(en-US): fix blank forecast slots when widget forecast data is incomplete
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from 234ceea to 67d8e2b Compare September 28, 2026 07:43
Platform: ios

Fix(zh-Hant): 裝置時間不準時,iOS 天氣小工具的預報時段與日夜圖示不再跟著偏移
Fix(en-US): the iOS weather widget forecast no longer follows an inaccurate device clock
Platform: ios

Fix(zh-Hant): 切換地區後,iOS 天氣小工具不再繼續顯示舊地區的天氣
Fix(en-US): the iOS weather widget no longer keeps showing the previous region's weather after switching region
PiscesXD and others added 6 commits September 28, 2026 17:01
Platform: ios

Fix(zh-Hant): 切換地區後,iOS 天氣小工具不再繼續顯示舊地區的逐時預報
Fix(en-US): the iOS weather widget no longer keeps showing the previous region's hourly forecast after switching region
Platform: ios

Fix(zh-Hant): 修正裝置時間不準時可能造成天氣小工具預報快取期限錯誤
Fix(en-US): fix widget forecast cache expiry when the device clock is inaccurate

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ios Issues or pull requests related to the iOS platform. size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants