All pages in the Purchasing Tracker application now use modern toast notifications instead of inline alert messages.
- Position: Fixed in top-right corner of the screen
- Types:
- Success (green with ✓ icon)
- Error (red with ✕ icon)
- Info (blue with ℹ icon)
- Behavior:
- Automatically dismisses after 3 seconds
- Smooth slide-in animation from the right
- Smooth slide-out animation when dismissing
- Multiple toasts stack vertically
- Non-intrusive and doesn't block content
.toast-container: Fixed position container in top-right.toast: Individual toast notification styling.toast-success,.toast-error,.toast-info: Type-specific colors@keyframes slideInand@keyframes slideOut: Animation definitions
All pages include these utility functions:
function showToast(message, type = 'success') {
// Creates and displays a toast notification
// Auto-removes after 3 seconds with animation
}
function showSuccess(message) {
// Convenience function for success toasts
showToast(message, 'success');
}
function showError(message) {
// Convenience function for error toasts
showToast(message, 'error');
}- ✅ index.html - Public purchase request form
- ✅ approval.html - Approval management page
- ✅ tracking.html - Order tracking page
- ✅ admin.html - Admin management page
// Success notification
showSuccess('Purchase request submitted successfully!');
// Error notification
showError('Failed to load vendors');
// Info notification (if needed)
showToast('Loading data...', 'info');- ✨ Modern and professional appearance
- 🎯 Non-intrusive user experience
- 📱 Works well on all screen sizes
- ⚡ Smooth animations
- 🔄 Can show multiple notifications simultaneously
- ♿ Clear visual feedback for all actions