feat(web): add Ant workspace tabs and harden page chrome

Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-25 16:53:04 +03:30
co-authored by Cursor
parent 1992474273
commit cc68b2d9f3
86 changed files with 5446 additions and 3885 deletions
+14 -21
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';
import { RouterLink, useRouter } from 'vue-router';
import { RouterLink } from 'vue-router';
import type { DiscDistributionRow } from '@mento/shared';
import {
Alert as AAlert,
@@ -11,17 +11,17 @@ import {
Flex as AFlex,
Progress as AProgress,
Row as ARow,
Space as ASpace,
Typography,
} from 'ant-design-vue';
import { ArrowRightOutlined, DownloadOutlined } from '@/icons/ant-bridge';
import { DownloadOutlined } from '@/icons/ant-bridge';
import { api } from '@/lib/api';
import { toFaDigits } from '@/lib/jalali';
import { CrmSkeleton, CrmSkeletonCard } from '@/components/skeleton';
const { Title: ATypographyTitle, Text: ATypographyText } = Typography;
import { PageHeader } from '@/components/page';
import { BarChartOutlined } from '@/icons/ant-bridge';
const { Text: ATypographyText } = Typography;
const router = useRouter();
const rows = ref<DiscDistributionRow[]>([]);
const error = ref('');
const loading = ref(true);
@@ -66,26 +66,19 @@ function percentOf(count: number) {
<template>
<a-row :gutter="[16, 16]">
<a-col :span="24">
<a-flex justify="space-between" align="center" wrap="wrap" :gap="12">
<div>
<a-typography-title :level="3" :style="{ margin: 0 }">
توزیع تیپ‌های DISC
</a-typography-title>
<a-typography-text type="secondary">
فقط ارزیابی‌های تأییدشده و قابل اتکا، در محدودهٔ دسترسی شما
</a-typography-text>
</div>
<a-space wrap>
<a-button @click="router.push({ name: 'contacts' })">
<template #icon><ArrowRightOutlined /></template>
بازگشت
</a-button>
<PageHeader
title="توزیع تیپ‌های DISC"
subtitle="فقط ارزیابی‌های تأییدشده و قابل اتکا، در محدودهٔ دسترسی شما"
:icon="BarChartOutlined"
:back-to="{ name: 'contacts' }"
>
<template #actions>
<a-button :disabled="exporting" :loading="exporting" @click="exportExcel">
<template #icon><DownloadOutlined /></template>
خروجی اکسل
</a-button>
</a-space>
</a-flex>
</template>
</PageHeader>
</a-col>
<a-col :span="24">