Appearance
Org Performance And Compliance — Technical Map
Route / page map
| Surface | Main page / shell |
|---|---|
| Staff | StaffReport.tsx |
| Rank | RankReport.tsx |
| Violation | ViolationReport.tsx |
| Audit | AuditReport.tsx |
GraphQL / data model map
| Surface | Query / model chính |
|---|---|
| Staff | useReportStaffQuery trên account + profile |
| Rank | ReportDepartment, ReportBranch, ReportSales, ListUserByRole, và một phần ReportCustomerRevenue trong report_rank.graphql |
| Violation | GetFullDashboard, GetViolationEmployeeRanking, GetViolationDepartmentRanking, GetViolationBranchRanking, GetViolationUsersWithFullAggregation, GetViolationListSorted |
| Audit | Chưa có query/filter/table implementation thật |
Boundary với module khác
| Module | Boundary kỹ thuật |
|---|---|
user | Staff report mở employee detail của module user |
settings | Violation config/master data thuộc settings, report chỉ đọc ranking/list |
ecommerce | Rank views/functions nằm ở source ecommerce |
Rủi ro / Findings kỹ thuật
| Mức | Finding |
|---|---|
| Cao | AuditReport.tsx hiện chỉ render text placeholder. |
| Trung bình | report_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ình | RankReport trộn customer_by_revenue, branch, department trong cùng page dù chúng khác business lens. |