chore: initial commit of TaskTracker project

Existing ASP.NET API with vanilla JS SPA, WindowWatcher, Chrome extension, and MCP server.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 22:08:45 -05:00
commit e12f78c479
66 changed files with 5170 additions and 0 deletions

View File

@@ -0,0 +1,619 @@
/* ── Variables ── */
:root {
--bg-primary: #1a1b23;
--bg-secondary: #22232e;
--bg-card: #2a2b38;
--bg-input: #32333f;
--bg-hover: #353647;
--border: #3a3b4a;
--text-primary: #e4e4e8;
--text-secondary: #9d9db0;
--text-muted: #6b6b80;
--accent: #6c8cff;
--accent-hover: #8ba3ff;
--success: #4caf7c;
--warning: #e0a040;
--danger: #e05555;
--info: #50b0d0;
--sidebar-width: 220px;
--radius: 8px;
--radius-sm: 4px;
}
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.5;
}
/* ── Layout ── */
#app {
display: flex;
min-height: 100vh;
}
#sidebar {
width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 10;
}
.sidebar-brand {
padding: 20px 16px;
font-size: 18px;
font-weight: 700;
color: var(--accent);
border-bottom: 1px solid var(--border);
letter-spacing: 0.5px;
}
.nav-links {
list-style: none;
padding: 8px;
}
.nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
color: var(--text-secondary);
text-decoration: none;
border-radius: var(--radius-sm);
transition: background 0.15s, color 0.15s;
font-size: 14px;
}
.nav-link:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-link.active {
background: var(--accent);
color: #fff;
}
.nav-icon {
font-size: 12px;
font-weight: 700;
width: 24px;
text-align: center;
opacity: 0.8;
}
#content {
flex: 1;
margin-left: var(--sidebar-width);
padding: 24px 32px;
max-width: 1200px;
}
.page { animation: fadeIn 0.15s ease; }
.hidden { display: none !important; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Typography ── */
.page-title {
font-size: 22px;
font-weight: 600;
margin-bottom: 20px;
color: var(--text-primary);
}
.section-title {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
margin-bottom: 12px;
}
/* ── Cards ── */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px 20px;
margin-bottom: 16px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.card-title {
font-size: 16px;
font-weight: 600;
}
/* ── Stats Grid ── */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
margin-bottom: 20px;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
text-align: center;
}
.stat-value {
font-size: 28px;
font-weight: 700;
color: var(--accent);
}
.stat-label {
font-size: 12px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 4px;
}
/* ── Status Badges ── */
.badge {
display: inline-block;
padding: 2px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.badge-pending { background: #3a3b4a; color: var(--text-secondary); }
.badge-active { background: rgba(76, 175, 124, 0.2); color: var(--success); }
.badge-paused { background: rgba(224, 160, 64, 0.2); color: var(--warning); }
.badge-completed { background: rgba(108, 140, 255, 0.2); color: var(--accent); }
.badge-abandoned { background: rgba(224, 85, 85, 0.2); color: var(--danger); }
/* ── Buttons ── */
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-input);
color: var(--text-primary);
font-size: 13px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
font-family: inherit;
}
.btn:hover { background: var(--bg-hover); border-color: var(--text-muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #1a1b23; }
.btn-warning:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
/* ── Forms ── */
.form-group {
margin-bottom: 14px;
}
.form-label {
display: block;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.form-input, .form-select, .form-textarea {
width: 100%;
padding: 8px 12px;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 60px; }
.form-inline {
display: flex;
gap: 8px;
align-items: flex-end;
}
.form-inline .form-group { margin-bottom: 0; flex: 1; }
/* ── Tables ── */
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
th, td {
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
font-weight: 600;
background: var(--bg-secondary);
position: sticky;
top: 0;
}
tr:hover td { background: var(--bg-hover); }
/* ── Tabs / Filters ── */
.filter-bar {
display: flex;
gap: 4px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.filter-btn {
padding: 6px 14px;
border: 1px solid var(--border);
border-radius: 16px;
background: transparent;
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
font-family: inherit;
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* ── Active Task Card ── */
.active-task-card {
border-left: 3px solid var(--success);
}
.active-task-card .card-title {
color: var(--success);
}
.no-active-task {
color: var(--text-muted);
font-style: italic;
padding: 12px 0;
}
/* ── Task List ── */
.task-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 8px;
cursor: pointer;
transition: border-color 0.15s;
}
.task-item:hover { border-color: var(--accent); }
.task-item-left {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}
.task-item-title {
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.task-item-meta {
font-size: 12px;
color: var(--text-muted);
}
/* ── Task Detail ── */
.task-detail { margin-top: 16px; }
.task-detail-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 16px;
}
.task-detail-title {
font-size: 20px;
font-weight: 600;
}
.task-meta-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
margin-bottom: 20px;
}
.meta-item {
font-size: 13px;
}
.meta-label {
color: var(--text-muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.note-item {
padding: 10px 14px;
background: var(--bg-secondary);
border-radius: var(--radius-sm);
margin-bottom: 8px;
font-size: 13px;
}
.note-item-header {
display: flex;
justify-content: space-between;
margin-bottom: 4px;
}
.note-type {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
color: var(--text-muted);
}
.note-time {
font-size: 11px;
color: var(--text-muted);
}
/* ── Context Summary ── */
.summary-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; }
.summary-app {
font-weight: 500;
}
.summary-category {
font-size: 12px;
color: var(--text-muted);
}
.summary-count {
font-size: 18px;
font-weight: 700;
color: var(--accent);
min-width: 50px;
text-align: right;
}
/* ── Modal ── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.modal {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
min-width: 400px;
max-width: 90vw;
max-height: 80vh;
overflow-y: auto;
animation: modalIn 0.15s ease;
}
@keyframes modalIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.modal-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 16px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 20px;
}
/* ── Utilities ── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.empty-state {
text-align: center;
padding: 40px 20px;
color: var(--text-muted);
}
.truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 300px;
}
/* ── Breadcrumbs ── */
.breadcrumb {
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
margin-bottom: 12px;
flex-wrap: wrap;
}
.breadcrumb-link {
color: var(--accent);
text-decoration: none;
transition: color 0.15s;
}
.breadcrumb-link:hover {
color: var(--accent-hover);
text-decoration: underline;
}
.breadcrumb-sep {
color: var(--text-muted);
margin: 0 2px;
}
.breadcrumb-current {
color: var(--text-secondary);
}
.breadcrumb-parent {
color: var(--text-muted);
}
/* ── Subtasks ── */
.subtask-list {
margin-bottom: 8px;
}
.subtask-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
margin-bottom: 6px;
}
.subtask-item:hover {
border-color: var(--accent);
}
.subtask-item-left {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
}
.subtask-item-title {
color: var(--text-primary);
text-decoration: none;
font-weight: 500;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.subtask-item-title:hover {
color: var(--accent);
}
.subtask-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
padding: 0 6px;
border-radius: 10px;
background: var(--bg-hover);
color: var(--text-muted);
font-size: 11px;
font-weight: 600;
}
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }