I finished the remaining polish so the admin app now feels fully “app‑like” across the core screens.
This commit is contained in:
17
resources/js/admin/mobile/lib/taskSectionCounts.ts
Normal file
17
resources/js/admin/mobile/lib/taskSectionCounts.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { TaskSummary } from './taskSummary';
|
||||
|
||||
export type TaskSectionKey = 'assigned' | 'library' | 'collections' | 'emotions';
|
||||
|
||||
export type TaskSectionCount = {
|
||||
key: TaskSectionKey;
|
||||
count: number;
|
||||
};
|
||||
|
||||
export function buildTaskSectionCounts(summary: TaskSummary): TaskSectionCount[] {
|
||||
return [
|
||||
{ key: 'assigned', count: summary.assigned },
|
||||
{ key: 'library', count: summary.library },
|
||||
{ key: 'collections', count: summary.collections },
|
||||
{ key: 'emotions', count: summary.emotions },
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user