Update docs: compact numbers, Alerte Termene sender, notifications in repo structure

- CLAUDE.md: add compact registry numbers feature, sender name, test mode
- ROADMAP.md: expand 8.03 with compact numbers, icon-only toolbar, test mode
- REPO-STRUCTURE.md: add src/core/notifications/ directory + description
- SYSTEM-ARCHITECTURE.md: add sender name, test mode, group company behavior
- CONFIGURATION.md + DOCKER-DEPLOYMENT.md: NOTIFICATION_FROM_NAME=Alerte Termene

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-11 09:14:39 +02:00
parent dff0bbe97c
commit 0958238b25
6 changed files with 23 additions and 10 deletions
+9 -5
View File
@@ -826,18 +826,22 @@ Env vars (hardcoded in docker-compose.yml for Portainer CE):
---
### 8.03 ✅ `[STANDARD]` Notification System (2026-03-11)
### 8.03 ✅ `[STANDARD]` Notification System + Registratura UI Polish (2026-03-11)
**What:** Email notification system with daily digest via Brevo SMTP + N8N cron.
**What:** Email notification system with daily digest via Brevo SMTP + N8N cron. Plus Registratura toolbar and registry number UX improvements.
**Implemented:**
- Brevo SMTP relay (nodemailer, port 587 STARTTLS)
- Brevo SMTP relay (nodemailer, port 587 STARTTLS), sender "Alerte Termene" &lt;noreply@beletage.ro&gt;
- Daily digest email: urgent deadlines, overdue deadlines, expiring documents
- Per-user notification preferences (3 types + global opt-out) stored in KeyValueStore
- API routes: POST `/api/notifications/digest` (N8N Bearer auth), GET/PUT `/api/notifications/preferences` (session auth)
- UI: Bell button "Notificari" in Registratura toolbar → dialog with toggles
- Test mode via `?test=true` query param on digest endpoint
- "group" company users see ALL entries across companies in digest
- UI: Bell icon button "Notificari" in Registratura toolbar → dialog with toggles
- Icon-only toolbar buttons (Bune practici + Notificari) with native `title` tooltips
- HTML email: inline-styled tables, color-coded rows (red/yellow/blue), per-company grouping
- N8N cron: `0 8 * * 1-5` (weekdays 8:00)
**Files:** `src/core/notifications/`, `src/app/api/notifications/`, `components/notification-preferences.tsx`
- **Compact registry numbers**: single-letter company badge (B=blue, U=violet, S=green, G=gray) + direction arrow (↓ green=intrat, ↑ orange=iesit) + plain number — `CompactNumber` component in `registry-table.tsx`
**Files:** `src/core/notifications/`, `src/app/api/notifications/`, `components/notification-preferences.tsx`, `components/registry-table.tsx`
---