Skip to content

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.

refactor(sidebar): drop Share feedback item (Crisp bubble already on screen)

Paulo Castellano4260a5c7fe96
diff --git a/lang/en/sidebar.php b/lang/en/sidebar.php
index e813b6f84..aaf06b508 100644
--- a/lang/en/sidebar.php
+++ b/lang/en/sidebar.php
@@ -55,7 +55,6 @@ return [
'support' => [
'discord' => 'Discord',
- 'share_feedback' => 'Share feedback',
'last_updates' => 'Last Updates',
'docs' => 'Documentation',
'referral' => 'Earn 30% referral',
diff --git a/lang/es/sidebar.php b/lang/es/sidebar.php
index b619e075d..5e9dbd7e6 100644
--- a/lang/es/sidebar.php
+++ b/lang/es/sidebar.php
@@ -55,7 +55,6 @@ return [
'support' => [
'discord' => 'Discord',
- 'share_feedback' => 'Dar feedback',
'last_updates' => 'Últimas actualizaciones',
'docs' => 'Documentación',
'referral' => 'Gana 30% de comisión',
diff --git a/lang/pt-BR/sidebar.php b/lang/pt-BR/sidebar.php
index e2dba7a9e..42ab10d7b 100644
--- a/lang/pt-BR/sidebar.php
+++ b/lang/pt-BR/sidebar.php
@@ -55,7 +55,6 @@ return [
'support' => [
'discord' => 'Discord',
- 'share_feedback' => 'Enviar feedback',
'last_updates' => 'Últimas Atualizações',
'docs' => 'Documentação',
'referral' => 'Ganhe 30% de indicação',
diff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vue
index 6b95cbf3e..8f9e1328c 100644
--- a/resources/js/components/AppSidebar.vue
+++ b/resources/js/components/AppSidebar.vue
@@ -14,7 +14,6 @@ import {
IconFileText,
IconGift,
IconHash,
- IconMessageCircle,
IconPhoto,
IconPencil,
IconPlus,
@@ -149,18 +148,7 @@ const workspaceNavItems = 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'),
- icon: IconMessageCircle,
- action: openFeedbackChat,
- },
{
title: trans('sidebar.support.referral'),
href: 'https://affiliates.trypost.it/',
diff --git a/resources/js/components/NavSupport.vue b/resources/js/components/NavSupport.vue
index 736fc619c..d3ed0e3d6 100644
--- a/resources/js/components/NavSupport.vue
+++ b/resources/js/components/NavSupport.vue
@@ -12,8 +12,7 @@ import {
interface SupportNavItem {
title: string;
icon: Component;
- href?: string;
- action?: () => void;
+ href: string;
}
interface Props {
@@ -29,15 +28,7 @@ defineProps<Props>();
<SidebarGroupLabel>{{ label }}</SidebarGroupLabel>
<SidebarMenu>
<SidebarMenuItem v-for="item in items" :key="item.title">
- <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">
+ <SidebarMenuButton as-child :tooltip="item.title">
<a :href="item.href" target="_blank" rel="noopener noreferrer">
<component :is="item.icon" />
<span>{{ item.title }}</span>