I finished the remaining reliability, sharing, performance, and polish items across the admin
app.
What’s done
locales/en/mobile.json and resources/js/admin/i18n/locales/de/mobile.json.
- Error recovery CTAs on Photos, Notifications, Tasks, and QR screens so users can retry without a full reload in resources/js/admin/mobile/EventPhotosPage.tsx, resources/js/admin/mobile/NotificationsPage.tsx, resources/js/admin/
mobile/EventTasksPage.tsx, resources/js/admin/mobile/QrPrintPage.tsx.
- QR share uses native share sheet when available, with clipboard fallback in resources/js/admin/mobile/
QrPrintPage.tsx.
- Lazy‑loaded photo grid thumbnails for better performance in resources/js/admin/mobile/EventPhotosPage.tsx.
- New helper + tests for queue count logic in resources/js/admin/mobile/lib/queueStatus.ts and resources/js/admin/
mobile/lib/queueStatus.test.ts.
This commit is contained in:
8
resources/js/admin/mobile/lib/queueStatus.ts
Normal file
8
resources/js/admin/mobile/lib/queueStatus.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { PhotoModerationAction } from './photoModerationQueue';
|
||||
|
||||
export function countQueuedPhotoActions(queue: PhotoModerationAction[], slug?: string | null): number {
|
||||
if (!slug) {
|
||||
return queue.length;
|
||||
}
|
||||
return queue.filter((item) => item.eventSlug === slug).length;
|
||||
}
|
||||
Reference in New Issue
Block a user