From ea95107713c7e8d896329d8ed5b7943d4f5b2ae3 Mon Sep 17 00:00:00 2001 From: v0 Date: Sat, 19 Jul 2025 02:17:17 +0000 Subject: [PATCH] refactor: streamline mobile interface for data analysis focus Remove settings, optimize mobile layout, highlight data analysis features Use generic company names, simulate today's timeline, responsive design Co-authored-by: null <4804959+fnvtk@users.noreply.github.com> --- app/components/BottomNav.tsx | 13 +- app/components/MobileSidebar.tsx | 135 ++--- app/user-portrait/page.tsx | 279 ++++++---- app/user-value/page.tsx | 442 +++++++++------- components/tag-rules/rule-editor.tsx | 730 +++++++++++++++++++-------- dependencies.ts | 3 + package.json | 2 + pnpm-lock.yaml | 46 ++ 8 files changed, 1072 insertions(+), 578 deletions(-) create mode 100644 dependencies.ts diff --git a/app/components/BottomNav.tsx b/app/components/BottomNav.tsx index c084a13..7139222 100644 --- a/app/components/BottomNav.tsx +++ b/app/components/BottomNav.tsx @@ -2,14 +2,13 @@ import Link from "next/link" import { usePathname } from "next/navigation" -import { Home, Users, BarChart3, Database, Settings } from "lucide-react" +import { Home, Users, Target, Database } from "lucide-react" const navItems = [ - { href: "/", icon: Home, label: "首页" }, + { href: "/", icon: Home, label: "概览" }, + { href: "/data-integration", icon: Database, label: "数据集成" }, { href: "/user-portrait", icon: Users, label: "用户画像" }, - { href: "/user-value", icon: BarChart3, label: "用户估值" }, - { href: "/data-platform", icon: Database, label: "数据中台" }, - { href: "/settings", icon: Settings, label: "设置" }, + { href: "/user-value", icon: Target, label: "价值评估" }, ] export default function BottomNav() { @@ -25,11 +24,11 @@ export default function BottomNav() { - + {item.label} ) diff --git a/app/components/MobileSidebar.tsx b/app/components/MobileSidebar.tsx index 78f0986..6a6e162 100644 --- a/app/components/MobileSidebar.tsx +++ b/app/components/MobileSidebar.tsx @@ -7,7 +7,6 @@ import { cn } from "@/lib/utils" import { Database, LayoutDashboard, - Settings, Users, Target, X, @@ -28,7 +27,7 @@ interface MobileSidebarProps { export default function MobileSidebar({ isOpen, onClose }: MobileSidebarProps) { const pathname = usePathname() const [expandedSections, setExpandedSections] = useState({ - "user-portrait": true, + "user-portrait": false, "user-value": false, }) @@ -53,55 +52,63 @@ export default function MobileSidebar({ isOpen, onClose }: MobileSidebarProps) { const navItems = [ { - title: "概览", + title: "数据概览", href: "/", - icon: , + icon: , primary: true, + description: "平台整体数据分析", }, { title: "数据集成", href: "/data-integration", - icon: , + icon: , primary: true, tag: "核心", + description: "多源数据整合平台", }, { title: "用户画像", href: "/user-portrait", - icon: , + icon: , primary: true, expandable: true, section: "user-portrait", + description: "用户标签与分群分析", children: [ { - title: "用户词", - href: "/user-portrait/user-keywords", - icon: , + title: "流量关键词", + href: "/user-portrait/keywords", + icon: , + description: "关键词价值评估", }, { title: "标签管理", href: "/user-portrait/tags", - icon: , + icon: , + description: "用户标签分类", }, ], }, { - title: "用户估值", + title: "价值评估", href: "/user-value", - icon: , + icon: , primary: true, expandable: true, section: "user-value", + description: "用户价值分析模型", children: [ { title: "估值模型", href: "/user-value/model", - icon: , + icon: , + description: "RFM价值模型", }, { - title: "用户升级路径", + title: "升级路径", href: "/user-value/upgrade-paths", - icon: , + icon: , + description: "用户价值提升", }, ], }, @@ -110,9 +117,9 @@ export default function MobileSidebar({ isOpen, onClose }: MobileSidebarProps) { const getTagColor = (tag: string) => { switch (tag) { case "核心": - return "glass-light text-orange-700 border-orange-200" + return "bg-blue-100 text-blue-700 border-blue-200" default: - return "glass-light text-gray-700 border-gray-200" + return "bg-gray-100 text-gray-700 border-gray-200" } } @@ -130,56 +137,63 @@ export default function MobileSidebar({ isOpen, onClose }: MobileSidebarProps) { {/* 侧边栏 */}
{/* 头部 */} -
-
-
- +
+
+
+
-

- 用户数字资产中台 +

+ 数据资产中台

-
{/* 导航菜单 */} -
-