From de613d909d64b4e1853032447df671939ddad9b2 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Mon, 2 Feb 2026 05:53:44 +0300 Subject: [PATCH] fix: remove quick actions section and optimize build chunks - Remove "Quick Actions" section from Dashboard - Remove unused SupportLottieIcon component - Add missing Radix UI components to vendor-radix chunk - Add dompurify and cmdk to vendor chunks - Increase chunk size warning limit to 550KB --- src/pages/Dashboard.tsx | 44 ----------------------------------------- vite.config.ts | 5 +++++ 2 files changed, 5 insertions(+), 44 deletions(-) diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 534a7cd..96a9eb9 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -45,16 +45,6 @@ const RefreshIcon = ({ className = 'w-4 h-4' }: { className?: string }) => ( ); -const SupportLottieIcon = () => ( - - - -); - export default function Dashboard() { const { t } = useTranslation(); const { user, refreshUser } = useAuthStore(); @@ -244,13 +234,6 @@ export default function Dashboard() { }); } - steps.push({ - target: 'quick-actions', - title: t('onboarding.steps.quickActions.title'), - description: t('onboarding.steps.quickActions.description'), - placement: 'top', - }); - return steps; }, [t, subscription]); @@ -652,33 +635,6 @@ export default function Dashboard() { )} - {/* Quick Actions */} -
-

{t('dashboard.quickActions')}

-
- - {t('dashboard.topUpBalance')} - - - {t('subscription.renew')} - - - {t('dashboard.inviteFriends')} - - - - {t('dashboard.getSupport')} - -
-
- {/* Connection Modal */} {showConnectionModal && setShowConnectionModal(false)} />} diff --git a/vite.config.ts b/vite.config.ts index cec7785..0420b8d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -28,6 +28,7 @@ export default defineConfig({ build: { outDir: 'dist', sourcemap: false, + chunkSizeWarningLimit: 550, rollupOptions: { output: { manualChunks: { @@ -44,6 +45,8 @@ export default defineConfig({ '@radix-ui/react-tabs', '@radix-ui/react-switch', '@radix-ui/react-alert-dialog', + '@radix-ui/react-slot', + '@radix-ui/react-visually-hidden', ], 'vendor-dnd': ['@dnd-kit/core', '@dnd-kit/sortable', '@dnd-kit/utilities'], 'vendor-telegram': ['@tma.js/sdk-react'], @@ -53,9 +56,11 @@ export default defineConfig({ 'clsx', 'tailwind-merge', 'class-variance-authority', + 'dompurify', ], 'vendor-lottie': ['@lottiefiles/dotlottie-react'], 'vendor-webgl': ['ogl'], + 'vendor-cmdk': ['cmdk'], }, }, },