Slice 6: notifications per §15

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ben Stull
2026-05-24 23:09:04 -07:00
parent 1b0968a9a2
commit f67d0aa0db
21 changed files with 3588 additions and 168 deletions
+79
View File
@@ -1139,3 +1139,82 @@
.branch-dropdown-item.pre-graduation .branch-meta {
font-size: 10px; color: #9ca3af; margin-left: auto;
}
/* ---- §15 / Slice 6: inbox, badge, toasts ---- */
.inbox-trigger {
position: relative; background: transparent; border: 1px solid #e5e7eb;
border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 16px;
margin-right: 12px;
}
.inbox-trigger:hover { background: #f9fafb; }
.inbox-trigger .badge {
position: absolute; top: -6px; right: -6px;
background: #dc2626; color: white; font-size: 10px;
border-radius: 999px; padding: 1px 5px; font-weight: 700;
min-width: 16px; text-align: center;
}
.inbox-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.25);
display: flex; align-items: flex-start; justify-content: center;
padding-top: 60px; z-index: 100;
}
.inbox-panel {
background: white; border: 1px solid #e5e7eb; border-radius: 8px;
width: 720px; max-width: 90vw; max-height: 80vh;
display: flex; flex-direction: column; box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.inbox-header {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px; border-bottom: 1px solid #e5e7eb;
}
.inbox-header h2 { margin: 0; font-size: 16px; }
.inbox-filters {
display: flex; gap: 8px; flex-wrap: wrap;
padding: 10px 16px; border-bottom: 1px solid #f3f4f6; align-items: center;
}
.inbox-filters .chip {
font-size: 12px; padding: 4px 8px; background: #f9fafb;
border: 1px solid #e5e7eb; border-radius: 999px;
display: inline-flex; align-items: center; gap: 4px;
}
.inbox-filters .chip input[type=checkbox] { margin-right: 2px; }
.inbox-filters select.chip { padding: 4px 8px; }
.inbox-body { overflow-y: auto; flex: 1; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-row { border-bottom: 1px solid #f3f4f6; }
.inbox-row.unread { background: #fffbeb; }
.inbox-row-link {
display: flex; align-items: center; gap: 10px; padding: 10px 16px;
text-decoration: none; color: inherit;
}
.inbox-row-link:hover { background: #f9fafb; }
.inbox-cat {
font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em;
padding: 2px 6px; border-radius: 4px; font-weight: 700;
}
.inbox-cat.cat-personal-direct { background: #fef3c7; color: #92400e; }
.inbox-cat.cat-structural { background: #dbeafe; color: #1e40af; }
.inbox-cat.cat-churn { background: #f3f4f6; color: #4b5563; }
.inbox-summary { flex: 1; font-size: 13px; }
.inbox-bundle-count {
font-size: 11px; color: #6b7280;
background: #f3f4f6; padding: 1px 6px; border-radius: 999px;
}
.inbox-when { font-size: 11px; color: #9ca3af; }
.toast-host {
position: fixed; right: 16px; bottom: 16px;
display: flex; flex-direction: column; gap: 8px; z-index: 200;
}
.toast {
padding: 10px 14px; background: white; border: 1px solid #e5e7eb;
border-left: 4px solid #6b7280; border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08); font-size: 13px;
max-width: 360px; cursor: pointer;
}
.toast.cat-personal-direct { border-left-color: #d97706; }
.toast.cat-structural { border-left-color: #2563eb; }
.toast.cat-churn { border-left-color: #6b7280; }