Skip to content

Commit 6d11d05

Browse files
authored
fix: workloads empty state (#456)
1 parent 7cad366 commit 6d11d05

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

main/src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (isDevelopment) {
1717
log.transports.file.level = 'info'
1818
} else {
1919
log.transports.console.level = 'info'
20-
log.transports.file.level = 'warn'
20+
log.transports.file.level = 'info'
2121
}
2222

2323
log.eventLogger.startLogging()

renderer/src/common/components/error/connection-refused-error.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export function ConnectionRefusedError() {
6464
})
6565

6666
useEffect(() => {
67+
if (!containerStatus?.available) {
68+
log.info('Container engines are not available')
69+
}
6770
if (containerStatus?.available && !isRestarting) {
6871
restartToolhive()
6972
}

renderer/src/routes/__root.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const Route = createRootRouteWithContext<{
7979
if (!res) {
8080
log.error('Error ToolHive is not running')
8181
}
82+
log.info('ToolHive is running')
8283
return res
8384
},
8485
retry: 3,
@@ -87,6 +88,8 @@ export const Route = createRootRouteWithContext<{
8788
await queryClient.ensureQueryData({
8889
queryKey: ['health'],
8990
queryFn: () => getHealth({}),
91+
retry: 2,
92+
retryDelay: 200,
9093
})
9194
},
9295
loader: async ({ context: { queryClient } }) =>

renderer/src/routes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function Index() {
7171
onSubmit={handleSubmit}
7272
/>
7373
</div>
74-
{!isPending && workloads.length === 0 ? (
74+
{!isPending && !workloads.length ? (
7575
<EmptyState
7676
title="Add your first MCP server"
7777
body="You can add a server by running it with a command or by browsing the registry"

0 commit comments

Comments
 (0)