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:
@@ -99,6 +99,11 @@ ArchiTools/
|
||||
│ │ │ ├── use-theme.ts # Hook for theme access
|
||||
│ │ │ ├── tokens.ts # Design token definitions
|
||||
│ │ │ └── index.ts # Public API
|
||||
│ │ ├── notifications/
|
||||
│ │ │ ├── types.ts # NotificationType, NotificationPreference, DigestSection
|
||||
│ │ │ ├── email-service.ts # Nodemailer transport singleton (Brevo SMTP)
|
||||
│ │ │ ├── notification-service.ts # runDigest(), buildCompanyDigest(), preference CRUD
|
||||
│ │ │ └── index.ts # Public API
|
||||
│ │ └── auth/
|
||||
│ │ ├── auth-provider.tsx # Auth context provider (stub)
|
||||
│ │ ├── use-auth.ts # Hook for auth state
|
||||
@@ -324,6 +329,8 @@ Platform core systems. These are infrastructure services used by all modules. Co
|
||||
|
||||
- **`theme/`** — Dark/light theme system. Provides the theme context, toggle hook, and design token definitions. Theme preference is persisted in storage. Tokens define colors, spacing, and typography values consumed by Tailwind and component styles.
|
||||
|
||||
- **`notifications/`** — Email notification service. Daily digest via Brevo SMTP relay (nodemailer, port 587 STARTTLS). Includes `runDigest()` orchestrator, `buildCompanyDigest()` for per-company deadline aggregation, `renderDigestHtml()` for inline-styled email, and preference CRUD via KeyValueStore (`notifications` namespace). API routes: POST `/api/notifications/digest` (N8N cron, Bearer auth), GET/PUT `/api/notifications/preferences` (user session auth).
|
||||
|
||||
- **`auth/`** — Authentication and authorization stub. Defines the `AuthContext` interface (`user`, `role`, `permissions`, `company`). Currently returns a default admin user. When Authentik SSO integration is implemented, this module will resolve real identity from OIDC tokens. The interface remains stable; only the provider implementation changes.
|
||||
|
||||
### `src/modules/`
|
||||
|
||||
Reference in New Issue
Block a user