Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): sidebar empty states and repeated usage notices #33188

Mergedmaria-rcksmerged 2 commits intomain fromt3/mobile-sidebar-empty-statesmerged by maria-rcks View on GitHub

Showing 4 changed files with 61 additions and 20 deletions (loading 1).

x
0 of 4 viewed, 4 left
7 additions and 1 deletionapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -746,7 +746,13 @@
​
const v2ListEmpty =
- hasSearchQuery && threadSearch.isPending ? undefined : hasSearchQuery ? (
+ hasSearchQuery && threadSearch.isPending ? (
+ <EmptyState
+ title="Searching thread messages…"
+ detail={`Looking for "${props.searchQuery}" in messages.`}
+ variant={Platform.OS === "android" ? "plain" : undefined}
+ />
+ ) : hasSearchQuery ? (
<EmptyState
title="No results"
detail={`No threads matching "${props.searchQuery}".`}
37 additions and 19 deletionsapps/mobile/src/features/threads/ThreadNavigationSidebar.tsxModified
View file
@@ -25,6 +25,7 @@
import { useSafeAreaInsets } from "react-native-safe-area-context";
​
import { AppText as Text } from "../../components/ui/AppText";
+import { Button } from "../../components/ui/Button";
import { scopedProjectKey, scopedThreadKey } from "../../lib/scopedEntities";
import { useProjects, useNavigationThreadShells } from "../../state/entities";
import { useThreadSearch } from "../../state/queries";
@@ -552,26 +553,43 @@