Add /contacts and /calendar pages; email signature settings; v1.1.12

- /contacts: standalone page with hybrid contact list (submissions + manual entry), inline edit, search, archive
- /calendar: monthly release scheduling calendar reading/writing podcast checklist episode dates
- /email settings: editable signature panel; signature persisted server-side and injected into outgoing emails
- Move contacts out of /admin panel (now links to /contacts route)
- Partial PATCH for contact submissions (name, notes, archived independently)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmert
2026-07-28 10:12:52 -04:00
parent 7670b44d27
commit ce235ba9ef
13 changed files with 1952 additions and 145 deletions
+748
View File
@@ -10062,3 +10062,751 @@
.em-footer-hint { display: none; }
}
/* ── Contacts Page (/contacts) ────────────────────────────────────────────── */
.ct-app {
display: flex;
flex-direction: column;
height: 100dvh;
background: #0f0f0f;
color: #e8e2d5;
font-family: system-ui, -apple-system, sans-serif;
overflow: hidden;
}
.ct-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1.25rem;
background: #1a1a1a;
border-bottom: 1px solid #2a2a2a;
flex-shrink: 0;
}
.ct-header-brand {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 600;
color: #e8e2d5;
}
.ct-header-count {
background: #2e2e2e;
color: #9a9080;
font-size: 0.72rem;
font-weight: 500;
padding: 0.15rem 0.5rem;
border-radius: 999px;
margin-left: 0.25rem;
}
.ct-header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.ct-add-banner {
background: #141414;
border-bottom: 1px solid #2a2a2a;
padding: 1rem 1.25rem;
flex-shrink: 0;
}
.ct-add-form { max-width: 720px; }
.ct-add-title {
font-size: 0.85rem;
font-weight: 600;
color: #b0a898;
margin: 0 0 0.75rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.ct-add-row {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 0.6rem;
}
.ct-add-label {
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.78rem;
color: #9a9080;
flex: 1;
min-width: 180px;
}
.ct-add-label--full { width: 100%; flex: none; }
.ct-input {
background: #1e1e1e;
border: 1px solid #333;
border-radius: 6px;
color: #e8e2d5;
padding: 0.45rem 0.65rem;
font-size: 0.88rem;
width: 100%;
box-sizing: border-box;
font-family: inherit;
}
.ct-input:focus {
outline: none;
border-color: #c8860a;
box-shadow: 0 0 0 2px rgba(200, 134, 10, 0.18);
}
.ct-notes-input { resize: vertical; }
.ct-add-actions { margin-top: 0.6rem; }
.ct-error {
color: #f87171;
font-size: 0.83rem;
margin: 0.4rem 0 0;
}
.ct-toolbar {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.65rem 1.25rem;
background: #161616;
border-bottom: 1px solid #242424;
flex-shrink: 0;
flex-wrap: wrap;
}
.ct-search {
flex: 1;
min-width: 200px;
max-width: 480px;
background: #1e1e1e;
border: 1px solid #2e2e2e;
border-radius: 6px;
color: #e8e2d5;
padding: 0.42rem 0.75rem;
font-size: 0.87rem;
}
.ct-search:focus { outline: none; border-color: #c8860a; }
.ct-archived-toggle {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.82rem;
color: #7a7060;
cursor: pointer;
}
.ct-count-label {
font-size: 0.82rem;
color: #7a7060;
margin-left: auto;
}
.ct-list {
flex: 1;
overflow-y: auto;
padding: 0.75rem 1.25rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.ct-empty {
color: #6a6050;
font-size: 0.9rem;
text-align: center;
margin-top: 2rem;
}
.ct-card {
display: flex;
gap: 0.9rem;
align-items: flex-start;
background: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 10px;
padding: 0.85rem 1rem;
transition: border-color 0.15s;
}
.ct-card:hover { border-color: #3a3a3a; }
.ct-card--archived { opacity: 0.5; }
.ct-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: linear-gradient(135deg, #c8860a, #9a6408);
color: #fff;
font-size: 1rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
user-select: none;
}
.ct-card-body { flex: 1; min-width: 0; }
.ct-card-top {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.4rem;
}
.ct-card-name {
font-size: 0.92rem;
font-weight: 600;
color: #e8e2d5;
}
.ct-card-email {
font-size: 0.82rem;
color: #c8860a;
text-decoration: none;
}
.ct-card-email:hover { text-decoration: underline; }
.ct-badge {
font-size: 0.7rem;
font-weight: 600;
padding: 0.15rem 0.45rem;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.ct-badge--form { background: #1e3a2e; color: #4ade80; }
.ct-badge--email { background: #1e2a4a; color: #60a5fa; }
.ct-badge--download { background: #2a2015; color: #f59e0b; }
.ct-badge--manual { background: #2a1a2e; color: #c084fc; }
.ct-badge--sub { background: #0f2a1e; color: #34d399; }
.ct-count-badge {
font-size: 0.7rem;
background: #2e2e2e;
color: #9a9080;
padding: 0.12rem 0.45rem;
border-radius: 999px;
}
.ct-card-notes {
font-size: 0.83rem;
color: #a09080;
margin: 0.25rem 0;
line-height: 1.4;
}
.ct-card-notes--empty { color: #554f45; font-style: italic; }
.ct-card-bottom {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 0.3rem;
flex-wrap: wrap;
}
.ct-card-date {
font-size: 0.78rem;
color: #6a6050;
flex-shrink: 0;
}
.ct-card-preview {
font-size: 0.8rem;
color: #706050;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
min-width: 0;
}
.ct-card-actions {
display: flex;
flex-direction: column;
gap: 0.35rem;
flex-shrink: 0;
align-self: center;
}
.ct-edit-form { display: flex; flex-direction: column; gap: 0.55rem; }
.ct-edit-row { display: flex; gap: 0.6rem; }
.ct-edit-label {
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.78rem;
color: #9a9080;
flex: 1;
}
.ct-edit-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.2rem;
}
/* ── Calendar Page (/calendar) ─────────────────────────────────────────────── */
.cal-app {
display: flex;
flex-direction: column;
height: 100dvh;
background: #0f0f0f;
color: #e8e2d5;
font-family: system-ui, -apple-system, sans-serif;
overflow: hidden;
}
.cal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1.25rem;
background: #1a1a1a;
border-bottom: 1px solid #2a2a2a;
flex-shrink: 0;
gap: 0.75rem;
flex-wrap: wrap;
}
.cal-header-left {
display: flex;
align-items: center;
gap: 0.5rem;
}
.cal-header-right {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.cal-month-title {
font-size: 1.1rem;
font-weight: 600;
color: #e8e2d5;
margin: 0;
min-width: 180px;
text-align: center;
}
.cal-nav-btn {
background: #2a2a2a;
border: 1px solid #363636;
color: #c0b8a8;
border-radius: 6px;
width: 32px;
height: 32px;
font-size: 1.1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.12s;
}
.cal-nav-btn:hover { background: #333; }
.cal-saving {
font-size: 0.8rem;
color: #c8860a;
margin-left: 0.25rem;
}
.cal-scheduling-hint {
font-size: 0.82rem;
color: #c8860a;
}
.cal-cancel-link {
background: none;
border: none;
color: #c8860a;
cursor: pointer;
text-decoration: underline;
font-size: inherit;
padding: 0;
}
.cal-new-ep-banner {
background: #141414;
border-bottom: 1px solid #2a2a2a;
padding: 0.9rem 1.25rem;
flex-shrink: 0;
}
.cal-new-ep-form { max-width: 900px; }
.cal-new-ep-title {
font-size: 0.82rem;
font-weight: 600;
color: #8a8070;
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 0 0 0.6rem;
}
.cal-new-ep-row {
display: flex;
gap: 0.6rem;
flex-wrap: wrap;
margin-bottom: 0.6rem;
}
.cal-new-ep-label {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.77rem;
color: #8a8070;
flex: 1;
min-width: 140px;
}
.cal-new-ep-actions { display: flex; gap: 0.5rem; }
.cal-body {
flex: 1;
display: flex;
overflow: hidden;
}
.cal-main {
flex: 1;
overflow-y: auto;
padding: 0.75rem;
min-width: 0;
}
.cal-loading {
color: #6a6050;
text-align: center;
margin-top: 3rem;
}
.cal-dow-row {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
margin-bottom: 2px;
}
.cal-dow {
font-size: 0.72rem;
font-weight: 600;
color: #6a6050;
text-align: center;
padding: 0.35rem 0;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
}
.cal-day {
background: #161616;
border: 1px solid #232323;
border-radius: 6px;
min-height: 90px;
padding: 0.4rem;
cursor: default;
display: flex;
flex-direction: column;
transition: border-color 0.12s;
}
.cal-day--out { opacity: 0.35; }
.cal-day--today { border-color: #c8860a; }
.cal-day--selectable { cursor: pointer; }
.cal-day--selectable:hover { background: #1c1c12; border-color: #c8860a66; }
.cal-day-num {
font-size: 0.75rem;
font-weight: 600;
color: #7a7060;
display: block;
margin-bottom: 0.3rem;
}
.cal-day--today .cal-day-num { color: #c8860a; }
.cal-day-events {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
}
.cal-ep-chip {
background: linear-gradient(135deg, #1e2e1a, #172015);
border: 1px solid #2a3a24;
color: #6adb88;
font-size: 0.68rem;
padding: 0.2rem 0.4rem;
border-radius: 4px;
cursor: pointer;
text-align: left;
transition: background 0.12s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.cal-ep-chip:hover { background: #2a3e24; }
.cal-ep-chip-title { color: #4a8a58; }
.cal-sidebar {
width: 220px;
flex-shrink: 0;
background: #141414;
border-left: 1px solid #222;
display: flex;
flex-direction: column;
overflow: hidden;
}
.cal-sidebar-title {
font-size: 0.78rem;
font-weight: 600;
color: #8a8070;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.75rem 0.9rem 0.5rem;
border-bottom: 1px solid #232323;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.cal-sidebar-count {
background: #2e2e2e;
color: #9a9080;
font-size: 0.68rem;
padding: 0.1rem 0.4rem;
border-radius: 999px;
}
.cal-sidebar-hint {
font-size: 0.78rem;
color: #c8860a;
padding: 0.4rem 0.9rem 0;
margin: 0;
}
.cal-sidebar-empty {
font-size: 0.82rem;
color: #6a6050;
padding: 0.75rem 0.9rem;
margin: 0;
}
.cal-sidebar-list {
overflow-y: auto;
flex: 1;
padding: 0.4rem 0.6rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.cal-sidebar-ep {
background: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 7px;
padding: 0.5rem 0.65rem;
cursor: pointer;
transition: border-color 0.12s, background 0.12s;
}
.cal-sidebar-ep:hover { border-color: #3a3a3a; }
.cal-sidebar-ep--selected { border-color: #c8860a; background: #1e1a12; }
.cal-sidebar-ep-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.2rem;
}
.cal-sidebar-ep-num {
font-size: 0.72rem;
font-weight: 600;
color: #c8860a;
}
.cal-sidebar-ep-edit {
background: none;
border: none;
color: #5a5040;
cursor: pointer;
font-size: 0.8rem;
padding: 0;
line-height: 1;
}
.cal-sidebar-ep-edit:hover { color: #9a9080; }
.cal-sidebar-ep-title {
font-size: 0.8rem;
color: #c8b898;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cal-sidebar-ep-series {
font-size: 0.7rem;
color: #6a6050;
margin-top: 0.1rem;
}
/* Calendar popover */
.cal-popover-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.55);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.cal-popover {
background: #1e1e1e;
border: 1px solid #333;
border-radius: 12px;
width: 340px;
max-width: 90vw;
box-shadow: 0 16px 40px rgba(0,0,0,0.7);
overflow: hidden;
}
.cal-popover-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.85rem 1rem;
border-bottom: 1px solid #2a2a2a;
}
.cal-popover-head h3 {
margin: 0;
font-size: 0.95rem;
color: #e8e2d5;
}
.cal-popover-close {
background: none;
border: none;
color: #6a6050;
font-size: 1.2rem;
cursor: pointer;
line-height: 1;
padding: 0;
}
.cal-popover-close:hover { color: #c0b8a8; }
.cal-popover-body {
padding: 0.9rem 1rem;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.cal-popover-label {
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.78rem;
color: #8a8070;
}
.cal-popover-actions {
display: flex;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-top: 1px solid #2a2a2a;
}
/* Email settings panel additions */
.em-settings-section {
margin-bottom: 1.25rem;
}
.em-settings-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
font-weight: 600;
color: #b0a898;
margin-bottom: 0.5rem;
flex-wrap: wrap;
}
.em-settings-note {
font-size: 0.8rem;
color: #6a6050;
margin: 0.2rem 0 0.5rem;
line-height: 1.4;
}
.em-settings-sig-textarea {
width: 100%;
box-sizing: border-box;
margin-top: 0.4rem;
}
.em-settings-status {
font-size: 0.72rem;
font-weight: 600;
padding: 0.15rem 0.45rem;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.em-settings-status--ok { background: #1e3a2e; color: #4ade80; }
.em-settings-status--warn { background: #3a1a1a; color: #f87171; }
.em-compose-signature-text {
white-space: pre-line;
}
.em-sig-edit-link {
background: none;
border: none;
color: #c8860a;
cursor: pointer;
font-size: 0.75rem;
padding: 0;
text-decoration: underline;
}
.em-sig-edit-link:hover { color: #e0a020; }
@media (max-width: 600px) {
.ct-card { flex-direction: column; gap: 0.6rem; }
.ct-card-actions { flex-direction: row; }
.cal-sidebar { display: none; }
.cal-month-title { min-width: 120px; font-size: 0.95rem; }
}