- 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.
81 lines
3.9 KiB
TypeScript
81 lines
3.9 KiB
TypeScript
import type { TourDefinition } from '../types';
|
|
|
|
export const sessionNewTour: TourDefinition = {
|
|
id: 'session-new',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'ثبت مراجعه', body: 'یک مراجعهٔ تازه برای همین بیمار ثبت میکنید.', side: 'bottom' },
|
|
{ anchor: 'session-card', title: 'فرم مراجعه', body: 'خدمت انجامشده، پرسنل و مبلغ. بعد از ثبت، صورتحسابش قابل صدور است.', side: 'top' },
|
|
],
|
|
};
|
|
|
|
export const sessionEditTour: TourDefinition = {
|
|
id: 'session-edit',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'ویرایش مراجعه', body: 'خدمت، پرسنل یا مبلغ همین مراجعه را اصلاح کنید.', side: 'bottom' },
|
|
],
|
|
};
|
|
|
|
export const sessionPaymentTour: TourDefinition = {
|
|
id: 'session-payment',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'پرداخت مراجعه', body: 'دریافت وجه بابت این مراجعه و ثبت روش پرداخت.', side: 'bottom' },
|
|
{ anchor: 'session-card', title: 'مبلغ و روش', body: 'سهم بیمه از سهم بیمار جدا حساب میشود؛ باقیمانده همان چیزی است که دریافت میکنید.', side: 'top' },
|
|
],
|
|
};
|
|
|
|
export const patientRecordFormTour: TourDefinition = {
|
|
id: 'patient-record-form',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'پروندهٔ بیمار', body: 'ساخت یا ویرایش پروندهٔ یک مراجعهکننده.', side: 'bottom' },
|
|
{ anchor: 'record-form', title: 'فرم', body: 'موبایل کلید شناسایی بیمار است؛ کد ملی و بیمه بعداً هم قابل تکمیلاند.', side: 'top' },
|
|
],
|
|
};
|
|
|
|
export const representationBlogsTour: TourDefinition = {
|
|
id: 'representation-blogs',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'وبلاگ من', body: 'مقالههایی که نوشتهاید و وضعیت بررسی هرکدام.', side: 'bottom' },
|
|
{ anchor: 'page-action', title: 'مقالهٔ جدید', body: 'مقاله بعد از تأیید ادمین روی سایت منتشر میشود.', side: 'bottom' },
|
|
{ anchor: 'page-table', title: 'فهرست مقالهها', body: 'وضعیت هر مقاله: پیشنویس، در انتظار بررسی یا منتشرشده.', side: 'top' },
|
|
],
|
|
};
|
|
|
|
export const representationBlogFormTour: TourDefinition = {
|
|
id: 'representation-blog-form',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'نوشتن مقاله', body: 'عنوان، متن، تصویر و اطلاعات سئو مقاله.', side: 'bottom' },
|
|
],
|
|
};
|
|
|
|
export const representationFinanceTour: TourDefinition = {
|
|
id: 'representation-finance',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'گزارش مالی', body: 'پورسانت شما از اشتراکهایی که مجموعههای تحت پوششتان خریدهاند.', side: 'bottom' },
|
|
{ anchor: 'page-pagination', title: 'دورهها', body: 'رکوردهای مالی صفحهبندی شدهاند.', side: 'top' },
|
|
],
|
|
};
|
|
|
|
export const representationProfileTour: TourDefinition = {
|
|
id: 'representation-profile',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'پروفایل نماینده', body: 'مشخصات شما، شهر تحت پوشش و اطلاعات حساب بانکی برای تسویه.', side: 'bottom' },
|
|
],
|
|
};
|
|
|
|
export const representationSettlementTour: TourDefinition = {
|
|
id: 'representation-settlement',
|
|
version: 1,
|
|
steps: [
|
|
{ anchor: 'page-title', title: 'تسویه حساب', body: 'درخواست برداشت پورسانت و وضعیت درخواستهای قبلی.', side: 'bottom' },
|
|
{ anchor: 'page-pagination', title: 'تاریخچه', body: 'درخواستهای قبلی و نتیجهٔ هرکدام.', side: 'top' },
|
|
],
|
|
};
|