update the api

This commit is contained in:
2026-09-10 19:25:07 +05:30
parent bfe4d3d2f2
commit d2e090214a
8 changed files with 65 additions and 70 deletions

View File

@@ -33,12 +33,7 @@ export default function LeaderboardPage() {
<FeatureUnavailable
title="Attendance and performance ranking"
description="Ranking staff needs rostering data — shifts, attendance, sales attributed per person — which the platform does not record. /api/team answers who can sign in, not who was on the floor."
endpoints={[
'GET /api/staff — shop-floor roster, distinct from console accounts',
'GET /api/staff/attendance — present, late, absent, on leave',
'GET /api/reports/staff-sales — sales attributed per person',
]}
description="Ranking staff needs shift and attendance records, and sales credited to the person who made them. The platform records who can sign in to this console — not who was on the shop floor, or which sale was theirs. Until the app records that, any ranking here would be guesswork."
/>
</VStack>
);