Repository navigation
feat(ios-widget): open configured location - #608
Merged
Merged
Conversation
Platform: ios New(zh-Hant): 點擊 iOS 天氣小工具可開啟其設定地點的首頁天氣 New(en-US): Open the configured location weather when tapping an iOS widget
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🔍 OpenCodeReview found 5 issue(s) in this PR.
|
Platform: ios Fix(zh-Hant): 修正 iOS 小工具地點路由與重複天氣更新 Fix(en-US): fix iOS widget location routing and repeated weather refreshes
whes1015
approved these changes
Oct 13, 2026
lowrt
approved these changes
Oct 13, 2026
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 天氣 Widget 點擊後會開啟 DPIP,並依該個 Widget 已設定的地點切換首頁選取區域,讓不同地點的 Widget 各自導向正確的預報。冷啟動與暖啟動都沿用同一個 deep link;目前位置 Widget 導向「所在地」,已儲存地區 Widget 導向其保存的地區。
widgetURL傳入dpip:///home?widgetLocation=...;Gallery Preview 的西屯區樣本只供預覽,不會取代使用者設定的導向目標。WidgetLocationIntentTests.swift、app_router_test.dart、widget_location_routes_test.dart回歸案例,涵蓋預報到期、Gallery 樣本、連續 Widget 事件、通知 Home fallback 與 EEW map 路由相容性。911c4bad(功能)與32b939be(回歸測試)。相關 issue
沒有找到對應 issue。
怎麼驗
自動化驗證
DPIP_NO_CACHE=1 tool/commit.sh:所有 CI gates 通過;Dart 3145 passed、10 skipped;format/analyze、靜態 gates 與 codegen 通過(codegen 寫入 0 outputs)。提交後再次執行tool/commit.sh,同樣通過。tool/dev/test_ios.sh,368 passed、0 failed。git diff --check通過;PR 含兩筆 feature commits,沒有 merge commit。實際 Simulator Home Screen QA
尚未驗證
檢查清單
tool/check/commits.sh origin/main..HEAD通過tool/commit.sh所有 gates 通過;Dart 3145 passed、10 skipped;Swift 368 passed、0 failed