Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
feat(sidebar): Share feedback opens the Crisp chat instead of GitHub
Paulo Castellano216d96228812
diff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vueindex a785f11d9..6b95cbf3e 100644--- a/resources/js/components/AppSidebar.vue+++ b/resources/js/components/AppSidebar.vue@@ -149,11 +149,17 @@ const workspaceNavItems = computed<NavItem[]>(() => [: []),]);-const supportNavItems = computed<NavItem[]>(() => [+const openFeedbackChat = () => {+ const crisp = (window as Window & { $crisp?: { push: (command: unknown[]) => void } }).$crisp;+ crisp?.push(['do', 'chat:show']);+ crisp?.push(['do', 'chat:open']);+};++const supportNavItems = computed(() => [{title: trans('sidebar.support.share_feedback'),- href: 'https://github.com/trypost-it/trypost/discussions',icon: IconMessageCircle,+ action: openFeedbackChat,},{title: trans('sidebar.support.referral'),diff --git a/resources/js/components/NavSupport.vue b/resources/js/components/NavSupport.vueindex bf301ad04..736fc619c 100644--- a/resources/js/components/NavSupport.vue+++ b/resources/js/components/NavSupport.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import type { Component } from 'vue';+import {SidebarGroup,SidebarGroupLabel,@@ -6,11 +8,16 @@ import {SidebarMenuButton,SidebarMenuItem,} from '@/components/ui/sidebar';-import { toUrl } from '@/lib/utils';-import { type NavItem } from '@/types';++interface SupportNavItem {+ title: string;+ icon: Component;+ href?: string;+ action?: () => void;+}interface Props {- items: NavItem[];+ items: SupportNavItem[];label: string;}@@ -22,8 +29,16 @@ defineProps<Props>();<SidebarGroupLabel>{{ label }}</SidebarGroupLabel><SidebarMenu><SidebarMenuItem v-for="item in items" :key="item.title">- <SidebarMenuButton as-child :tooltip="item.title">- <a :href="toUrl(item.href)" target="_blank" rel="noopener noreferrer">+ <SidebarMenuButton+ v-if="item.action"+ :tooltip="item.title"+ @click="item.action"+ >+ <component :is="item.icon" />+ <span>{{ item.title }}</span>+ </SidebarMenuButton>+ <SidebarMenuButton v-else as-child :tooltip="item.title">+ <a :href="item.href" target="_blank" rel="noopener noreferrer"><component :is="item.icon" /><span>{{ item.title }}</span></a>