Spaces:
Running
Running
axeronis commited on
Commit ·
d8e601b
1
Parent(s): 305a6e6
feat(ui): hide billing, partner program and filter channels to telegram only
Browse files
frontend/app/channels/page.tsx
CHANGED
|
@@ -99,10 +99,10 @@ export default function ChannelsPage() {
|
|
| 99 |
<div className="grid grid-cols-1 lg:grid-cols-4 gap-8">
|
| 100 |
|
| 101 |
{/* Channels Grid */}
|
| 102 |
-
<div className="lg:col-span-3 grid grid-cols-1 md:grid-cols-
|
| 103 |
|
| 104 |
-
{/* WhatsApp Card */}
|
| 105 |
-
<ChannelCard
|
| 106 |
title="WhatsApp"
|
| 107 |
icon={<WhatsAppIcon className="w-24 h-24 text-white" />}
|
| 108 |
gradient="from-emerald-500 to-[#0A3D25]"
|
|
@@ -112,10 +112,10 @@ export default function ChannelsPage() {
|
|
| 112 |
stats={{ users: 0, messages: 0, clicks: 0 }}
|
| 113 |
onConfigure={() => { }} // Disabled for now
|
| 114 |
onDisconnect={() => { }}
|
| 115 |
-
/>
|
| 116 |
|
| 117 |
-
{/* Instagram Card */}
|
| 118 |
-
<ChannelCard
|
| 119 |
title="Instagram"
|
| 120 |
icon={<InstagramIcon className="w-24 h-24 text-white" />}
|
| 121 |
gradient="from-[#E1306C] to-[#581C87]"
|
|
@@ -125,9 +125,9 @@ export default function ChannelsPage() {
|
|
| 125 |
stats={{ users: 0, messages: 0, clicks: 0 }}
|
| 126 |
onConfigure={() => { }} // Placeholder
|
| 127 |
onDisconnect={() => { }}
|
| 128 |
-
/>
|
| 129 |
|
| 130 |
-
{/* Telegram Card */}
|
| 131 |
<ChannelCard
|
| 132 |
title="Telegram"
|
| 133 |
icon={<TelegramIcon className="w-24 h-24 text-white" />}
|
|
@@ -175,7 +175,7 @@ export default function ChannelsPage() {
|
|
| 175 |
|
| 176 |
{/* Channel Legend */}
|
| 177 |
<div className="space-y-3 pt-4 border-t border-white/10">
|
| 178 |
-
<div className="flex items-center gap-3">
|
| 179 |
<div className="w-8 h-8 rounded-lg bg-emerald-500/20 flex items-center justify-center">
|
| 180 |
<WhatsAppIcon className="w-4 h-4 text-emerald-400" />
|
| 181 |
</div>
|
|
@@ -186,7 +186,7 @@ export default function ChannelsPage() {
|
|
| 186 |
<InstagramIcon className="w-4 h-4 text-pink-400" />
|
| 187 |
</div>
|
| 188 |
<span className="text-sm text-slate-300">Instagram</span>
|
| 189 |
-
</div>
|
| 190 |
<div className="flex items-center gap-3">
|
| 191 |
<div className="w-8 h-8 rounded-lg bg-blue-500/20 flex items-center justify-center">
|
| 192 |
<TelegramIcon className="w-4 h-4 text-blue-400" />
|
|
|
|
| 99 |
<div className="grid grid-cols-1 lg:grid-cols-4 gap-8">
|
| 100 |
|
| 101 |
{/* Channels Grid */}
|
| 102 |
+
<div className="lg:col-span-3 grid grid-cols-1 md:grid-cols-1 gap-8">
|
| 103 |
|
| 104 |
+
{/* WhatsApp Card - HIDDEN AS REQUESTED */}
|
| 105 |
+
{/* <ChannelCard
|
| 106 |
title="WhatsApp"
|
| 107 |
icon={<WhatsAppIcon className="w-24 h-24 text-white" />}
|
| 108 |
gradient="from-emerald-500 to-[#0A3D25]"
|
|
|
|
| 112 |
stats={{ users: 0, messages: 0, clicks: 0 }}
|
| 113 |
onConfigure={() => { }} // Disabled for now
|
| 114 |
onDisconnect={() => { }}
|
| 115 |
+
/> */}
|
| 116 |
|
| 117 |
+
{/* Instagram Card - HIDDEN AS REQUESTED */}
|
| 118 |
+
{/* <ChannelCard
|
| 119 |
title="Instagram"
|
| 120 |
icon={<InstagramIcon className="w-24 h-24 text-white" />}
|
| 121 |
gradient="from-[#E1306C] to-[#581C87]"
|
|
|
|
| 125 |
stats={{ users: 0, messages: 0, clicks: 0 }}
|
| 126 |
onConfigure={() => { }} // Placeholder
|
| 127 |
onDisconnect={() => { }}
|
| 128 |
+
/> */}
|
| 129 |
|
| 130 |
+
{/* Telegram Card - ONLY ONE SHOWN */}
|
| 131 |
<ChannelCard
|
| 132 |
title="Telegram"
|
| 133 |
icon={<TelegramIcon className="w-24 h-24 text-white" />}
|
|
|
|
| 175 |
|
| 176 |
{/* Channel Legend */}
|
| 177 |
<div className="space-y-3 pt-4 border-t border-white/10">
|
| 178 |
+
{/* <div className="flex items-center gap-3">
|
| 179 |
<div className="w-8 h-8 rounded-lg bg-emerald-500/20 flex items-center justify-center">
|
| 180 |
<WhatsAppIcon className="w-4 h-4 text-emerald-400" />
|
| 181 |
</div>
|
|
|
|
| 186 |
<InstagramIcon className="w-4 h-4 text-pink-400" />
|
| 187 |
</div>
|
| 188 |
<span className="text-sm text-slate-300">Instagram</span>
|
| 189 |
+
</div> */}
|
| 190 |
<div className="flex items-center gap-3">
|
| 191 |
<div className="w-8 h-8 rounded-lg bg-blue-500/20 flex items-center justify-center">
|
| 192 |
<TelegramIcon className="w-4 h-4 text-blue-400" />
|
frontend/components/SecondaryNav.tsx
CHANGED
|
@@ -32,8 +32,8 @@ const navItems = [
|
|
| 32 |
{ href: '/settings/playbook', icon: FileText, labelKey: 'nav.funnel', label: 'Воронка', ownerOnly: true },
|
| 33 |
{ href: '/settings/team', icon: Users, labelKey: 'nav.team', label: 'Команда', ownerOnly: true },
|
| 34 |
{ href: '/settings/notifications', icon: Bell, labelKey: 'nav.notifications', label: 'Уведомления', ownerOnly: false },
|
| 35 |
-
{ href: '/settings/billing', icon: CreditCard, labelKey: 'nav.billing', label: 'Тарифы', ownerOnly: true },
|
| 36 |
-
{ href: '/partner', icon: Zap, labelKey: 'nav.partner', label: 'Партнёрам', ownerOnly: true },
|
| 37 |
]
|
| 38 |
|
| 39 |
export function SecondaryNav() {
|
|
|
|
| 32 |
{ href: '/settings/playbook', icon: FileText, labelKey: 'nav.funnel', label: 'Воронка', ownerOnly: true },
|
| 33 |
{ href: '/settings/team', icon: Users, labelKey: 'nav.team', label: 'Команда', ownerOnly: true },
|
| 34 |
{ href: '/settings/notifications', icon: Bell, labelKey: 'nav.notifications', label: 'Уведомления', ownerOnly: false },
|
| 35 |
+
// { href: '/settings/billing', icon: CreditCard, labelKey: 'nav.billing', label: 'Тарифы', ownerOnly: true },
|
| 36 |
+
// { href: '/partner', icon: Zap, labelKey: 'nav.partner', label: 'Партнёрам', ownerOnly: true },
|
| 37 |
]
|
| 38 |
|
| 39 |
export function SecondaryNav() {
|
frontend/components/Sidebar.tsx
CHANGED
|
@@ -66,8 +66,8 @@ const settingsItems = [
|
|
| 66 |
{ href: '/settings/playbook', icon: FileText, labelKey: 'nav.funnel', ownerOnly: true },
|
| 67 |
{ href: '/settings/team', icon: Users, labelKey: 'nav.team', ownerOnly: true },
|
| 68 |
{ href: '/settings/notifications', icon: Bell, labelKey: 'nav.notifications', ownerOnly: false },
|
| 69 |
-
{ href: '/settings/billing', icon: CreditCard, labelKey: 'nav.billing', ownerOnly: true },
|
| 70 |
-
{ href: '/partner', icon: Zap, labelKey: 'nav.partner', ownerOnly: true },
|
| 71 |
]
|
| 72 |
|
| 73 |
// ============================================================================
|
|
@@ -259,8 +259,8 @@ export function Sidebar() {
|
|
| 259 |
</div>
|
| 260 |
</motion.div>
|
| 261 |
)}
|
| 262 |
-
{/* Trial/Subscription Banner -
|
| 263 |
-
{usageStats && isOwner && !isAdmin && (
|
| 264 |
<motion.div
|
| 265 |
initial={{ opacity: 0 }}
|
| 266 |
animate={{ opacity: 1 }}
|
|
@@ -287,7 +287,6 @@ export function Sidebar() {
|
|
| 287 |
</span>
|
| 288 |
</div>
|
| 289 |
|
| 290 |
-
{/* Progress bar - hide for unlimited plans */}
|
| 291 |
{!isUnlimited && (
|
| 292 |
<div className="mb-2">
|
| 293 |
<div className="flex justify-between text-[10px] text-slate-500 mb-1">
|
|
@@ -324,7 +323,7 @@ export function Sidebar() {
|
|
| 324 |
</Link>
|
| 325 |
)}
|
| 326 |
</motion.div>
|
| 327 |
-
)}
|
| 328 |
|
| 329 |
</nav>
|
| 330 |
)
|
|
|
|
| 66 |
{ href: '/settings/playbook', icon: FileText, labelKey: 'nav.funnel', ownerOnly: true },
|
| 67 |
{ href: '/settings/team', icon: Users, labelKey: 'nav.team', ownerOnly: true },
|
| 68 |
{ href: '/settings/notifications', icon: Bell, labelKey: 'nav.notifications', ownerOnly: false },
|
| 69 |
+
// { href: '/settings/billing', icon: CreditCard, labelKey: 'nav.billing', ownerOnly: true },
|
| 70 |
+
// { href: '/partner', icon: Zap, labelKey: 'nav.partner', ownerOnly: true },
|
| 71 |
]
|
| 72 |
|
| 73 |
// ============================================================================
|
|
|
|
| 259 |
</div>
|
| 260 |
</motion.div>
|
| 261 |
)}
|
| 262 |
+
{/* Trial/Subscription Banner - HIDDEN AS REQUESTED */}
|
| 263 |
+
{/* {usageStats && isOwner && !isAdmin && (
|
| 264 |
<motion.div
|
| 265 |
initial={{ opacity: 0 }}
|
| 266 |
animate={{ opacity: 1 }}
|
|
|
|
| 287 |
</span>
|
| 288 |
</div>
|
| 289 |
|
|
|
|
| 290 |
{!isUnlimited && (
|
| 291 |
<div className="mb-2">
|
| 292 |
<div className="flex justify-between text-[10px] text-slate-500 mb-1">
|
|
|
|
| 323 |
</Link>
|
| 324 |
)}
|
| 325 |
</motion.div>
|
| 326 |
+
)} */}
|
| 327 |
|
| 328 |
</nav>
|
| 329 |
)
|