feat(registratura): detail sheet side panel + configurable column visibility

- New registry-entry-detail.tsx: full entry visualization in Sheet (side panel)
  - Status badges, document info, parties, dates, thread links
  - Attachment preview: images inline, NAS paths with IP fallback
  - Legal deadlines, external tracking, tags, notes sections
  - Action buttons: Editează, Închide, Șterge
- Registry table rewrite:
  - 10 column defs with Romanian tooltip explanations on each header
  - Column visibility dropdown (Settings icon) with checkboxes
  - Default: Nr/Data/Dir/Subiect/Exped./Dest./Status (7/10)
  - Persisted in localStorage (registratura:visible-columns)
  - Row click opens detail sheet, actions reduced to Eye + Pencil
- Docs updated: CLAUDE.md, ROADMAP.md (3.03c), SESSION-LOG.md
This commit is contained in:
AI Assistant
2026-02-28 17:45:18 +02:00
parent f4b1d4b8dd
commit 4dae06be44
6 changed files with 1181 additions and 158 deletions
+27 -2
View File
@@ -20,14 +20,39 @@ Continuation of QA improvements. NAS path enhancement: all 4 drives + DNS→IP f
- Badge now shows share label (Proiecte/Arhiva/Organizare/Transfer) instead of generic "NAS"
- Validation hint updated to show all 4 drive letters
- **Registratura — Entry Detail Sheet (Side Panel):**
- New `registry-entry-detail.tsx` component (~500 lines)
- Side panel (Sheet) slides in from the right on Eye icon click or row click
- Full entry visualization: status badges, document info, parties, dates, thread links, legal deadlines, attachments with inline image preview, NAS path links with IP fallback, external tracking, tags, notes
- Action buttons inside sheet: Edită, Închide, Șterge
- Attachment preview: images display inline, files show download button, NAS paths show full UNC + short display + copy + IP fallback
- **Registratura — Column Visibility Manager:**
- Configurable columns via Settings dropdown in table header
- 10 columns defined with Romanian tooltips explaining each abbreviation
- Default visible: Nr., Data, Dir., Subiect, Exped., Dest., Status (7/10)
- Hidden by default: Tip, Resp., Termen (can be toggled on)
- Persisted in localStorage per user (`registratura:visible-columns`)
- Reset button restores defaults
- **Registratura — Table UX Cleanup:**
- Row click opens detail sheet (cursor-pointer)
- Actions reduced from 3 buttons (close/edit/delete) to 2 (view/edit)
- Close and Delete moved into detail sheet
- Column headers have tooltips explaining naming convention
- Attachment/thread/deadline indicators compacted in Subject column
- **Documentation updated:**
- CLAUDE.md: Registratura v0.3.0, NAS drives in module table, NAS row in integrations table
- ROADMAP.md: Registratura version bump, new task 3.03b with full feature list
- CLAUDE.md: Registratura v0.3.0 updated description
- ROADMAP.md: New task 3.03c with detail sheet + column manager features
- SESSION-LOG.md: This session entry
### Files Changed
- **New:** `src/modules/registratura/components/registry-entry-detail.tsx`
- **Modified:** `src/config/nas-paths.ts` (4 drives, IP fallback helpers, shareLabelFor)
- **Modified:** `src/modules/registratura/components/registry-table.tsx` (column visibility, tooltips, view button, row click)
- **Modified:** `src/modules/registratura/components/registratura-module.tsx` (detail sheet integration, handleView)
- **Modified:** `src/modules/registratura/components/registry-entry-form.tsx` (IP fallback link, share badge, validation hints)
- **Modified:** `CLAUDE.md`, `ROADMAP.md`, `SESSION-LOG.md`