From c6089f8dc36af05aa2a7ccf6e99c5b3dc1b2beaa Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Fri, 28 Aug 2026 18:56:34 +0330 Subject: [PATCH] refactor(organization-chart): update terminology and documentation for clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed terminology in the organization chart from "امتیاز" to "پکیج" for gold and silver packages to enhance clarity. - Updated comments and documentation in the codebase to reflect the new terminology and improve understanding of the statistics being displayed. - Adjusted the CHANGELOG to indicate the move of documentation to totalDoc. These changes improve the overall clarity and usability of the organization chart and related documentation. --- docs/CHANGELOG.md | 2 +- src/FrontOffice.Main/FrontOffice.Main.csproj | 5 ++--- .../Pages/Profile/Components/OrganizationChart.razor | 4 ++-- .../Utilities/NetworkMembershipDtos.cs | 10 +++++----- src/FrontOffice.Main/wwwroot/css/org-chart.css | 2 +- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 88d2fa8..0a43ad1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,4 +1,4 @@ # Docs moved to totalDoc See [totalDoc/INDEX.md](../../totalDoc/INDEX.md) for all documentation. - \ No newline at end of file + \ No newline at end of file diff --git a/src/FrontOffice.Main/FrontOffice.Main.csproj b/src/FrontOffice.Main/FrontOffice.Main.csproj index 91e20bb..8d8f9e7 100644 --- a/src/FrontOffice.Main/FrontOffice.Main.csproj +++ b/src/FrontOffice.Main/FrontOffice.Main.csproj @@ -10,9 +10,8 @@ - - - + + diff --git a/src/FrontOffice.Main/Pages/Profile/Components/OrganizationChart.razor b/src/FrontOffice.Main/Pages/Profile/Components/OrganizationChart.razor index 822efb6..5d5cdf3 100644 --- a/src/FrontOffice.Main/Pages/Profile/Components/OrganizationChart.razor +++ b/src/FrontOffice.Main/Pages/Profile/Components/OrganizationChart.razor @@ -80,7 +80,7 @@
- امتیاز طلایی: + پکیج طلایی: چپ @_statistics.GoldLeftLegTotal · راست @_statistics.GoldRightLegTotal @@ -88,7 +88,7 @@
- امتیاز نقره‌ای: + پکیج نقره‌ای: چپ @_statistics.SilverLeftLegTotal · راست @_statistics.SilverRightLegTotal diff --git a/src/FrontOffice.Main/Utilities/NetworkMembershipDtos.cs b/src/FrontOffice.Main/Utilities/NetworkMembershipDtos.cs index eb655e8..cf10924 100644 --- a/src/FrontOffice.Main/Utilities/NetworkMembershipDtos.cs +++ b/src/FrontOffice.Main/Utilities/NetworkMembershipDtos.cs @@ -27,16 +27,16 @@ public class NetworkNodeDto /// public string? PackageName { get; set; } - /// آخرین امتیاز پای چپ پکیج طلایی + /// تعداد اعضای فعال با پکیج طلایی جاری در پای چپ public int GoldLeftLegTotal { get; set; } - /// آخرین امتیاز پای راست پکیج طلایی + /// تعداد اعضای فعال با پکیج طلایی جاری در پای راست public int GoldRightLegTotal { get; set; } - /// آخرین امتیاز پای چپ پکیج نقره‌ای + /// تعداد اعضای فعال با پکیج نقره‌ای جاری در پای چپ public int SilverLeftLegTotal { get; set; } - /// آخرین امتیاز پای راست پکیج نقره‌ای + /// تعداد اعضای فعال با پکیج نقره‌ای جاری در پای راست public int SilverRightLegTotal { get; set; } } @@ -153,7 +153,7 @@ public class NetworkStatisticsDto public string WeakerLeg { get; set; } = string.Empty; // "Left" or "Right" public LastMemberDto? LastMember { get; set; } - /// آخرین امتیاز پای چپ/راست — فقط خود کاربر (نوار پایین شجره) + /// تعداد اعضای فعال با پکیج طلایی/نقره‌ای جاری در هر پا — نوار پایین شجره public int GoldLeftLegTotal { get; set; } public int GoldRightLegTotal { get; set; } public int SilverLeftLegTotal { get; set; } diff --git a/src/FrontOffice.Main/wwwroot/css/org-chart.css b/src/FrontOffice.Main/wwwroot/css/org-chart.css index 5b34af8..8a57707 100644 --- a/src/FrontOffice.Main/wwwroot/css/org-chart.css +++ b/src/FrontOffice.Main/wwwroot/css/org-chart.css @@ -141,7 +141,7 @@ max-width: 120px; } -/* D3: امتیاز طلایی/نقره‌ای فقط در نوار پایین شجره (.org-chart-stats) */ +/* D3: تعداد پکیج طلایی/نقره‌ای فقط در نوار پایین شجره (.org-chart-stats) */ /* Referral Code - only for club active members */ .node-referral { display: flex;