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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user