about summary refs log tree commit diff
path: root/src/view/com/testing
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-28 06:20:06 -0500
committerGitHub <noreply@github.com>2025-08-28 04:20:06 -0700
commit2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0 (patch)
tree6d4ddbefb3db5a32b0cdd88e353b195bd248b1a4 /src/view/com/testing
parentdcba5c46683875009cea3ccdb22cda9167f16217 (diff)
downloadvoidsky-2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0.tar.zst
Update dev env (#8921)
* Update dev-env

* Integrate appviewDid value from dev-env

* Use correct env value to disable policy update overlay

* Remove log
Diffstat (limited to 'src/view/com/testing')
-rw-r--r--src/view/com/testing/TestCtrls.e2e.tsx18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx
index 3273cf195..8e39e28c0 100644
--- a/src/view/com/testing/TestCtrls.e2e.tsx
+++ b/src/view/com/testing/TestCtrls.e2e.tsx
@@ -1,8 +1,10 @@
-import {LogBox, Pressable, View} from 'react-native'
+import {useState} from 'react'
+import {LogBox, Pressable, View, TextInput} from 'react-native'
 import {useQueryClient} from '@tanstack/react-query'
 
+import {setBlueskyProxyHeader} from '#/lib/constants'
 import {useModalControls} from '#/state/modals'
-import {useSessionApi} from '#/state/session'
+import {useSessionApi, useAgent} from '#/state/session'
 import {useLoggedOutViewControls} from '#/state/shell/logged-out'
 import {useOnboardingDispatch} from '#/state/shell/onboarding'
 import {navigate} from '../../../Navigation'
@@ -18,6 +20,7 @@ LogBox.ignoreAllLogs()
 const BTN = {height: 1, width: 1, backgroundColor: 'red'}
 
 export function TestCtrls() {
+  const agent = useAgent()
   const queryClient = useQueryClient()
   const {logoutEveryAccount, login} = useSessionApi()
   const {openModal} = useModalControls()
@@ -45,8 +48,19 @@ export function TestCtrls() {
     )
     setShowLoggedOut(false)
   }
+  const [proxyHeader, setProxyHeader] = useState('')
   return (
     <View style={{position: 'absolute', top: 100, right: 0, zIndex: 100}}>
+      <TextInput
+        testID="e2eProxyHeaderInput"
+        onChangeText={val => setProxyHeader(val as any)}
+        onSubmitEditing={() => {
+          const header = `${proxyHeader}#bsky_appview`
+          setBlueskyProxyHeader(header as any)
+          agent.configureProxy(header as any)
+        }}
+        style={BTN}
+      />
       <Pressable
         testID="e2eSignInAlice"
         onPress={onPressSignInAlice}