Dashboard
Messages
Advanced Chatbot
Subscribers
Workshops
Video Resources
Tai Chi Videos
Coach Pei Corner
Johanna Corner
BFSAN Inquiries
Programs
12-Week Risk Reduction
Command Center
Participants
Consent Audit
Baseline Review
Goal Configuration
Weekly Scoring
Interventions
Coach Messages
Analytics
Daily Logs
Email Templates
30-Day Challenge
Nutritional Wellness
Tai Chi Program
Pickleball Program
8-Week Challenge
Soon
Educational Seminar
Soon
System
Cookie Consent Logs
Testimonials
Submissions
Users
System Settings
View Website
Edit Knowledge
Log In
Edit Knowledge Base Item
← Back to List
Title
Category
SubCategory
User Intent
Primary Question
Keywords (comma separated)
Content (Knowledge provided to AI)
@section Styles { .rr-split-panel { display: flex; height: 70vh; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; background: #fff; } .rr-split-left { width: 350px; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; } .rr-split-right { flex: 1; display: flex; flex-direction: column; background-color: #f9fafb; } .conversation-search { padding: 1rem; border-bottom: 1px solid #e5e7eb; } .conversation-list { flex: 1; overflow-y: auto; } .conversation-item { display: flex; padding: 1rem; border-bottom: 1px solid #e5e7eb; cursor: pointer; transition: background-color 0.2s; text-decoration: none; color: inherit; } .conversation-item:hover { background-color: #f3f4f6; } .conversation-item.active { background-color: #eff6ff; border-left: 4px solid #3b82f6; } .rr-conversation-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #4f46e5; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 1rem; flex-shrink: 0; } .conversation-details { flex: 1; min-width: 0; } .conversation-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; } .conversation-name { font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .conversation-time { font-size: 0.75rem; color: #6b7280; } .conversation-preview { font-size: 0.875rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rr-unread-dot { width: 10px; height: 10px; background-color: #ef4444; border-radius: 50%; display: inline-block; margin-left: 0.5rem; } .rr-chat-header { padding: 1rem; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; } .rr-chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; } .chat-bubble-container { display: flex; flex-direction: column; max-width: 70%; } .chat-bubble-container.sent { align-self: flex-end; } .chat-bubble-container.received { align-self: flex-start; } .rr-chat-bubble-sent { background-color: #4f46e5; color: white; padding: 0.75rem 1rem; border-radius: 1rem 1rem 0 1rem; } .rr-chat-bubble-received { background-color: #e5e7eb; color: #111827; padding: 0.75rem 1rem; border-radius: 1rem 1rem 1rem 0; } .chat-timestamp { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; } .chat-bubble-container.sent .chat-timestamp { text-align: right; } .rr-chat-input-bar { padding: 1rem; background: #fff; border-top: 1px solid #e5e7eb; } .chat-input-wrapper { display: flex; gap: 0.5rem; } .chat-textarea { flex: 1; border: 1px solid #d1d5db; border-radius: 0.375rem; padding: 0.5rem; resize: none; height: 60px; } } Coach Messaging Hub Manage communications with program participants. New Message Total Conversations @Model.TotalConversations Unread Messages @Model.UnreadCount Total Messages @Model.TotalMessages @foreach (var conv in Model.ConversationList) { @conv.UserInitials @conv.UserName @if (conv.UnreadCount > 0) { } @conv.LastMessageDate.ToString("MMM dd") @conv.LastMessage } @if (Model.SelectedUser != null) { @Model.SelectedUser.FirstName @Model.SelectedUser.LastName @Model.SelectedUser.Email @if (Model.ConversationList.FirstOrDefault(c => c.UserId == Model.SelectedUserId)?.UnreadCount > 0) { Mark as Read } @foreach (var msg in Model.SelectedConversationMessages) { @if (!string.IsNullOrEmpty(msg.Subject) && msg.Subject != "New Message") { @msg.Subject } @msg.Message @msg.SentAt.ToString("MMM dd, h:mm tt") } 0 / 1000 } else { Select a conversation to start messaging } @section Scripts { document.addEventListener("DOMContentLoaded", function () { // Scroll to bottom of chat var chatArea = document.getElementById("chatMessagesArea"); if (chatArea) { chatArea.scrollTop = chatArea.scrollHeight; } // Character counter var messageInput = document.getElementById('messageInput'); if (messageInput) { messageInput.addEventListener('input', function() { var len = this.value.length; document.getElementById('charCount').textContent = len; }); } // Search filtering var searchInput = document.getElementById('searchInput'); if (searchInput) { searchInput.addEventListener('input', function() { var val = this.value.toLowerCase(); var items = document.querySelectorAll('.conversation-item'); items.forEach(function(item) { var name = item.querySelector('.conversation-name').textContent.toLowerCase(); if (name.indexOf(val) > -1) { item.style.display = 'flex'; } else { item.style.display = 'none'; } }); }); } }); function openNewMessageModal() { var options = ' Select a participant... '; @foreach(var p in Model.EnrolledParticipants) { options += ` @p.FirstName @p.LastName (@p.Email) `; } Swal.fire({ title: 'New Message', html: ` Participant ${options} Subject Message `, showCancelButton: true, confirmButtonText: 'Send', confirmButtonColor: '#4f46e5', preConfirm: () => { const participant = document.getElementById('swal-participant').value; const subject = document.getElementById('swal-subject').value; const message = document.getElementById('swal-message').value; if (!participant || !message) { Swal.showValidationMessage('Participant and message are required'); return false; } return { participant, subject, message }; } }).then((result) => { if (result.isConfirmed) { document.getElementById('swalReceiverId').value = result.value.participant; document.getElementById('swalSubject').value = result.value.subject; document.getElementById('swalMessageText').value = result.value.message; document.getElementById('newMessageForm').submit(); } }); } }
Page Title
Page URL
Related Questions (JSON Array of strings)
Recommended Actions (JSON Array of objects)
[]
Active
Save Changes
Cancel