feat(tour): add onboarding tours for various admin pages

- Integrated TourButton component into SettingsMenuPage, SkillsPage, SmsWalletPage, StaffPage, StaffSessionDetailPage, StaffTreatmentSessionsPage, SubscriptionPage, TagsSettingsPage, TreatmentCasesPage to enhance user onboarding experience.
- Created new tour definitions for appointments, clinics, staff management, financial management, and patient management, ensuring comprehensive guidance for users navigating the admin panel.
- Updated documentation to reflect the addition of tours and their implementation details.
This commit is contained in:
hamed
2026-08-10 10:10:20 +03:30
parent 20c8eaaad9
commit ecdefa3c24
73 changed files with 1008 additions and 76 deletions
+7
View File
@@ -606,6 +606,8 @@ function MyPatientsPageInner() {
<PageHeader
title="پرونده بیماران"
description="مراجعه‌کنندگان ثبت‌شده شما"
tourId="my-patients"
tourReady={!isLoading}
action={
canCreate ? (
<button
@@ -621,6 +623,7 @@ function MyPatientsPageInner() {
<div style={{ marginBottom: 16 }}>
<div
data-tour="patients-search"
style={{
background: "var(--surface)",
border: "1px solid var(--border)",
@@ -709,6 +712,7 @@ function MyPatientsPageInner() {
) : (
<>
<div
data-tour="patients-records"
style={
viewMode === "grid"
? { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))", gap: 14 }
@@ -1025,6 +1029,7 @@ function MyPatientsPageInner() {
<PageHeader
title={selectedPatientName}
description={`تلفن: ${selectedPatientPhone} — پرونده از ${formatDate(selectedRecord.created_at)}`}
tourId="my-patient-record"
action={
<div style={{ display: "flex", gap: 8 }}>
<button
@@ -1047,6 +1052,7 @@ function MyPatientsPageInner() {
{/* بنر اطلاعات بیمار — مطابق فیگما */}
<div
data-tour="record-banner"
style={{
background: "var(--surface)",
border: "1px solid var(--border)",
@@ -1130,6 +1136,7 @@ function MyPatientsPageInner() {
<div
className="cp-tabs"
data-tour="record-tabs"
style={{
display: "flex",
gap: 8,