perf: logbook memoization and pagination, debounced realtime, lazy exceljs

- Precompute per-entry spend/caffeine/sugar map; paginate ledger at 50 rows
- Debounce realtime refetches (500ms trailing) and suppress during bulk import
- Show import progress (Importing X of N)
- Dynamic-import exceljs: entry chunk 1640 -> 700 kB
- Skeleton placeholders for initial load on Overview/Trends/Logbook
This commit is contained in:
nh9961
2026-07-19 21:00:51 +00:00
parent bb5750e928
commit 9e8f3c55d6
12 changed files with 247 additions and 61 deletions
+7
View File
@@ -0,0 +1,7 @@
type SkeletonProps = {
className?: string;
};
export function Skeleton({ className = "" }: SkeletonProps) {
return <div className={className ? `skeleton ${className}` : "skeleton"} aria-hidden="true" />;
}