chore: clean up migration comments and unused params

Remove obsolete Dart migration notes and route handling comments from splash-button.tsx and auth-machine.ts, and drop the unused `self` parameter from `chatWebSocketActor` callback signature.
This commit is contained in:
2026-06-16 12:01:42 +08:00
parent 29776272ad
commit cba52884a3
3 changed files with 2 additions and 17 deletions
@@ -2,16 +2,11 @@
/**
* Splash 底部按钮组
*
* 原始 Dart: lib/ui/splash/widgets/splash_button.dart
* `Row(children: [Skip 文本, SizedBox 26, 社交登录按钮])`
*
* 本组件是 splash 鉴权流程的**纯 UI 入口**
* - 消费 `useAuthState` / `useAuthDispatch`(仅用于 isLoading 显示 + 派事件)
* - **Skip 按钮 = 显式游客登录入口**(派发 `AuthGuestLoginSubmitted`
* - 社交登录按钮仅派发 `AuthFacebookLoginSubmitted` 事件,由状态机负责调 NextAuth
*
* **不**做路由跳转 —— 路由逻辑**全部**移到 splash-screen.tsx 统一管理。
*
* **派事件策略**(**单**事件):
* - 派业务事件(`AuthGuestLoginSubmitted` / `AuthFacebookLoginSubmitted`)→ 状态机开始跑
* - `pendingRedirect: true` 在**登录成功 onDone** 里**自动**置(auth-machine.ts `onLoginSuccess` helper