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

未关闭
#445 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
frontend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
2
派生
5
平均合并
23 小时 37 分钟
30 天内合并 PR
96

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

block52/ui 的其他 Issue

查看 block52/ui 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。