Overview
Notifications are delivered in real-time to users based on their role, location, or individual assignment. The system supports rich notification data and flexible targeting.Targeted Delivery
Send to specific users or locations
Priority Levels
High, medium, or low urgency
Rich Content
Include structured data
Notification Structure
Notification Types
Thetipo field categorizes notifications:
| Type | Description | Common Use |
|---|---|---|
stock_bajo | Low stock alert | Item below minimum threshold |
solicitud | Request update | Request state changed |
garantia | Warranty update | Claim status changed |
movimiento | Technician movement | Parts loaded/returned |
conteo | Count complete | Audit finished |
sistema | System message | Maintenance, updates |
aprobacion | Approval needed | User registration pending |
Types are flexible and can be extended as needed. They help users filter notifications and the UI can style them differently.
Priority Levels
Alta (High)
Critical Alerts
Issues requiring immediate attention
Examples
- System down
- Critical stock shortage
- Urgent approval needed
- Security alerts
Media (Medium)
Important Updates
Significant events needing timely response
Examples
- Request state change
- Low stock warning
- Warranty claim update
- Count discrepancies
Baja (Low)
Informational
General updates and information
Examples
- New user registered
- System update completed
- Report generated
- Tips and suggestions
Targeting Strategies
Individual User Notifications
Location-Based Notifications
Broadcast Notifications
Hybrid Targeting
Additional Data Field
Thedata JSON field allows rich notifications:
Using Additional Data
Using Additional Data
The
data field enables:Actionable Notifications:- Include URLs to relevant pages
- Pre-populate form fields
- Deep link to specific records
- Show thumbnails or icons
- Format data in tables
- Display progress indicators
- Filter by included data fields
- Group related notifications
- Auto-dismiss when action taken
- Track which notifications are acted on
- Measure response times
- Identify notification effectiveness
Reading Notifications
Mark as Read
When user views a notification:Unread Count
Display badge with unread count:Mark All Read
Bulk action:Notification Center UI
Display Components
Notification Bell:- Icon in navigation bar
- Badge showing unread count
- Animates when new notification arrives
- Dropdown or sidebar
- Grouped by priority
- Sorted by date (recent first)
- Filter by type or priority
- Mark all read button
Interaction Patterns
Admin Notifications
Administrators can subscribe to specific events:Admin Notification Setup
Admin Notification Setup
In Admin Settings:
- Navigate to Notification Preferences
- Toggle subscriptions:
- New user registrations
- Critical stock alerts
- High-value warranty claims
- Large requests (>20 items)
- Count discrepancies (>10%)
- Set quiet hours (optional)
- Choose notification channels
- Save preferences
Automatic Notifications
System generates notifications automatically for:Low Stock
Request State Changes
Warranty Resolution
New User Registration
Notification Lifecycle
Notifications are never deleted - they’re retained for audit purposes. Old read notifications can be archived from the UI but remain in the database.
Best Practices
For System Developers
For Users
Permissions
| Action | Required Permission |
|---|---|
| View notifications | view_notifications |
| Mark as read | (any authenticated user) |
| Create manual | create_notification |
| Send broadcast | broadcast_notification |
| Delete notifications | delete_notification |
| Configure admin alerts | admin_notifications |
Future Enhancements
Push Notifications
Browser push for real-time alerts
Email Digest
Daily summary of notifications
SMS Alerts
Critical alerts via text message
Notification Preferences
User-configurable notification types
Related Features
- Inventory Management - Low stock notifications
- Request Workflow - Request status notifications
- Warranty Management - Warranty resolution alerts
- Physical Count - Count completion notifications