From 37b732bae308e6d7d3355fdf4da35058e4d43659 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Tue, 1 Dec 2026 13:04:57 +0330 Subject: [PATCH] feat(web): add guided page tours and tighten shell chrome. Ship first-visit Ant tours for core menus with replay help, role-list search for large orgs, and fixed 32px workspace tabs. Co-authored-by: Cursor --- .../src/components/ContactsFilterPanel.vue | 754 +++++++++--------- apps/web/src/components/QuickCreate.vue | 13 - .../automations/AutomationCanvas.vue | 3 +- apps/web/src/components/nav/NavHubPanel.vue | 18 - apps/web/src/components/page/PageHeader.vue | 149 +++- .../components/pipeline/PipelineToolbar.vue | 7 + .../components/routines/RoutineTaskRow.vue | 2 +- apps/web/src/layouts/AppLayout.vue | 80 +- apps/web/src/lib/nav-hubs.ts | 50 -- apps/web/src/router/index.ts | 17 - apps/web/src/tours/PageTourHost.vue | 66 ++ apps/web/src/tours/catalog.ts | 388 +++++++++ apps/web/src/tours/index.ts | 6 + apps/web/src/tours/storage.ts | 15 + apps/web/src/tours/types.ts | 32 + apps/web/src/tours/useLandingTour.ts | 39 + apps/web/src/tours/usePageTour.ts | 99 +++ apps/web/src/views/ActivitiesView.vue | 79 +- apps/web/src/views/ActivityDetailView.vue | 1 + .../web/src/views/AutomationsSettingsView.vue | 23 +- apps/web/src/views/ContactsView.vue | 86 +- apps/web/src/views/LeadDetailView.vue | 1 + apps/web/src/views/LeadFormBuilderView.vue | 1 + apps/web/src/views/LeadsView.vue | 15 +- apps/web/src/views/PipelineBoardView.vue | 7 +- .../src/views/routines/RoutinesShellView.vue | 8 + .../src/views/routines/RoutinesTodayView.vue | 8 +- .../views/treasury/TreasuryAccountView.vue | 1 - .../web/src/views/treasury/TreasuryLayout.vue | 7 - .../src/views/treasury/treasuryPageChrome.ts | 5 +- 30 files changed, 1415 insertions(+), 565 deletions(-) create mode 100644 apps/web/src/tours/PageTourHost.vue create mode 100644 apps/web/src/tours/catalog.ts create mode 100644 apps/web/src/tours/index.ts create mode 100644 apps/web/src/tours/storage.ts create mode 100644 apps/web/src/tours/types.ts create mode 100644 apps/web/src/tours/useLandingTour.ts create mode 100644 apps/web/src/tours/usePageTour.ts diff --git a/apps/web/src/components/ContactsFilterPanel.vue b/apps/web/src/components/ContactsFilterPanel.vue index c7b477b..539feef 100644 --- a/apps/web/src/components/ContactsFilterPanel.vue +++ b/apps/web/src/components/ContactsFilterPanel.vue @@ -1,12 +1,26 @@ - - -
- انصراف - - اعمال - -
+ + انصراف + + اعمال + + + diff --git a/apps/web/src/components/QuickCreate.vue b/apps/web/src/components/QuickCreate.vue index f64de43..1a45469 100644 --- a/apps/web/src/components/QuickCreate.vue +++ b/apps/web/src/components/QuickCreate.vue @@ -16,7 +16,6 @@ type ItemIcon = 'user' | 'building' | 'dollar' | 'calendar-plus' | 'document'; const items: Array<{ key: string; title: string; - desc: string; icon: ItemIcon; tone: string; to: RouteLocationRaw; @@ -24,7 +23,6 @@ const items: Array<{ { key: 'person', title: 'افزودن شخص', - desc: 'مخاطب جدید را ثبت کنید', icon: 'user', tone: 'person', to: { name: 'person-new' }, @@ -32,7 +30,6 @@ const items: Array<{ { key: 'company', title: 'افزودن شرکت', - desc: 'شرکت یا سازمان جدید اضافه کنید', icon: 'building', tone: 'company', to: { name: 'company-new' }, @@ -40,7 +37,6 @@ const items: Array<{ { key: 'deal', title: 'افزودن معامله', - desc: 'فرصت یا معامله جدید ایجاد کنید', icon: 'dollar', tone: 'deal', to: { name: 'deal-new' }, @@ -48,7 +44,6 @@ const items: Array<{ { key: 'activity', title: 'افزودن فعالیت', - desc: 'تماس، جلسه، ایمیل و ... ثبت کنید', icon: 'calendar-plus', tone: 'activity', to: { name: 'activity-new' }, @@ -56,7 +51,6 @@ const items: Array<{ { key: 'note', title: 'افزودن کارت (یادداشت)', - desc: 'یادداشت یا کارت جدید ایجاد کنید', icon: 'document', tone: 'note', to: { name: 'notes' }, @@ -311,7 +305,6 @@ onBeforeUnmount(() => { {{ item.title }} - {{ item.desc }} @@ -547,12 +540,6 @@ onBeforeUnmount(() => { line-height: 1.2; } -.copy small { - font-size: var(--fs-xs); - color: var(--muted); - line-height: 1.3; -} - .fab { --fab-ease: cubic-bezier(0.22, 1, 0.36, 1); position: fixed; diff --git a/apps/web/src/components/automations/AutomationCanvas.vue b/apps/web/src/components/automations/AutomationCanvas.vue index 963f84b..6eeb66d 100644 --- a/apps/web/src/components/automations/AutomationCanvas.vue +++ b/apps/web/src/components/automations/AutomationCanvas.vue @@ -375,7 +375,7 @@ function removeBranch(lane: BranchLane) {