Overview
Hive keeps you informed about important events through a multi-layered notification system including in-app alerts, toast notifications, and optional email delivery.Types of Notifications
In-App Alerts (Toast Notifications)
Hive uses a custom alert system calledpmhAlert that displays non-blocking notifications:
Success
Green alerts for successful operations like “Tarea creada exitosamente”
Info
Blue alerts for informational messages like “Tarea actualizada”
Warning
Orange alerts for warnings like “Complete todos los campos requeridos”
Error
Red alerts for errors like “Error de conexión”
Alert Behavior
Toast notifications appear at the top-center of the screen and:- Auto-dismiss after 4.2 seconds (customizable duration)
- Stack in a queue if multiple alerts trigger at once (max 5 queued)
- Show progress bar indicating time until auto-dismiss
- Can be dismissed by clicking the ✕ button or clicking outside
- High z-index (20001) ensures they appear above modals and other content
Alert Container
Alerts are rendered in a dedicated container (#pmhAlerts) that:
- Lives at the top of the page (fixed position)
- Centers horizontally (
left: 50%, transform: translateX(-50%)) - Sits above all other content (
z-index: 13001+) - Handles queuing and animations automatically
The alert system is implemented in
app.ui-utilities.js and provides a better UX than native alert() dialogs.Notification Settings and Preferences
Real-time Notification Control
Real-time notifications are controlled by:- Task updates - Status, progress, assignments
- Project changes - New tasks, project modifications
- User assignments - When you’re added to or removed from tasks
- Tag updates - Label changes on tasks
Notification Throttling
To prevent notification spam, Hive implements intelligent throttling:- Per-task throttle: Max one notification per task every 1.5 seconds
- Global queue: Maximum 5 notifications in queue at once
- Local muting: Your own changes don’t trigger notifications back to you
- Debounced updates: Rapid changes are batched together
Silent Mode (Local Changes)
When you make changes, Hive temporarily mutes notifications for those items:- You update a task’s progress to 50%
- The system marks that task as “locally touched” for 1 second
- Real-time updates for that task are ignored during the mute period
- This prevents you from seeing “Task updated” for your own changes
Email Notifications
Email Configuration
Email notifications are managed through Supabase Auth settings:- Account creation - Welcome email when user is created
- Password reset - Secure link to reset forgotten passwords
- Email verification - Confirm email address changes
- Assignment notifications - Optional emails for task assignments
Customizing Email Templates
Administrators can customize email templates in the Supabase dashboard:- Go to Authentication > Email Templates
- Edit templates for:
- Confirmation emails
- Password reset
- Magic link login
- Email change confirmation
- Use template variables like
{{ .ConfirmationURL }}and{{ .Email }}
Email Delivery
Emails are sent through:- Supabase built-in SMTP (for development)
- Custom SMTP provider (for production - SendGrid, Mailgun, etc.)
- Transactional email service (recommended for reliability)
In-App Alerts (Container-based)
Alert Manager System
TheAlertManager class handles notification queuing and display:
Alert Lifecycle
Auto-dismiss or manual close
After duration expires or user clicks close,
pmh-hide class triggers fade-outDismissing Alerts
Users can dismiss alerts by:- Clicking the ✕ button in the top-right of the alert
- Clicking anywhere outside the alert box
- Waiting for auto-dismiss (default 4.2 seconds)
Managing Notification Frequency
Reducing Alert Noise
If you find notifications distracting:- Focus mode: Close the Hive tab and check updates periodically
- Disable real-time: Set
window.PMH_ENABLE_REALTIME = falsein console - Mute during deep work: Use browser notification controls
- Check Dashboard instead: Review updates on your schedule
Disabling real-time updates means you won’t see changes until you refresh the page. This may affect collaboration workflows.
Notification Events
You receive notifications for:| Event | Notification Example | Variant |
|---|---|---|
| Task created | ”Tarea creada exitosamente” | success |
| Task updated | ”Tarea actualizada” | info |
| Task deleted | ”Tarea eliminada exitosamente” | success |
| Task assigned | ”Tarea asignada” | info |
| Project created | ”Proyecto creado exitosamente” | success |
| Tag added | ”Etiqueta creada exitosamente” | success |
| Validation error | ”Complete todos los campos requeridos” | warning |
| Permission denied | ”Solo administradores pueden…“ | warning |
| Network error | ”Error de conexión” | error |
| Upload success | ”Imagen subida” | success |
Real-time Update Toasts
When other users make changes, you see brief info toasts:- Task title is shown: “Design Homepage actualizada”
- Duration: 1.6 seconds (brief, non-intrusive)
- Only when relevant: Only for tasks in your current view
- Throttled: Max one per task every 1.5 seconds
Advanced Notification Features
Native Alert Override
Hive optionally overrides the native browseralert() function:
- Not blocking the UI (modals block all interaction)
- Showing styled, branded alerts
- Auto-dismissing after a timeout
- Queuing multiple alerts gracefully
Programmatic Alert Helpers
Pre-configured alert functions for common scenarios:Custom Alert Durations
Adjust alert duration based on message importance:Troubleshooting Notifications
Alerts not appearing
Check alert container exists
Check alert container exists
Open DevTools and verify
#pmhAlerts exists in the DOM. It should be a direct child of <body>.Check z-index conflicts
Check z-index conflicts
Ensure no other elements have
z-index higher than 13001 that could cover alerts.Check JavaScript errors
Check JavaScript errors
Open browser console and look for errors that might prevent the alert manager from initializing.
Real-time notifications delayed
- Check internet connection - Real-time requires active connection
- Verify Supabase Realtime is enabled - Check project settings
- Look for console errors - Subscription errors will appear in console
- Confirm
PMH_ENABLE_REALTIME = true- Real-time might be disabled
Too many notifications
- Increase throttle duration - Edit
__rtToastTimesthreshold in code - Reduce queue size - Change
maxQueuedfrom 5 to a lower number - Filter by view - Notifications only show for active screens
Email notifications not sending
Notification Best Practices
Keep messages concise
Alert text should be brief and actionable - users only see it for a few seconds.
Use appropriate variants
Match the alert type to the message: success for confirmations, error for failures.
Avoid notification spam
Don’t trigger alerts for every minor action - save them for meaningful events.
Provide context
Include enough detail that users know what happened and what to do next.
Related Topics
Collaboration
Learn about team communication and real-time updates
Profile Management
Configure your user profile and contact preferences
Real-time Features
Understand how real-time synchronization works
Tasks
Task notifications and assignment alerts
