From eb96af3e4b59b38374b16a869ea91d8aa09e5379 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 10 Mar 2026 08:21:54 +0200 Subject: [PATCH] feat(registratura): add best practices popover + contextual tooltips on form fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - "Bune practici" button in registry header opens a popover with internal rules (numerotare, completare, termene, atașamente, închidere) - Info tooltips on form labels: Direcție, Tip document, Subiect, Expeditor, Destinatar, Atașamente (consistent with existing pattern on Data document) - Install shadcn/ui Popover component Co-Authored-By: Claude Opus 4.6 --- .../components/registratura-module.tsx | 75 +++++++++++++- .../components/registry-entry-form.tsx | 99 ++++++++++++++++++- src/shared/components/ui/popover.tsx | 89 +++++++++++++++++ 3 files changed, 254 insertions(+), 9 deletions(-) create mode 100644 src/shared/components/ui/popover.tsx diff --git a/src/modules/registratura/components/registratura-module.tsx b/src/modules/registratura/components/registratura-module.tsx index 9028763..a1a7067 100644 --- a/src/modules/registratura/components/registratura-module.tsx +++ b/src/modules/registratura/components/registratura-module.tsx @@ -1,7 +1,13 @@ "use client"; import { useState, useMemo, useCallback } from "react"; -import { Plus } from "lucide-react"; +import { BookOpen, Plus } from "lucide-react"; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/shared/components/ui/popover"; +import { ScrollArea } from "@/shared/components/ui/scroll-area"; import { Button } from "@/shared/components/ui/button"; import { Card, @@ -305,9 +311,70 @@ export function RegistraturaModule() { <>
- +
+ + + + + + +
+

Bune practici — Registratură

+ +
+

Numerotare

+
    +
  • Numerele se atribuie automat (BTG-2026-IN-00001)
  • +
  • Nu modifica manual numărul de înregistrare
  • +
  • Fiecare companie are propria secvență
  • +
+
+ +
+

Completare

+
    +
  • Subiectul: scurt, descriptiv, fără abrevieri ambigue
  • +
  • Completează mereu expeditorul/destinatarul
  • +
  • Folosește tipuri de document corecte (nu «Altele» dacă există opțiune potrivită)
  • +
+
+ +
+

Termene

+
    +
  • Setează termen pentru orice document care necesită răspuns
  • +
  • Termenele legale se adaugă separat din tab-ul «Termene legale»
  • +
  • Verifică termenele depășite zilnic
  • +
+
+ +
+

Atașamente

+
    +
  • Preferă căi NAS pentru fișiere mari (>5MB)
  • +
  • Denumește fișierele clar: «Aviz_ISU_ProiectX_2026.pdf»
  • +
  • Nu atașa versiuni intermediare — doar versiunea finală
  • +
+
+ +
+

Închidere

+
    +
  • Închide dosarul doar când toate acțiunile sunt finalizate
  • +
  • Adaugă motiv de închidere descriptiv
  • +
+
+
+
+
+
+ +
- +
- +
setSubject(e.target.value)} @@ -648,7 +694,22 @@ export function RegistryEntryForm({
{/* Sender */}
- + { @@ -674,7 +735,22 @@ export function RegistryEntryForm({
{/* Recipient */}
- + { @@ -1179,6 +1255,19 @@ export function RegistryEntryForm({