Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 注销气泡透明度与可点击性跟随面板入场(PR #464 review)
PraiseZhu54f00f6b1054
diff --git a/apps/mobile/app/(auth)/login.tsx b/apps/mobile/app/(auth)/login.tsxindex fa7f175627..7863260911 100644--- a/apps/mobile/app/(auth)/login.tsx+++ b/apps/mobile/app/(auth)/login.tsx@@ -1191,15 +1191,23 @@ export default function LoginScreen() {</View></View>{accountDeletionStatus && deletionBubbleFrame ? (- <AccountDeletionStatusPanel- frame={deletionBubbleFrame}- onDismiss={- accountDeletionStatus.status === 'completed'- ? () => void auth.clearAccountDeletionReceipt()- : undefined- }- status={accountDeletionStatus}- />+ // 入场门(PR #464 review,与桌面同口径):opacity 结构性跟随面板入场的+ // Animated 值(splash=0 → handoff 渐显 → done=1,同一 usePanelEntrance 输出,+ // 不新造状态机);pointerEvents 仅 done 放行——入场完成前气泡不可见也不可点。+ <Animated.View+ pointerEvents={handoffPhase === 'done' ? 'auto' : 'none'}+ style={[StyleSheet.absoluteFill, { opacity: panelEntrance.opacity }]}+ >+ <AccountDeletionStatusPanel+ frame={deletionBubbleFrame}+ onDismiss={+ accountDeletionStatus.status === 'completed'+ ? () => void auth.clearAccountDeletionReceipt()+ : undefined+ }+ status={accountDeletionStatus}+ />+ </Animated.View>) : null}{/* 服务条款和隐私协议确认弹窗(figma 602:822/602:1249):个人登录链路在radio 未勾选时统一拦截;同意=勾选并续接,不同意=留在登录页。stage 内diff --git a/apps/mobile/src/__tests__/accountDeletion.test.ts b/apps/mobile/src/__tests__/accountDeletion.test.tsindex ffd49f849c..3c1cd321af 100644--- a/apps/mobile/src/__tests__/accountDeletion.test.ts+++ b/apps/mobile/src/__tests__/accountDeletion.test.ts@@ -244,4 +244,29 @@ describe('mobile account deletion', () => {expect(tokens).not.toContain('deletionBubbleText');expect(tokens).not.toContain('deletionBubbleTitle');});++ it('gates the bubble behind panel entrance (PR #464 review: hidden & non-interactive until done)', () => {+ const login = source('app/(auth)/login.tsx');+ // 结构性跟随:气泡包在 Animated.View 里,opacity = panelEntrance.opacity(与登录组+ // 同一个 usePanelEntrance Animated 值,不新造状态机);pointerEvents 仅+ // handoffPhase === 'done' 放行——splash/handoff 期间气泡不可见也不可点。+ const gate = login.slice(+ login.indexOf('{accountDeletionStatus && deletionBubbleFrame ? ('),+ login.indexOf('{/* 服务条款和隐私协议确认弹窗'),+ );+ expect(gate).toContain('<Animated.View');+ expect(gate).toContain(+ "pointerEvents={handoffPhase === 'done' ? 'auto' : 'none'}",+ );+ expect(gate).toContain('{ opacity: panelEntrance.opacity }');+ expect(gate).toContain('StyleSheet.absoluteFill');+ // 入场完成后(done)才允许交互;disabled/条件渲染等替代形态未引入。+ expect(gate).not.toContain('disabled=');+ // 气泡本体仍不引入 Animated(动画只在包装层,组件保持纯静态)。+ const panel = login.slice(+ login.indexOf('function AccountDeletionStatusPanel'),+ login.indexOf('function socialLabel'),+ );+ expect(panel).not.toContain('Animated');+ });});