Skip to content

feat(weather): add native iOS widget weather refresh - #580

Open
YinCheng0106 wants to merge 18 commits into
feat/ios-widget-intent-configurationfrom
feat/ios-widget-weather-refresh
Open

YinCheng0106 wants to merge 18 commits into
feat/ios-widget-intent-configurationfrom
feat/ios-widget-weather-refresh

Conversation

@YinCheng0106

@YinCheng0106 YinCheng0106 commented Sep 20, 2026

Copy link
Copy Markdown

這個 PR 做了什麼

讓 iOS 天氣小工具可在 App 未執行時,依照「所在地」或已儲存地點自行更新目前天氣,並在更新失敗時保留既有快取;使用「所在地」的 Widget 會顯示定位圖示以區分固定地點。

相關 issue

怎麼驗

  • 在 iOS Simulator 加入天氣小工具,分別測試「所在地」與已儲存地點。
  • 設定為「所在地」時,確認地區名稱旁顯示定位圖示;已儲存的固定地點不顯示。
  • 關閉 DPIP App 後,確認 Widget Extension 仍可自行取得天氣並更新 snapshot。
  • 將 Simulator 所在地由臺中切換至臺北,確認 Current Location 可由 407 更新為 110
  • 確認更新失敗時仍保留既有 snapshot。
  • 相關 native XCTest、tool/check.sh 與 GitHub CI 皆已通過。
  • 實體裝置 E2E 因 Apple Developer Team provisioning 權限限制暫未驗證。

檢查清單

  • 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
    深色模式看過,文字對比度可接受

@YinCheng0106 YinCheng0106 self-assigned this Sep 20, 2026
@YinCheng0106 YinCheng0106 added the ios Issues or pull requests related to the iOS platform. label Sep 20, 2026
@YinCheng0106
YinCheng0106 added this pull request to stack #581 September 20, 2026 16:07
@YinCheng0106 YinCheng0106 added this to the v26.3 milestone Sep 20, 2026
@codecov

codecov Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.38%. Comparing base (b058cf6) to head (cbe4550).

☔ 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.

Platform: ios

Fix(zh-Hant): 修正 iOS 天氣小工具偶爾顯示先前所在地的問題
Fix(en-US): fix iOS weather widgets occasionally showing a previous location
Platform: ios

New(zh-Hant): 使用「所在地」的天氣小工具會顯示定位圖示
New(en-US): weather widgets using Current Location now show a location icon
@YinCheng0106
YinCheng0106 marked this pull request as ready for review September 22, 2026 03:38
Copilot AI balanced review requested due to automatic review settings September 22, 2026 03:38

This comment was marked as low quality.

@lowrt lowrt modified the milestones: v26.3, v26.4 Sep 23, 2026

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