Update launcher

This commit is contained in:
Pranav
2025-05-22 17:22:32 -07:00
parent a5126309c2
commit 3c64f04f27
4 changed files with 13 additions and 44 deletions
@@ -1,35 +0,0 @@
<script setup>
import Icon from '../../components-next/icon/Icon.vue';
defineProps({
content: {
type: String,
required: true,
},
reasoning: {
type: String,
required: true,
},
});
</script>
<template>
<div
class="flex flex-col gap-2 p-3 rounded-lg bg-n-background/50 border border-n-weak hover:bg-n-background/80 transition-colors duration-200"
>
<div class="flex items-start gap-2">
<Icon
icon="i-lucide-sparkles"
class="w-4 h-4 mt-1 flex-shrink-0 text-n-slate-9"
/>
<p class="text-sm text-n-slate-11">{{ content }}</p>
</div>
<div v-if="reasoning" class="flex items-start gap-2 pl-6">
<Icon
icon="i-lucide-lightbulb"
class="w-4 h-4 mt-1 flex-shrink-0 text-n-slate-9"
/>
<p class="text-xs text-n-slate-10">{{ reasoning }}</p>
</div>
</div>
</template>
@@ -1,43 +0,0 @@
<script setup>
import { computed } from 'vue';
import { useStore } from 'vuex';
import { useRoute } from 'vue-router';
import Button from 'dashboard/components-next/button/Button.vue';
import { useMapGetter } from 'dashboard/composables/store';
const store = useStore();
const route = useRoute();
const getUIState = useMapGetter('uiState/getUIState');
const isSidebarOpen = computed(() => getUIState.value('isCopilotSidebarOpen'));
const isConversationRoute = computed(() => {
const CONVERSATION_ROUTES = [
'inbox_conversation',
'conversation_through_inbox',
'conversations_through_label',
'team_conversations_through_label',
'conversations_through_folders',
'conversation_through_mentions',
'conversation_through_unattended',
'conversation_through_participating',
];
return CONVERSATION_ROUTES.includes(route.name);
});
const toggleSidebar = () => {
store.dispatch('uiState/toggle', 'isCopilotSidebarOpen');
};
</script>
<template>
<div class="fixed bottom-4 right-4 z-50">
<Button
v-if="!isSidebarOpen && !isConversationRoute"
icon="i-woot-captain"
class="!rounded-full bg-n-iris-9 text-xl"
lg
@click="toggleSidebar"
/>
</div>
</template>