updates on the agent ui and all those things
This commit is contained in:
@@ -271,6 +271,8 @@ export default function AdminLayout() {
|
||||
|
||||
const displayName = user?.displayname || user?.authname || user?.name || 'Operator';
|
||||
const isHome = location.pathname === '/doormile/home' || location.pathname === '/doormile' || location.pathname === '/';
|
||||
const isAgentsPage = location.pathname === '/doormile/agents' || location.pathname.startsWith('/doormile/agents');
|
||||
const hideAssistant = isHome || isAgentsPage;
|
||||
|
||||
return (
|
||||
/* Transparent so the ambient canvas painted behind the app reads through.
|
||||
@@ -519,7 +521,7 @@ export default function AdminLayout() {
|
||||
page runs the assistant as the page itself, so neither the docked
|
||||
panel nor its launcher belongs there. Splitting these two rules apart
|
||||
is how you end up with a button that opens nothing. */}
|
||||
{!isHome && (
|
||||
{!hideAssistant && (
|
||||
<>
|
||||
<AILauncher isOpen={assistantOpen} onToggle={() => toggleAssistant((open) => !open)} />
|
||||
<AIPanel isOpen={assistantOpen} onClose={() => toggleAssistant(false)} />
|
||||
|
||||
Reference in New Issue
Block a user