Skip to content

feat(O5): admin 車輛審核 UI - #20

Merged
thothawei merged 1 commit into
mainfrom
claude/admin-o5-vehicle-review
Jul 20, 2026
Merged

feat(O5): admin 車輛審核 UI#20
thothawei merged 1 commit into
mainfrom
claude/admin-o5-vehicle-review

Conversation

@thothawei

Copy link
Copy Markdown
Owner

拍板做 O5(2026-07-19):司機填車輛後需 admin 核准才能接單。司機管理頁加車輛審核。

改動

  • api Drivervehicle_type/plate_number/vehicle_review_status/notenormalizeDriver 兼容 Pascal/snake;reviewDriverVehicle(id, approve, note)
  • constants VEHICLE_TYPE_LABELVEHICLE_REVIEW_STATUS
  • DriversPage:車輛欄(車種+等寬車牌)、審核狀態 tag(退回 tooltip 帶原因)、待審核列的核准/退回(退回開 modal 填原因,前後端都擋空原因);「N 台車輛待審核」快捷 tag +「待審核車輛」篩選;搜尋含車牌

驗收

  • lint(oxlint)/build(tsc+vite)/test(vitest 110 passed,含 normalizeDriver 車輛欄位、reviewDriverVehicle 核准/退回帶原因)
  • 瀏覽器 E2E(連 docker 後端):司機管理頁正確渲染車輛/審核欄 → 待審核司機點「核准」→ confirm → 後端 approved;點「退回」→ 填原因 → 後端 rejected+note;「N 台待審核」計數即時更新

🤖 Generated with Claude Code

司機管理頁加車輛審核(O5):列出車種/車牌與審核狀態,待審核者可核准/退回。

- api Driver 加 vehicle_type/plate_number/vehicle_review_status/note;
  normalizeDriver 兼容 Pascal/snake;reviewDriverVehicle(id, approve, note)
- constants VEHICLE_TYPE_LABEL/VEHICLE_REVIEW_STATUS
- DriversPage:車輛欄(車種+等寬車牌)、審核狀態 tag(退回 tooltip 帶原因)、
  待審核列的核准/退回操作(退回開 modal 填原因,前後端都擋空原因);
  「N 台車輛待審核」快捷 tag+「待審核車輛」篩選;搜尋含車牌
- 測試:normalizeDriver 車輛/審核欄位、reviewDriverVehicle 核准/退回帶原因;
  既有 normalizeDriver toEqual 補上新欄位

lint(oxlint)/build(tsc+vite)/test(vitest 110 passed)皆綠。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@thothawei
thothawei merged commit 3d1d38d into main Jul 20, 2026
1 check passed
@thothawei
thothawei deleted the claude/admin-o5-vehicle-review branch July 20, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant