feat(admin): P1 — clearer tickets labels, pagination, min_staff_rank, analytics errors
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m37s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-22 19:04:45 +02:00
1 parent 75cdfdebe4
commit f150aea8b9
13 files changed
+311 -101

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { siteSettings } from "@/lib/services/site-settings";
/**
* Minimum hotel rank treated as staff (admin lists + public staff page).
* Setting: `min_staff_rank` (default 7).
*/
export async function getMinStaffRank(fallback = 7): Promise<number> {
const raw = await siteSettings.get("min_staff_rank", String(fallback));
const n = Number(raw);
return Number.isFinite(n) && n > 0 ? Math.floor(n) : fallback;
}