:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(mobile): bound the android verdict scroll view (#126800)
Chris Volzerc361b683a494
diff --git a/products/mobile/docs/TESTING.md b/products/mobile/docs/TESTING.mdindex 0548d9c66f22..64e8aa091e64 100644--- a/products/mobile/docs/TESTING.md+++ b/products/mobile/docs/TESTING.md@@ -117,6 +117,16 @@ visible while a small spinner beside Previous/Next shows the refresh, then fadesthe navigation controls. Repeat with an unavailable Today page or signals endpoint, and with a failedbackground request. A first load without cached data still shows the full loading state.+## Resolve and dismiss sheets++On Android and iOS, open Resolve and Dismiss for a report with a long title.+Repeat in portrait and landscape, including a larger text size.+Include an Android 17 emulator with a Pixel 9 display profile (1080 × 2424 at 420 dpi).+Scroll through every reason and the optional note. The list must use the available space without clipped rows.+Select a reason, focus the note, type, and hide the keyboard. The confirm button must stay visible above the keyboard and return to the bottom after it closes.+Repeat after you open and close the chat keyboard. The sheet must not reserve space for a keyboard that is hidden.+Confirm the verdict and check that the report leaves the inbox. Close and reopen a sheet to check that its reason and note reset.+## Notification checksRun `pnpm test --watchman=false --runInBand src/features/notifications` for foreground delivery sequencesdiff --git a/products/mobile/src/features/verdict/VerdictSheet.tsx b/products/mobile/src/features/verdict/VerdictSheet.tsxindex c26e3221b6f0..c09562f54fab 100644--- a/products/mobile/src/features/verdict/VerdictSheet.tsx+++ b/products/mobile/src/features/verdict/VerdictSheet.tsx@@ -1,5 +1,5 @@import { type ReactElement, useEffect, useMemo, useRef, useState } from 'react'-import { ActivityIndicator, ScrollView, Text, TextInput, useWindowDimensions, View } from 'react-native'+import { ActivityIndicator, type ScrollView, Text, TextInput, useWindowDimensions, View } from 'react-native'import { Gesture, GestureDetector } from 'react-native-gesture-handler'import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller'import Animated, { useAnimatedStyle } from 'react-native-reanimated'@@ -85,9 +85,13 @@ export function VerdictSheet<Reason extends string>({{error}</Text>) : null}- <Animated.View style={[styles.list, listStyle]}>+ <View style={styles.list}><GestureDetector gesture={listGesture}>- <ScrollView ref={scroll} keyboardShouldPersistTaps="handled" style={styles.scroll}>+ <Animated.ScrollView+ ref={scroll}+ keyboardShouldPersistTaps="handled"+ style={[styles.scroll, listStyle]}+ ><Text style={styles.fieldLabel}>Reason</Text><View accessibilityRole="radiogroup">{options.map((option) => {@@ -127,9 +131,9 @@ export function VerdictSheet<Reason extends string>({accessibilityLabel="Note"testID={`${testID}-note`}/>- </ScrollView>+ </Animated.ScrollView></GestureDetector>- </Animated.View>+ </View><Pressable44onPress={confirm}disabled={!canConfirm}