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

Remove the Share feedback entry from the Support section and its
share_feedback i18n key in all three locales; NavSupport is links-only again.
This commit is contained in:
Paulo Castellano 2026-06-22 17:30:34 -03:00
parent 216d962288
commit 4260a5c7fe
5 changed files with 2 additions and 26 deletions

View file

@ -55,7 +55,6 @@
'support' => [
'discord' => 'Discord',
'share_feedback' => 'Share feedback',
'last_updates' => 'Last Updates',
'docs' => 'Documentation',
'referral' => 'Earn 30% referral',

View file

@ -55,7 +55,6 @@
'support' => [
'discord' => 'Discord',
'share_feedback' => 'Dar feedback',
'last_updates' => 'Últimas actualizaciones',
'docs' => 'Documentación',
'referral' => 'Gana 30% de comisión',

View file

@ -55,7 +55,6 @@
'support' => [
'discord' => 'Discord',
'share_feedback' => 'Enviar feedback',
'last_updates' => 'Últimas Atualizações',
'docs' => 'Documentação',
'referral' => 'Ganhe 30% de indicação',

View file

@ -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/',

View file

@ -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>