From 4fc4d5953dfdd4083f68154fbf27cbae63a081c9 Mon Sep 17 00:00:00 2001 From: estifanos Date: Wed, 5 Aug 2026 07:54:28 +0000 Subject: [PATCH] fix(LicenseQueuePage): reduce default page size to 10 and set default sorting for queue display --- .../app/features/license-review/pages/LicenseQueuePage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx b/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx index 2e489d968..7faf7b77a 100644 --- a/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx +++ b/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx @@ -65,7 +65,7 @@ import { setDensity } from '../../../store/preferences.slice'; import { useAppDispatch, useAppSelector } from '../../../store/hooks'; import { KEYBOARD_SHORTCUTS, useQueueKeyboard } from '../useQueueKeyboard'; -const PAGE_SIZE = 25; +const PAGE_SIZE = 10; const SEARCH_DEBOUNCE_MS = 300; const ALL_STATUSES: LicenseStatus[] = [ @@ -132,6 +132,11 @@ export function LicenseQueuePage() { ...urlFilter, search: debouncedSearch || undefined, licenseTypeId: pinnedTypeId ?? urlFilter.licenseTypeId, + // No explicit sort in the URL or view → newest submissions first, so + // the queue opens showing what most needs attention rather than + // whatever order the backend happens to return. + sortBy: urlFilter.sortBy ?? 'submittedAt', + sortDir: urlFilter.sortDir ?? 'DESC', take: PAGE_SIZE, skip: (page - 1) * PAGE_SIZE, }),