Skip to content

Commit bc4cfc6

Browse files
grichaclaude
andcommitted
Fix workspace detail screen to show header instantly
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 d72366d commit bc4cfc6

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
@@ -152,14 +152,6 @@ export function WorkspaceDetailScreen({ route, navigation }: any) {
152152
return result
153153
}, [groupedSessions])
154154

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

277-
{!isRunning && !isHost ? (
269+
{workspaceLoading && !isHost ? (
270+
<View style={styles.center}>
271+
<ActivityIndicator size="large" color="#0a84ff" />
272+
</View>
273+
) : !isRunning && !isHost ? (
278274
<View style={styles.notRunning}>
279275
<Text style={styles.notRunningText}>Workspace is not running</Text>
280276
<Text style={styles.notRunningSubtext}>Start it from settings to view sessions</Text>

0 commit comments

Comments
 (0)