diff --git a/web/src/components/AssistantChat/HappyComposer.tsx b/web/src/components/AssistantChat/HappyComposer.tsx index a350b27b..320bb7db 100644 --- a/web/src/components/AssistantChat/HappyComposer.tsx +++ b/web/src/components/AssistantChat/HappyComposer.tsx @@ -436,7 +436,7 @@ export function HappyComposer(props: { ]) return ( -
+
{overlays} diff --git a/web/src/components/SessionList.tsx b/web/src/components/SessionList.tsx index 3ca0920a..c33fcd69 100644 --- a/web/src/components/SessionList.tsx +++ b/web/src/components/SessionList.tsx @@ -98,22 +98,27 @@ export function SessionList(props: { onNewSession: () => void onRefresh: () => void isLoading: boolean + renderHeader?: boolean }) { + const { renderHeader = true } = props + return (
-
-
- {props.sessions.length} sessions + {renderHeader ? ( +
+
+ {props.sessions.length} sessions +
+
- -
+ ) : null}
{props.sessions.map((s) => ( diff --git a/web/src/router.tsx b/web/src/router.tsx index 09865a2f..ce325829 100644 --- a/web/src/router.tsx +++ b/web/src/router.tsx @@ -44,6 +44,26 @@ function BackIcon(props: { className?: string }) { ) } +function PlusIcon(props: { className?: string }) { + return ( + + + + + ) +} + function SessionsPage() { const { api } = useAppContext() const navigate = useNavigate() @@ -54,18 +74,40 @@ function SessionsPage() { }, [refetch]) return ( -
- {error ?
{error}
: null} - navigate({ - to: '/sessions/$sessionId', - params: { sessionId }, - })} - onNewSession={() => navigate({ to: '/sessions/new' })} - onRefresh={handleRefresh} - isLoading={isLoading} - /> +
+
+
+
+ {sessions.length} sessions +
+ +
+
+
+ {error ? ( +
+
{error}
+
+ ) : null} + navigate({ + to: '/sessions/$sessionId', + params: { sessionId }, + })} + onNewSession={() => navigate({ to: '/sessions/new' })} + onRefresh={handleRefresh} + isLoading={isLoading} + renderHeader={false} + /> +
) }