Skip to content

Org Performance And Compliance — Technical Map

Route / page map

SurfaceMain page / shell
StaffStaffReport.tsx
RankRankReport.tsx
ViolationViolationReport.tsx
AuditAuditReport.tsx

GraphQL / data model map

SurfaceQuery / model chính
StaffuseReportStaffQuery trên account + profile
RankReportDepartment, ReportBranch, ReportSales, ListUserByRole, và một phần ReportCustomerRevenue trong report_rank.graphql
ViolationGetFullDashboard, GetViolationEmployeeRanking, GetViolationDepartmentRanking, GetViolationBranchRanking, GetViolationUsersWithFullAggregation, GetViolationListSorted
AuditChưa có query/filter/table implementation thật

Boundary với module khác

ModuleBoundary kỹ thuật
userStaff report mở employee detail của module user
settingsViolation config/master data thuộc settings, report chỉ đọc ranking/list
ecommerceRank views/functions nằm ở source ecommerce

Rủi ro / Findings kỹ thuật

MứcFinding
CaoAuditReport.tsx hiện chỉ render text placeholder.
Trung bìnhreport_branch từng có legacy debt formula sai ở migration cũ; cần cẩn thận khi audit môi trường snapshot cũ.
Trung bìnhRankReport trộn customer_by_revenue, branch, department trong cùng page dù chúng khác business lens.