dwindown
|
778afeef9a
|
feat: Restructure Channel Configuration as separate section
✅ New Structure:
Notifications
├── Staff Notifications (toggle only)
├── Customer Notifications (toggle only)
├── Channel Configuration (new section)
│ ├── Email Configuration
│ │ ├── Template Settings (colors, logo, branding)
│ │ └── Connection Settings (wp_mail/SMTP)
│ ├── Push Configuration
│ │ ├── Template Settings (icon, badge, sound)
│ │ └── Connection Settings (browser-native/FCM)
│ └── Future: WhatsApp, Telegram, SMS (addons)
└── Activity Log (coming soon)
✅ Separation of Concerns:
- Staff/Customer pages: "What to send" (enable/disable)
- Channel Config: "How to send" (global settings)
✅ Changes:
- Created ChannelConfiguration.tsx (main page listing all channels)
- Created EmailConfiguration.tsx (template + connection tabs)
- Created PushConfiguration.tsx (template + connection tabs)
- Updated Staff/Customer Channels tabs to toggle-only
- Removed Configure buttons from Staff/Customer pages
- Added links to Channel Configuration
- Updated main Notifications page with new card
- Added routing for all new pages
✅ Benefits:
- Clear separation: enable vs configure
- Global settings apply to both staff & customer
- Scalable for addon channels
- No confusion about where to configure
- Consistent with app patterns
🎯 Ready for: WhatsApp, Telegram, SMS addons
|
2025-11-15 21:05:57 +07:00 |
|