up
This commit is contained in:
@@ -1164,6 +1164,15 @@ body {
|
||||
box-shadow: 0 6px 18px rgba(11, 122, 87, 0.25);
|
||||
}
|
||||
|
||||
/* Conversation requiring advisor attention */
|
||||
.conversation-item.attention {
|
||||
border-left: 4px solid #dc3545;
|
||||
background: rgba(220, 53, 69, 0.03);
|
||||
}
|
||||
.conversation-item.attention .conversation-avatar {
|
||||
box-shadow: 0 6px 18px rgba(220, 53, 69, 0.12);
|
||||
}
|
||||
|
||||
/* Notification bell indicator when there are unseen notifications */
|
||||
#notification-bell.has-notifications {
|
||||
position: relative;
|
||||
|
||||
@@ -515,6 +515,10 @@ class SimpleWhatsAppManager {
|
||||
// Add class to highlight unread conversation (darker green)
|
||||
const unreadClass = (conv.unread_count && conv.unread_count > 0) ? ' unread' : '';
|
||||
|
||||
// Attention badge for advisor requests
|
||||
const attentionBadge = conv.advisor_requested ? `<div class="conversation-attention" title="Requiere atención"><i class="fas fa-exclamation"></i></div>` : '';
|
||||
const attentionClass = conv.advisor_requested ? ' attention' : '';
|
||||
|
||||
// Status icon
|
||||
const statusIcon = conv.last_direction === 'outgoing'
|
||||
? '<i class="fas fa-check-double conversation-status-icon outgoing"></i>'
|
||||
@@ -528,7 +532,7 @@ class SimpleWhatsAppManager {
|
||||
: '';
|
||||
|
||||
html += `
|
||||
<div class="conversation-item${unreadClass}" onclick="openChatWindow(${conv.user_id})">
|
||||
<div class="conversation-item${unreadClass}${attentionClass}" onclick="openChatWindow(${conv.user_id})">
|
||||
<div class="conversation-avatar ${isOnline ? 'online' : ''}">
|
||||
${userInitial}
|
||||
</div>
|
||||
@@ -549,6 +553,7 @@ class SimpleWhatsAppManager {
|
||||
</div>
|
||||
<div class="conversation-meta">
|
||||
${unreadBadge}
|
||||
${attentionBadge}
|
||||
<div class="conversation-actions">
|
||||
<button class="btn btn-sm" onclick="event.stopPropagation(); openChatWindow(${conv.user_id})" title="Abrir chat">
|
||||
<i class="fas fa-comments"></i>
|
||||
@@ -635,7 +640,7 @@ class SimpleWhatsAppManager {
|
||||
const unreadClass = (conv.unread_count && conv.unread_count > 0) ? ' unread' : '';
|
||||
|
||||
html += `
|
||||
<div class="conversation-item${unreadClass}" onclick="openChatWindow(${conv.user_id})">
|
||||
<div class="conversation-item${unreadClass}${attentionClass}" onclick="openChatWindow(${conv.user_id})">
|
||||
<div class="conversation-avatar ${isOnline ? 'online' : ''}">
|
||||
${userInitial}
|
||||
</div>
|
||||
@@ -656,6 +661,7 @@ class SimpleWhatsAppManager {
|
||||
</div>
|
||||
<div class="conversation-meta">
|
||||
${unreadBadge}
|
||||
${attentionBadge}
|
||||
<div class="conversation-actions">
|
||||
<button class="btn btn-sm" onclick="event.stopPropagation(); openChatWindow(${conv.user_id})" title="Abrir chat">
|
||||
<i class="fas fa-comments"></i>
|
||||
|
||||
Reference in New Issue
Block a user