feat(dashboard): activity feed and KPI panels

This commit is contained in:
AI Assistant
2026-02-19 07:05:41 +02:00
parent 713a66bcd9
commit 1f2af98f51
4 changed files with 446 additions and 70 deletions

View File

@@ -195,7 +195,7 @@
**Status:** ✅ Done. `placeholder-parser.ts` uses JSZip to read all `word/*.xml` files from the .docx ZIP, searches for `{{...}}` patterns in both raw XML and stripped text (handles Words split-run encoding). Form now has: “Alege fișier .docx” button (local file picker, most reliable — no CORS) and a Wand icon on the URL field for URL-based detection (may fail on CORS). Parsing spinner shown during detection. Detected placeholders auto-populate the field. Build ok, pushed.
### 1.11 `[STANDARD]` Dashboard — Activity Feed + KPI Panels
### 1.11 `[STANDARD]` Dashboard — Activity Feed + KPI Panels
**What:**
@@ -205,6 +205,8 @@
**Files to modify:** `src/modules/dashboard/components/` or `src/app/(modules)/page.tsx`
**Status:** ✅ Done. Created `src/modules/dashboard/hooks/use-dashboard-data.ts` — scans all `architools:*` localStorage keys directly, extracts entities with timestamps, builds activity feed (last 20, sorted by `updatedAt`) and KPI counters. Updated `src/app/page.tsx`: KPI grid (6 cards: registratura this week, open dosare, deadlines this week, overdue in red, new contacts this month, active IT equipment), activity feed with module icon + label + action + relative time (Romanian locale). Build ok, pushed.
---
### 1.12 `[LIGHT]` Registratura — Increase Linked-Entry Selector Limit