Skip to content

Commit f2f7f71

Browse files
grichaclaude
andauthored
Fix workspace detail screen to show header instantly (#9)
Move loading state from full-screen to content area only, so the navigation header and action bar render immediately while workspace data loads. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0c53583 commit f2f7f71

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

mobile/src/screens/WorkspaceDetailScreen.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,6 @@ export function WorkspaceDetailScreen({ route, navigation }: any) {
153153
return result
154154
}, [groupedSessions])
155155

156-
if (workspaceLoading && !isHost) {
157-
return (
158-
<View style={[styles.container, styles.center]}>
159-
<ActivityIndicator size="large" color="#0a84ff" />
160-
</View>
161-
)
162-
}
163-
164156
const displayName = isHost
165157
? (hostInfo ? `${hostInfo.username}@${hostInfo.hostname}` : 'Host Machine')
166158
: name
@@ -275,7 +267,11 @@ export function WorkspaceDetailScreen({ route, navigation }: any) {
275267
</View>
276268
)}
277269

278-
{!isRunning && !isHost ? (
270+
{workspaceLoading && !isHost ? (
271+
<View style={styles.center}>
272+
<ActivityIndicator size="large" color="#0a84ff" />
273+
</View>
274+
) : !isRunning && !isHost ? (
279275
isCreating ? (
280276
<View style={styles.notRunning}>
281277
<ActivityIndicator size="large" color="#ff9f0a" style={{ marginBottom: 16 }} />

0 commit comments

Comments
 (0)