cleanup: remove the dead optimistic-overlay action path once chain transport is retired

Đang mở
#445 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

After chain transport is retired, read GameStateContext.tsx, useOptimisticAction.ts, and PokerActionPanel.tsx to trace the legacy pending path. Remove the listed sendAction, pending-event, pendingAction, and isPending pieces while preserving the actionCount/index/handNumber spinner-clear behavior from #438; done means the dead chain-only path is gone.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

tech debt UI

The gateway is now the default transport (#442). In gateway mode the legacy optimistic-broadcast machinery is bypassed — sendAction / event:"pending" / pendingAction only serve the VITE_GAME_TRANSPORT=chain opt-out path.

Once chain transport is retired (gateway proven in prod), delete the dead path:

  • sendAction and the event:"pending" handling in GameStateContext.tsx
  • pendingAction state + the isPending plumbing in useOptimisticAction.ts / PokerActionPanel.tsx (keep the actionCount/index/handNumber spinner-clear from #438, which is transport-agnostic)

Captures the cleanup deferred when closing the Option A/B RFCs (#432, #433).

Refs #432 #433 #442

Ngôn ngữ chính
TypeScript
Star
2
Fork
5
Merge trung bình
23 giờ 23 phút
Pull request đã merge (30 ngày)
97

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của block52/ui

Tất cả issue của block52/ui

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.