diff --git a/ROADMAP.md b/ROADMAP.md index c87f260..4759da1 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -327,7 +327,7 @@ - Generare și descărcare document Word (`.docx`) gol care conține imaginea inserată automat. - Generare și descărcare document PDF gol care conține imaginea inserată automat. -### 3.08 `[BUSINESS]` IT Inventory — Simplificare și Status Nou +### 3.08 ✅ `[BUSINESS]` IT Inventory — Simplificare și Status Nou (2026-02-28) **Cerințe noi:** @@ -341,6 +341,8 @@ - Echipamentele care au aceste date completate vor fi randate automat în vizualizarea grafică a rack-ului. - La hover pe un echipament din rack, va apărea un tooltip cu detaliile de bază (Nume, IP, Status). +**Status:** ✅ Done. Rewrote types.ts: dynamic `InventoryItemType` (string-based) with `DEFAULT_EQUIPMENT_TYPES` (added server/switch/ups/patch-panel), `RACK_MOUNTABLE_TYPES` set, new "rented" status with `STATUS_LABELS` export. Removed deprecated fields (assignedTo, purchaseDate, purchaseCost, warrantyExpiry). Added `rackPosition`/`rackSize` fields. New `server-rack.tsx` — 42U rack visualization with color-coded status slots and tooltips. Rewrote module component: tabbed UI (Inventar + Rack 42U), 5 stat cards with purple pulse animation for rented count, inline custom type creation, conditional rack position fields for mountable types. + ### 3.09 ✅ `[BUSINESS]` Address Book — Tipuri Dinamice (2026-02-27) **Cerințe noi:** diff --git a/SESSION-LOG.md b/SESSION-LOG.md index ca85b97..cd40d18 100644 --- a/SESSION-LOG.md +++ b/SESSION-LOG.md @@ -8,7 +8,7 @@ ### Context -Continued Phase 3. Fixed critical Registratura bugs reported by user + started next task. +Continued Phase 3. Fixed critical Registratura bugs reported by user + implemented task 3.08 IT Inventory improvements. ### Completed @@ -20,6 +20,14 @@ Continued Phase 3. Fixed critical Registratura bugs reported by user + started n 5. **Backdating support** — Date field renamed "Data document" with tooltip explaining retroactive registration. Added `registrationDate` field on RegistryEntry (auto = today). Registry table shows "(înr. DATE)" when registrationDate differs from document date. Numbers remain sequential regardless of document date. 6. **"Actualizează" button feedback** — Submit button now shows loading spinner when saving, disabled during upload. `onSubmit` prop accepts `Promise` for proper async tracking. +- **Task 3.08 — IT Inventory Improvements:** + - Rewrote `types.ts`: dynamic `InventoryItemType` (string-based), `DEFAULT_EQUIPMENT_TYPES` with server/switch/ups/patch-panel, `RACK_MOUNTABLE_TYPES` set, new "rented" status, `STATUS_LABELS` export + - Removed deprecated fields: assignedTo, assignedToContactId, purchaseDate, purchaseCost, warrantyExpiry + - Added rack fields: `rackPosition` (1–42), `rackSize` (1–4U) + - New `server-rack.tsx`: 42U rack visualization with color-coded status slots, tooltips, occupied/empty rendering + - Rewrote `it-inventory-module.tsx`: tabbed UI (Inventar + Rack 42U), 5 stat cards with purple pulse for rented, inline custom type creation ("Tip nou" input), conditional rack position fields for RACK_MOUNTABLE_TYPES, simplified form + - Fixed search filter in `use-inventory.ts`: removed `assignedTo` reference, added rackLocation/location + ### Files Modified - `src/modules/registratura/types.ts` — Added `ClosureResolution` type, `registrationDate` field on RegistryEntry, `resolution` field on ClosureInfo @@ -29,10 +37,15 @@ Continued Phase 3. Fixed critical Registratura bugs reported by user + started n - `src/modules/registratura/components/registry-table.tsx` — "Data doc." header, shows registrationDate when different - `src/modules/registratura/components/close-guard-dialog.tsx` — Resolution selector added - `src/modules/registratura/components/closure-banner.tsx` — Resolution badge display +- `src/modules/it-inventory/types.ts` — Complete rewrite: dynamic types, rented status, rack fields +- `src/modules/it-inventory/hooks/use-inventory.ts` — Updated imports, fixed search filter +- `src/modules/it-inventory/components/it-inventory-module.tsx` — Complete rewrite: tabbed UI, dynamic types, rack fields +- `src/modules/it-inventory/components/server-rack.tsx` — NEW: 42U rack visualization ### Commits - `8042df4` fix(registratura): prevent duplicate numbers, add upload progress, submission lock, unified close/resolve, backdating support +- `346e40d` feat(it-inventory): dynamic types, rented status, rack visualization, simplified form ---