Repository navigation
feat(app): 乘客歷史行程畫面+事後聯絡司機(留言板入口補遺) - #34
Merged
Merged
Conversation
過去行程原本沒有對話入口——聊天只綁在進行中行程/協尋單。加「我的行程」 畫面讓乘客事後仍能聯絡當時司機(例如想起有東西忘在車上、對車資有疑問)。 - CustomerRideSummary 模型(後端 CustomerRideRow);hasDriver 決定是否給 「聯絡司機」——派單前取消的行程沒有對象可聯絡 - rideStatusLabel 抽成共用函式(CustomerRide.statusLabel 改用它,去重) - CustomerApiClient.fetchRideHistory;CustomerController.loadRideHistory +rideHistory/historyLoading/historyError - CustomerRideHistoryScreen:清單(狀態/路線/時間/車資),有司機者開 RideChatScreen(重用 ctrl.chatStream,RideChatScreen 已按 rideId 過濾); loading/error+重試/空清單/下拉刷新 - 乘客首頁右上加「我的行程」FAB(與登出並列) flutter analyze 無 issue、flutter test 166 passed(新增 6:模型解析、 loadRideHistory 成功/失敗、畫面有無司機/空清單)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
過去行程原本沒有對話入口——聊天只綁在進行中行程/協尋單。加「我的行程」畫面讓乘客事後仍能聯絡當時司機(例如想起有東西忘在車上、對車資有疑問)。搭配後端 fleet-dispatch #39 的
GET /customer/rides。改動
CustomerRideSummary模型(對應後端CustomerRideRow);hasDriver決定是否給「聯絡司機」——派單前取消的行程沒有對象可聯絡rideStatusLabel抽成共用函式(CustomerRide.statusLabel改用它,去重)CustomerApiClient.fetchRideHistory;CustomerController.loadRideHistory+ 狀態CustomerRideHistoryScreen:清單(狀態/路線/時間/車資),有司機者開RideChatScreen(重用ctrl.chatStream,RideChatScreen已按rideId過濾);loading/error+重試/空清單/下拉刷新驗收
flutter analyze無 issue、flutter test166 passed(新增 6:模型解析、loadRideHistory成功/失敗、畫面有無司機/空清單)m6_pixel+ docker):完成 ride docs: 聊天/遺失物模擬器實跑(雙 flavor E2E)+3 個實跑發現 #9 → 「我的行程」顯示(NT$212/司機名/台北101→台北車站)→ 點「聯絡司機」開歷史行程對話 → 發訊右靠綠泡+輸入清空 → 後端持久化、司機端GET /rides/9/messages讀到customer: Hi_left_umbrella🤖 Generated with Claude Code