From a44c85abe08c9dd3377df786d4be4efbd3f8f01b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 28 Jan 2026 19:13:18 -0800 Subject: [PATCH] default_emoji --- src/client/index.tsx | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/client/index.tsx b/src/client/index.tsx index 6c0a938..6ab7e05 100644 --- a/src/client/index.tsx +++ b/src/client/index.tsx @@ -9,6 +9,8 @@ import { openEmojiPicker } from './tags/emoji-picker' let selectedApp: string | null = localStorage.getItem('selectedApp') let sidebarCollapsed: boolean = localStorage.getItem('sidebarCollapsed') === 'true' +const DEFAULT_EMOJI = '🖥️' + // Server state (from SSE) let apps: App[] = [] @@ -380,7 +382,7 @@ const AppDetail = ({ app }: { app: App }) => ( <> - {app.icon ?? } + {app.icon ?? DEFAULT_EMOJI}   {app.name} @@ -400,7 +402,6 @@ const AppDetail = ({ app }: { app: App }) => ( {stateLabels[app.state]} - {app.port ? ` on :${app.port}` : ''} {app.state === 'running' && app.port && ( @@ -413,6 +414,14 @@ const AppDetail = ({ app }: { app: App }) => ( )} + {app.state === 'running' && app.port && ( + + Port + + {app.port} + + + )} {app.started && ( Started @@ -500,12 +509,15 @@ const Dashboard = () => { style={sidebarCollapsed ? { justifyContent: 'center', padding: '10px 12px' } : undefined} title={sidebarCollapsed ? app.name : undefined} > - {app.state === 'running' && app.icon ? ( - {app.icon} + {sidebarCollapsed ? ( + {app.icon ?? DEFAULT_EMOJI} ) : ( - + <> + {app.icon ?? DEFAULT_EMOJI} + {app.name} + + )} - {!sidebarCollapsed && app.name} ))}