feat: status dots, priority banners, lt-tags, command palette, activity timeline improvements
- Fix DashboardView asset version (was hardcoded 20260327, now uses config ASSET_VERSION) - Add lt-dot status indicators on dashboard table rows and ticket view toolbar - Add lt-tag display for Category/Type in ticket read mode (swaps to select in edit mode) - Add P1/P2 SLA alert banner with elapsed time, progress bar, per-session dismiss - Wire command palette (Ctrl+K): global nav + admin links via lt.cmdPalette.init() - Fix cmdPalette.init() call format (flat array, not nested group objects) - Improve activity timeline: richer formatAction(), better color coding by event type, inline status transitions shown in meta row, icon column added Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -138,6 +138,10 @@ function toggleEditMode() {
|
||||
metadataFields.forEach(field => {
|
||||
field.classList.remove('lt-display-field');
|
||||
});
|
||||
|
||||
// Show edit-mode selects for category/type, hide their read-mode tags
|
||||
document.querySelectorAll('.read-mode-tag').forEach(el => { el.style.display = 'none'; });
|
||||
document.querySelectorAll('.edit-mode-field').forEach(el => { el.style.display = ''; });
|
||||
} else {
|
||||
saveTicket();
|
||||
editButton.textContent = 'Edit Ticket';
|
||||
@@ -159,6 +163,22 @@ function toggleEditMode() {
|
||||
metadataFields.forEach(field => {
|
||||
field.classList.add('lt-display-field');
|
||||
});
|
||||
|
||||
// Hide edit-mode selects, show and update read-mode tags
|
||||
document.querySelectorAll('.edit-mode-field').forEach(el => { el.style.display = 'none'; });
|
||||
var catSel = document.getElementById('categorySelect');
|
||||
var typSel = document.getElementById('typeSelect');
|
||||
var catTag = document.getElementById('categoryTag');
|
||||
var typTag = document.getElementById('typeTag');
|
||||
if (catTag) {
|
||||
if (catSel) catTag.textContent = catSel.options[catSel.selectedIndex].text;
|
||||
catTag.style.display = '';
|
||||
}
|
||||
if (typTag) {
|
||||
if (typSel) typTag.textContent = typSel.options[typSel.selectedIndex].text;
|
||||
typTag.style.display = '';
|
||||
}
|
||||
document.querySelectorAll('.read-mode-tag:not(#categoryTag):not(#typeTag)').forEach(el => { el.style.display = ''; });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user