fix: toast crash, notification dropdown, ticket detail editable, toolbar dropdowns

- Fix duplicate function showToast declaration causing infinite recursion
  (showToast declared twice → function hoisting → _origShowToast === self)
  Progress bar now inlined directly into _displayToast; Module 47 removed
- Notification bell now opens a proper dropdown panel with unread items,
  per-item click-to-read, "Mark all read", close on outside click/Esc
- Ticket detail drawer now has real editable fields (title, status,
  priority, assignee, description textarea, comment box) instead of
  read-only KV pairs; Save Changes and Post Comment buttons functional
- Advanced ▾ filter dropdown: status/priority/assignee selects + Apply/Reset
- Bulk Actions dropdown: Close/Reassign/Export/Delete with toast feedback
- Generic .lt-dropdown-trigger toggle system (works for any future dropdown)
- Add CSS sections 76 (notification panel) and 77 (dropdown widget + .lt-textarea)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 23:36:29 -04:00
parent 3847513594
commit 6ee9760168
3 changed files with 416 additions and 44 deletions
+175
View File
@@ -4524,3 +4524,178 @@ body.lt-is-offline .lt-main { margin-top: 2rem; transition: margin-top 0.25s eas
.lt-code-block { white-space: pre-wrap; word-break: break-all; }
.lt-page-header { border-bottom: 2px solid #333; padding-bottom: 0.5rem; margin-bottom: 1rem; }
}
/* ----------------------------------------------------------------
76. NOTIFICATION DROPDOWN PANEL
---------------------------------------------------------------- */
.lt-notif-dropdown-wrap {
position: relative;
display: inline-flex;
align-items: center;
}
.lt-notif-panel {
position: absolute;
top: calc(100% + 6px);
right: 0;
width: 300px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
z-index: 10020;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
transform-origin: top right;
transform: scale(0.95);
opacity: 0;
pointer-events: none;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.lt-notif-panel[aria-hidden="false"] {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.lt-notif-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.6rem 0.75rem;
border-bottom: 1px solid var(--border-dim);
font-size: 0.72rem;
font-family: var(--font-mono);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
.lt-notif-panel-clear {
background: none;
border: none;
color: var(--accent-cyan);
font-size: 0.68rem;
font-family: var(--font-mono);
cursor: pointer;
padding: 0;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.lt-notif-panel-clear:hover { text-decoration: underline; }
.lt-notif-panel-list { max-height: 280px; overflow-y: auto; }
.lt-notif-item {
display: flex;
align-items: flex-start;
gap: 0.6rem;
padding: 0.6rem 0.75rem;
border-bottom: 1px solid var(--border-dim);
cursor: pointer;
transition: background 0.1s;
}
.lt-notif-item:hover { background: var(--bg-tertiary); }
.lt-notif-item--unread { background: rgba(0, 212, 255, 0.04); }
.lt-notif-dot {
flex-shrink: 0;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent-cyan);
margin-top: 4px;
box-shadow: 0 0 6px var(--accent-cyan);
}
.lt-notif-dot--read {
background: var(--border-color);
box-shadow: none;
}
.lt-notif-item-body { flex: 1; min-width: 0; }
.lt-notif-item-title {
font-size: 0.76rem;
color: var(--text-primary);
line-height: 1.4;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lt-notif-item--unread .lt-notif-item-title { color: var(--text-primary); font-weight: 600; }
.lt-notif-item-time {
font-size: 0.64rem;
color: var(--text-muted);
margin-top: 2px;
font-family: var(--font-mono);
}
.lt-notif-panel-footer {
padding: 0.5rem 0.75rem;
border-top: 1px solid var(--border-dim);
}
/* ----------------------------------------------------------------
77. GENERIC DROPDOWN WIDGET
---------------------------------------------------------------- */
.lt-dropdown-wrap {
position: relative;
display: inline-block;
}
.lt-dropdown-panel {
position: absolute;
top: calc(100% + 4px);
left: 0;
min-width: 160px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
z-index: 10020;
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
transform-origin: top left;
transform: scale(0.95);
opacity: 0;
pointer-events: none;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.lt-dropdown-panel--right {
left: auto;
right: 0;
transform-origin: top right;
}
.lt-dropdown-panel[aria-hidden="false"] {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.lt-dropdown-item {
display: block;
width: 100%;
padding: 0.5rem 0.85rem;
background: none;
border: none;
text-align: left;
font-size: 0.76rem;
font-family: var(--font-mono);
color: var(--text-secondary);
cursor: pointer;
transition: background 0.1s, color 0.1s;
white-space: nowrap;
}
.lt-dropdown-item:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.lt-dropdown-item--danger { color: var(--accent-red); }
.lt-dropdown-item--danger:hover { background: rgba(255,45,85,0.1); color: var(--accent-red); }
.lt-dropdown-divider {
height: 1px;
background: var(--border-dim);
margin: 0.25rem 0;
}
/* textarea utility */
.lt-textarea {
min-height: 60px;
resize: vertical;
line-height: 1.5;
}