From 2ec84cdf9e52ab4a7a30eb1c2adba9a426e72c70 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Tue, 14 Jul 2026 15:16:41 +0330 Subject: [PATCH] =?UTF-8?q?refactor(sidebar):=20single=20'=D8=AA=D9=86?= =?UTF-8?q?=D8=B8=DB=8C=D9=85=D8=A7=D8=AA'=20entry,=20move=20settings=20it?= =?UTF-8?q?ems=20out=20of=20main=20nav?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the doctor and clinic roles, collapse the subscription section into one 'تنظیمات' item (Cog icon) pointing at /admin/subscription, matching the tauri main sidebar. Remove the items that now live in the in-page settings submenu (insurance-pricing, clinic-services, sms-wallet) from the main nav so they are not duplicated. Secretary (no settings page) is unchanged. Co-Authored-By: Claude Opus 4.8 --- assets/admin/components/layout/Sidebar.tsx | 53 ++++------------------ 1 file changed, 10 insertions(+), 43 deletions(-) diff --git a/assets/admin/components/layout/Sidebar.tsx b/assets/admin/components/layout/Sidebar.tsx index c8b1f8fa..307539c8 100644 --- a/assets/admin/components/layout/Sidebar.tsx +++ b/assets/admin/components/layout/Sidebar.tsx @@ -23,7 +23,6 @@ import { UserGroupIcon, UserPlusIcon, UsersIcon, - WrenchScrewdriverIcon, } from "@heroicons/react/24/outline"; import { NavLink, useNavigate } from "react-router-dom"; import { useSubscription } from "../../hooks/useSubscription"; @@ -214,12 +213,6 @@ function buildSections( label: "پرونده بیماران", feature: "patient_records", }, - { - to: "/admin/insurance-pricing", - icon: ShieldCheckIcon, - label: "قیمت‌گذاری بیمه", - feature: "insurance", - }, { to: "/admin/claims", icon: DocumentTextIcon, @@ -232,27 +225,17 @@ function buildSections( icon: IdentificationIcon, label: "منشی ها", }, - { - to: "/admin/clinic-services", - icon: WrenchScrewdriverIcon, - label: "سرویس‌ها", - feature: "services", - }, - { - to: "/admin/sms-wallet", - icon: DevicePhoneMobileIcon, - label: "کیف پول پیامک", - feature: "sms_panel", - }, ], }, { - label: "اشتراک", + // مدیریت بیمه / سرویس‌ها / کیف پول پیامک زیر همین «تنظیمات» است + // (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی. + label: "تنظیمات", items: [ { to: "/admin/subscription", - icon: CreditCardIcon, - label: "پنل اشتراکی", + icon: Cog6ToothIcon, + label: "تنظیمات", }, ], }, @@ -295,12 +278,6 @@ function buildSections( label: "پرونده بیماران", feature: "patient_records", }, - { - to: "/admin/insurance-pricing", - icon: ShieldCheckIcon, - label: "قیمت‌گذاری بیمه", - feature: "insurance", - }, { to: "/admin/claims", icon: DocumentTextIcon, @@ -313,27 +290,17 @@ function buildSections( icon: IdentificationIcon, label: "منشی ها", }, - { - to: "/admin/clinic-services", - icon: WrenchScrewdriverIcon, - label: "سرویس‌ها", - feature: "services", - }, - { - to: "/admin/sms-wallet", - icon: DevicePhoneMobileIcon, - label: "کیف پول پیامک", - feature: "sms_panel", - }, ], }, { - label: "اشتراک", + // مدیریت بیمه / سرویس‌ها / کیف پول پیامک زیر همین «تنظیمات» است + // (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی. + label: "تنظیمات", items: [ { to: "/admin/subscription", - icon: CreditCardIcon, - label: "پنل اشتراکی", + icon: Cog6ToothIcon, + label: "تنظیمات", }, ], },