89c44b846f
Phase 5.1 — MATERIAL_PALETTE removal:
- Remove MATERIAL_PALETTE + _material_to_color() from step_processor.py
- build_part_colors() now returns {part→material_name} for Blender resolver
Phase 6 — Notification Center Refactor:
- Migration 051: add channel (activity|notification|alert) to audit_log,
add frequency (immediate|daily|never) to notification_configs
- Three notification channels: activity (per-render), notification (batch
order summaries), alert (admin infrastructure)
- Per-render emit_notification_sync calls demoted to channel=activity
- New emit_batch_render_notification_sync(): single summary notification
when all order lines reach terminal state ("47/50 succeeded, 3 failed")
- Beat task batch_render_notifications every 60s: safety-net for missed
batch notifications after order completion
- GET /notifications: defaults to channel IN (notification, alert);
accepts ?channel=activity for activity feed
- Unread count badge counts only notification+alert channels
- Notifications.tsx: three tabs (Notifications | Activity | Alerts)
- NotificationSettings.tsx: frequency dropdown per event type
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
458 B
Python
18 lines
458 B
Python
# Compat shim — use app.domains.notifications.service instead
|
|
from app.domains.notifications.service import (
|
|
emit_notification,
|
|
emit_notification_sync,
|
|
emit_batch_render_notification_sync,
|
|
CHANNEL_ACTIVITY,
|
|
CHANNEL_NOTIFICATION,
|
|
CHANNEL_ALERT,
|
|
)
|
|
__all__ = [
|
|
"emit_notification",
|
|
"emit_notification_sync",
|
|
"emit_batch_render_notification_sync",
|
|
"CHANNEL_ACTIVITY",
|
|
"CHANNEL_NOTIFICATION",
|
|
"CHANNEL_ALERT",
|
|
]
|