diff --git a/mobile/src/app/(tabs)/index.tsx b/mobile/src/app/(tabs)/index.tsx
index b553008..6b98ec2 100644
--- a/mobile/src/app/(tabs)/index.tsx
+++ b/mobile/src/app/(tabs)/index.tsx
@@ -9,6 +9,7 @@ import { colors } from '../../theme';
export default function HomeScreen() {
const notes = useNotesStore((state: NotesState) => state.notes);
+ const isLoading = useNotesStore((state: NotesState) => state.isLoading);
const workspaces = useWorkspaceStore((state: WorkspaceState) => state.workspaces);
const activeWorkspaceId = useWorkspaceStore((state: WorkspaceState) => state.activeWorkspaceId);
const setActiveWorkspace = useWorkspaceStore((state: WorkspaceState) => state.setActiveWorkspace);
@@ -56,6 +57,7 @@ export default function HomeScreen() {
})}
+ {isLoading ? Loading notes… : null}
{recentNotes.map((note: (typeof recentNotes)[number]) => (
router.push(`/note/${note.id}`)} style={styles.card}>
@@ -65,7 +67,9 @@ export default function HomeScreen() {
{note.preview}
))}
- {recentNotes.length === 0 ? No recent notes yet. : null}
+ {!isLoading && recentNotes.length === 0 ? (
+ No recent notes yet for this workspace.
+ ) : null}
);
}
diff --git a/mobile/src/app/(tabs)/search.tsx b/mobile/src/app/(tabs)/search.tsx
index c9c42c0..3e396a0 100644
--- a/mobile/src/app/(tabs)/search.tsx
+++ b/mobile/src/app/(tabs)/search.tsx
@@ -10,6 +10,7 @@ import { colors } from '../../theme';
export default function SearchScreen() {
const [query, setQuery] = useState('');
const notes = useNotesStore((state: NotesState) => state.notes);
+ const isLoading = useNotesStore((state: NotesState) => state.isLoading);
const workspaces = useWorkspaceStore((state: WorkspaceState) => state.workspaces);
const activeWorkspaceId = useWorkspaceStore((state: WorkspaceState) => state.activeWorkspaceId);
const activeWorkspaceName =
@@ -45,12 +46,15 @@ export default function SearchScreen() {
style={styles.input}
/>
+ {isLoading ? Loading searchable notes… : null}
{results.map((note: MobileNote) => (
router.push(`/note/${note.id}`)} style={styles.row}>
{note.title}
))}
- {results.length === 0 ? No notes match your search yet. : null}
+ {!isLoading && results.length === 0 ? (
+ No notes match your search in this scope yet.
+ ) : null}
);