Major dispatch/task system overhaul: - Project templates with 3-step wizard (choose template → edit steps → publish) - 4 built-in templates: phone service, fiber install, move, repair - Nested task tree with recursive TaskNode component (parent_job hierarchy) - n8n webhook integration (on_open_webhook, on_close_webhook per task) - Inline task editing: status, priority, type, tech assignment, tags, delete - Tech assignment + tags from ticket modal → jobs appear on dispatch timeline - ERPNext custom fields: parent_job, on_open_webhook, on_close_webhook, step_order - Refactored ClientDetailPage, ChatterPanel, DetailModal, dispatch store - CSS consolidation, dead code cleanup, composable extraction - Dashboard KPIs with dispatch integration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
178 lines
3.5 KiB
SCSS
178 lines
3.5 KiB
SCSS
.chatter-panel {
|
|
background: white;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 220px);
|
|
min-height: 500px;
|
|
position: sticky;
|
|
top: 16px;
|
|
}
|
|
|
|
.chatter-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 14px 6px;
|
|
}
|
|
|
|
.chatter-tabs {
|
|
padding: 0 10px 8px;
|
|
}
|
|
|
|
.chatter-timeline {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 10px;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.chatter-date-sep {
|
|
text-align: center;
|
|
margin: 12px 0 6px;
|
|
}
|
|
.chatter-date-sep span {
|
|
background: #f1f5f9;
|
|
color: #94a3b8;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
padding: 2px 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.chatter-entry {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 6px 4px;
|
|
border-radius: 6px;
|
|
transition: background 0.1s;
|
|
}
|
|
.chatter-entry:hover { background: #f8fafc; }
|
|
.chatter-entry.entry-unread { background: #eff6ff; }
|
|
|
|
.entry-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
.icon-sms { background: #e8eaf6; color: #3f51b5; }
|
|
.icon-phone { background: #e8f5e9; color: #2e7d32; }
|
|
.icon-email { background: #fff3e0; color: #e65100; }
|
|
.icon-note { background: #fff8e1; color: #f9a825; }
|
|
.icon-other { background: #f5f5f5; color: #757575; }
|
|
|
|
.entry-body { flex: 1; min-width: 0; }
|
|
|
|
.entry-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 1px;
|
|
}
|
|
.entry-author { font-size: 0.8rem; color: #334155; }
|
|
.entry-time { font-size: 0.7rem; }
|
|
|
|
.entry-actions {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.entry-content {
|
|
font-size: 0.84rem;
|
|
line-height: 1.4;
|
|
color: #475569;
|
|
word-break: break-word;
|
|
}
|
|
.entry-note {
|
|
font-style: italic;
|
|
color: #92400e;
|
|
background: #fffbeb;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #f59e0b;
|
|
}
|
|
|
|
.entry-edit {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.entry-meta { margin-top: 2px; }
|
|
.entry-link { margin-top: 3px; }
|
|
|
|
.chatter-compose {
|
|
border-top: 1px solid #e2e8f0;
|
|
padding: 8px 10px;
|
|
background: #fafbfc;
|
|
border-radius: 0 0 10px 10px;
|
|
position: relative;
|
|
}
|
|
.compose-channel-row {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
// Canned responses dropdown
|
|
.canned-dropdown {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 8px;
|
|
right: 8px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
z-index: 10;
|
|
}
|
|
.canned-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
&:hover, &.canned-highlighted { background: #f1f5f9; }
|
|
&:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
|
|
}
|
|
.canned-shortcut-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: #6366f1;
|
|
background: #eef2ff;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
.canned-preview {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
// Canned manager modal
|
|
.canned-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
.canned-shortcut { flex-shrink: 0; }
|
|
.canned-text { flex: 1; min-width: 0; }
|
|
|
|
.chatter-timeline::-webkit-scrollbar { width: 4px; }
|
|
.chatter-timeline::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
|
|
.chatter-timeline::-webkit-scrollbar-track { background: transparent; }
|