From c4cfaa8887873430a9a209d056145fd3aa6eedd3 Mon Sep 17 00:00:00 2001 From: Satya Patel Date: Wed, 16 Sep 2026 12:01:40 -0700 Subject: [PATCH] feat(mobile): let the workspace list scroll under a transparent header Home's header was the only main screen with an opaque bar, so rows were cut off hard at its bottom edge. It now uses headerTransparent like the other glass headers, and iOS 26's scroll edge effect blurs and dims the rows that pass under it. The list already adjusts its content inset automatically, so nothing moves at rest. The host-offline state is a plain View, not a scroll view, so it gets no automatic inset. It is padded by the measured header height to keep its chips out from under the bar. The option is set from HomeScreen rather than the (home) layout: the paywall and connect-host screens share the index route, and the paywall's centered content would shift up under a transparent header. Options set from inside a page are not reset on unmount, so a plan lapsing mid-session would carry it over; that is rare and still usable. Pinning the scope chips inside the header was tried and dropped. iOS has no setting to extend its header over RN views, so it needed a custom expo-blur overlay, a scroll-driven fade and a LegendList workaround. --- .../mobile/screens/(authenticated)/(home)/home/HomeScreen.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/mobile/screens/(authenticated)/(home)/home/HomeScreen.tsx b/apps/mobile/screens/(authenticated)/(home)/home/HomeScreen.tsx index 467192227b3..d15a271a0ee 100644 --- a/apps/mobile/screens/(authenticated)/(home)/home/HomeScreen.tsx +++ b/apps/mobile/screens/(authenticated)/(home)/home/HomeScreen.tsx @@ -6,6 +6,7 @@ import { useQueryClient } from "@tanstack/react-query"; import { isAfter } from "date-fns"; import * as Haptics from "expo-haptics"; import { Stack, useFocusEffect, useRouter } from "expo-router"; +import { useHeaderHeight } from "expo-router/react-navigation"; import { useFeatureFlag } from "posthog-react-native"; import { useCallback, useMemo, useRef, useState } from "react"; import { @@ -132,6 +133,7 @@ export function HomeScreen() { ); const { height: windowHeight } = useWindowDimensions(); const insets = useSafeAreaInsets(); + const headerHeight = useHeaderHeight(); const queryClient = useQueryClient(); const setTargetKey = useNewSessionPreferencesStore( (state) => state.setTargetKey, @@ -597,6 +599,7 @@ export function HomeScreen() { offline — its list isn't shown, so there is nothing to search. */} ( {scopeBar}