OPC # 0001: Extract OPC into standalone repo

This commit is contained in:
amadzarak
2026-04-25 17:26:42 -04:00
commit 42383bdc03
170 changed files with 21365 additions and 0 deletions
+928
View File
@@ -0,0 +1,928 @@
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
background: #f4f6f9;
color: #1c2127;
-webkit-font-smoothing: antialiased;
}
/* ═══════════════════════════════════════════
Shell — sidebar + main
═══════════════════════════════════════════ */
.cp-shell {
display: flex;
min-height: 100vh;
}
/* ── Sidebar ── */
.cp-sidebar {
width: 240px;
flex-shrink: 0;
background: #1a2332;
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100vh;
}
.cp-sidebar-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 1.4rem 1.25rem 1.25rem;
border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand-mark {
width: 32px;
height: 32px;
background: #215db0;
border-radius: 8px;
display: grid;
place-items: center;
font-size: 0.75rem;
font-weight: 700;
color: #fff;
flex-shrink: 0;
}
.brand-name {
font-size: 0.875rem;
font-weight: 600;
color: #e5e8eb;
letter-spacing: -0.01em;
}
.cp-sidebar-nav {
flex: 1;
padding: 0.5rem 0.5rem;
overflow-y: auto;
}
/* Make Blueprint Menu transparent on dark sidebar */
.cp-sidebar-menu.bp5-menu {
background: transparent;
padding: 0;
}
/* Nav items */
.cp-sidebar-menu .bp5-menu-item {
color: #8f99a8;
border-radius: 6px;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-weight: 500;
}
.cp-sidebar-menu .bp5-menu-item:hover {
background: rgba(255,255,255,0.06);
color: #d3d8de;
}
.cp-sidebar-menu .bp5-menu-item.bp5-active,
.cp-sidebar-menu .bp5-menu-item.bp5-intent-primary {
background: rgba(33, 93, 176, 0.35) !important;
color: #fff !important;
}
.cp-sidebar-menu .bp5-menu-item .bp5-icon {
color: inherit;
opacity: 0.8;
}
.cp-sidebar-menu .bp5-menu-item.bp5-active .bp5-icon {
opacity: 1;
}
/* Divider */
.cp-sidebar-menu .bp5-menu-divider {
border-color: rgba(255,255,255,0.07);
margin: 0.25rem 0;
}
.cp-sidebar-footer {
padding: 0.85rem 1rem;
border-top: 1px solid rgba(255,255,255,0.07);
}
.cp-sidebar-user {
display: flex;
align-items: center;
gap: 10px;
}
.user-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
background: #215db0;
color: #fff;
font-size: 0.8rem;
font-weight: 700;
display: grid;
place-items: center;
flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.8rem; font-weight: 600; color: #d3d8de; }
.user-role { font-size: 0.7rem; color: #5f6b7c; }
/* ── Main content area ── */
.cp-main {
flex: 1;
padding: 2rem 2.5rem;
min-width: 0;
}
/* ── Page header ── */
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 2rem;
gap: 1rem;
}
.page-header h1 {
font-size: 1.4rem;
font-weight: 700;
color: #1c2127;
letter-spacing: -0.02em;
margin-bottom: 0.2rem;
}
.page-header p {
font-size: 0.875rem;
color: #738091;
}
/* ═══════════════════════════════════════════
Job cards
═══════════════════════════════════════════ */
.job-list { display: flex; flex-direction: column; gap: 0.75rem; }
.job-card {
background: #fff;
border: 1px solid #e5e8eb;
border-radius: 10px;
padding: 1.1rem 1.25rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
transition: box-shadow 0.15s, border-color 0.15s;
}
.job-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
border-color: #c5cbd3;
}
.job-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.job-card-header strong { font-size: 0.95rem; display: block; }
.job-card-subdomain {
font-size: 0.78rem;
color: #738091;
display: block;
margin-top: 1px;
}
.job-card-meta {
display: flex;
justify-content: space-between;
font-size: 0.78rem;
color: #8f99a8;
}
/* ── Empty state ── */
.empty-state {
background: #fff;
border: 1px dashed #d3d8de;
border-radius: 10px;
padding: 4rem 2rem;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
}
.empty-state-icon { font-size: 2.5rem; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: #1c2127; }
.empty-state p { font-size: 0.875rem; color: #738091; margin-bottom: 0.5rem; }
/* ═══════════════════════════════════════════
Wizard
═══════════════════════════════════════════ */
.wizard-progress {
display: flex;
align-items: center;
gap: 0;
padding: 1rem 1.5rem 0;
border-bottom: 1px solid #e5e8eb;
margin-bottom: 0;
}
.wizard-progress-step {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
padding-bottom: 0.85rem;
font-size: 0.8rem;
font-weight: 500;
color: #8f99a8;
border-bottom: 2px solid transparent;
}
.wizard-progress-step.active {
color: #215db0;
border-bottom-color: #215db0;
}
.wizard-progress-step.done { color: #1c6e42; }
.wizard-progress-dot {
width: 22px;
height: 22px;
border-radius: 50%;
background: #e5e8eb;
color: #738091;
font-size: 0.7rem;
font-weight: 700;
display: grid;
place-items: center;
flex-shrink: 0;
}
.wizard-progress-step.active .wizard-progress-dot {
background: #215db0;
color: #fff;
}
.wizard-progress-step.done .wizard-progress-dot {
background: #1c6e42;
color: #fff;
}
.wizard-step { padding: 0.25rem 0; }
.step-description {
font-size: 0.875rem;
color: #738091;
margin-bottom: 1.5rem;
}
.wizard-step .bp5-form-group { margin-bottom: 1rem; }
.review-table { width: 100%; font-size: 0.875rem; }
.review-table td:first-child { width: 150px; color: #738091; padding-right: 1rem; padding-bottom: 0.6rem; }
.review-table td:last-child { font-weight: 500; }
.wizard-footer-actions { display: flex; gap: 8px; align-items: center; }
.wizard-error { color: #c23030; font-size: 0.85rem; margin-top: 0.5rem; }
/* ── Wizard as inline page ── */
.wizard-page {
display: flex;
flex-direction: column;
height: 100%;
}
.wizard-page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.wizard-page-title h2 {
font-size: 1.4rem;
font-weight: 700;
color: #1c2127;
letter-spacing: -0.02em;
margin-bottom: 0.2rem;
}
.wizard-page-title p {
font-size: 0.875rem;
color: #738091;
}
.wizard-page-body {
flex: 1;
max-width: 640px;
padding-top: 1.5rem;
}
.wizard-page-footer {
display: flex;
align-items: center;
gap: 8px;
padding-top: 1.5rem;
margin-top: 1.5rem;
border-top: 1px solid #e5e8eb;
max-width: 640px;
}
/* ── Tier cards ── */
.tier-cards {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.tier-card {
width: 100%;
text-align: left;
background: #fff;
border: 2px solid #e5e8eb;
border-radius: 10px;
padding: 1rem 1.25rem;
cursor: pointer;
transition: border-color 0.15s, box-shadow 0.15s;
}
.tier-card:hover {
border-color: #215db0;
box-shadow: 0 2px 8px rgba(33,93,176,0.1);
}
.tier-card.selected {
border-color: #215db0;
background: #f0f4ff;
box-shadow: 0 2px 8px rgba(33,93,176,0.12);
}
.tier-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.35rem;
}
.tier-card-label {
font-size: 0.95rem;
font-weight: 600;
color: #1c2127;
}
.tier-card-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 2px 8px;
border-radius: 99px;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.tier-badge-shared { background: #e5e8eb; color: #5f6b7c; }
.tier-badge-isolated { background: #fef3c7; color: #92400e; }
.tier-badge-dedicated { background: #fee2e2; color: #991b1b; }
.tier-card-description {
font-size: 0.8rem;
color: #738091;
line-height: 1.5;
margin: 0;
}
/* ═══════════════════════════════════════════
OPC — Online Project Communication
═══════════════════════════════════════════ */
/* Filter bar */
.opc-filter-bar {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 1.25rem;
flex-wrap: wrap;
}
.opc-count-badge {
margin-left: auto;
font-size: 0.78rem;
color: #738091;
font-weight: 500;
}
/* Table */
.opc-table.bp5-html-table {
width: 100%;
background: #fff;
border-radius: 10px;
overflow: hidden;
border: 1px solid #e5e8eb;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.opc-table.bp5-html-table thead tr th {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #738091;
padding: 0.6rem 0.85rem;
background: #f8f9fb;
border-bottom: 1px solid #e5e8eb;
}
.opc-table.bp5-html-table tbody tr td {
padding: 0.65rem 0.85rem;
vertical-align: middle;
}
.opc-table.bp5-html-table.bp5-interactive tbody tr:hover td {
cursor: pointer;
background: #f0f4ff;
}
.opc-row-selected td {
background: #e8f0fb !important;
}
.opc-number-chip {
font-family: 'Consolas', 'Courier New', monospace;
font-size: 0.78rem;
color: #215db0;
background: #e8f0fb;
padding: 2px 7px;
border-radius: 4px;
white-space: nowrap;
}
.opc-title-cell {
font-weight: 500;
max-width: 340px;
}
.opc-date-cell {
font-size: 0.78rem;
color: #738091;
white-space: nowrap;
}
/* Drawer body */
.opc-drawer-body {
padding: 1.25rem 1.5rem;
height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
}
/* Meta strip */
.opc-meta-strip {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.25rem;
}
.opc-meta-label {
font-size: 0.75rem;
font-weight: 600;
color: #738091;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* Tab panel */
.opc-tab-panel {
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* Field display */
.opc-field-label {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #738091;
margin-bottom: 0.2rem;
}
.opc-field-value {
font-size: 0.875rem;
color: #1c2127;
}
.opc-field-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-top: 0.5rem;
}
.opc-description {
font-size: 0.875rem;
color: #1c2127;
line-height: 1.65;
white-space: pre-wrap;
margin: 0;
}
/* Notes */
.opc-notes-feed {
display: flex;
flex-direction: column;
gap: 0.75rem;
min-height: 60px;
}
.opc-note-card {
background: #f6f7f9;
border: 1px solid #e5e8eb;
border-radius: 8px;
padding: 0.8rem 1rem;
}
.opc-note-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.35rem;
}
.opc-note-author {
font-size: 0.8rem;
font-weight: 600;
color: #1c2127;
}
.opc-note-time {
font-size: 0.73rem;
color: #738091;
}
.opc-note-content {
font-size: 0.875rem;
color: #1c2127;
line-height: 1.6;
white-space: pre-wrap;
}
.opc-note-compose {
border-top: 1px solid #e5e8eb;
padding-top: 1rem;
display: flex;
flex-direction: column;
}
/* Commits */
.opc-commits-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.opc-commit-row {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.6rem 0.75rem;
background: #f6f7f9;
border: 1px solid #e5e8eb;
border-radius: 6px;
}
.opc-commit-hash {
font-family: 'Consolas', 'Courier New', monospace;
font-size: 0.75rem;
color: #215db0;
background: #e8f0fb;
padding: 2px 6px;
border-radius: 4px;
flex-shrink: 0;
white-space: nowrap;
align-self: center;
}
.opc-commit-info { flex: 1; }
.opc-commit-msg { font-size: 0.82rem; font-weight: 500; color: #1c2127; }
.opc-commit-meta { font-size: 0.72rem; color: #738091; margin-top: 2px; }
.opc-commit-files {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
margin-top: 0.35rem;
}
.opc-commit-files span {
font-size: 0.68rem;
font-family: 'Consolas', monospace;
background: #e5e8eb;
color: #5f6b7c;
padding: 1px 5px;
border-radius: 3px;
}
/* Drawer form actions */
.opc-drawer-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
padding-top: 1rem;
border-top: 1px solid #e5e8eb;
margin-top: auto;
}
/* Inline editable description */
.opc-editable-desc {
font-size: 0.875rem !important;
color: #1c2127;
line-height: 1.65;
white-space: pre-wrap;
min-height: 60px;
width: 100%;
border-radius: 4px;
padding: 4px 6px;
}
.opc-editable-desc.bp5-editable-text-editing {
box-shadow: 0 0 0 1px #215db0, 0 0 0 3px rgba(33,93,176,0.2);
}
/* AI assist box */
.opc-ai-box {
background: #faf7ff;
border: 1px dashed #c4b5fd;
border-radius: 8px;
padding: 0.75rem 1rem;
margin-top: 0.25rem;
}
.opc-ai-label { margin-bottom: 0.4rem; }
.opc-ai-input-row { display: flex; gap: 0.5rem; align-items: center; }
.opc-ai-result {
margin-top: 0.75rem;
background: #fff;
border: 1px solid #e5e8eb;
border-radius: 6px;
overflow: hidden;
}
.opc-ai-result-text {
font-size: 0.8rem;
color: #1c2127;
white-space: pre-wrap;
word-break: break-word;
margin: 0;
padding: 0.75rem 1rem;
max-height: 220px;
overflow-y: auto;
line-height: 1.65;
}
.opc-ai-result-actions {
display: flex;
gap: 0.4rem;
padding: 0.5rem 0.75rem;
border-top: 1px solid #e5e8eb;
background: #f8f9fb;
}
/* Artifact panel */
.opc-artifact-panel {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.opc-artifact-card {
background: #fff;
border: 1px solid #e5e8eb;
border-radius: 8px;
padding: 0.9rem 1rem;
}
.opc-artifact-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
font-size: 0.875rem;
}
.opc-artifact-body {
font-size: 0.82rem;
color: #1c2127;
white-space: pre-wrap;
word-break: break-word;
margin: 0;
max-height: 300px;
overflow-y: auto;
line-height: 1.6;
}
.opc-artifact-meta {
font-size: 0.7rem;
color: #738091;
margin-top: 0.5rem;
}
.opc-artifact-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Branch coverage */
.opc-branch-coverage {
background: #f8f9fb;
border: 1px solid #e5e8eb;
border-radius: 8px;
padding: 0.75rem 1rem;
margin-bottom: 0.75rem;
}
.opc-branch-chips {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
/* Commits section labels */
.opc-commits-section-label {
display: flex;
align-items: baseline;
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.opc-section-hint {
font-size: 0.8rem;
color: #738091;
}
.opc-empty-hint {
font-size: 0.82rem;
color: #738091;
margin: 0 0 0.5rem;
}
/* ── Git Commit Drawer ──────────────────────────────────────────────────────── */
.git-commit-drawer .bp5-drawer-header {
padding: 0.75rem 1rem;
}
.git-drawer-title {
display: flex;
align-items: center;
gap: 0.6rem;
min-width: 0;
}
.git-drawer-hash {
font-size: 0.78rem;
background: #e8edf2;
border-radius: 4px;
padding: 2px 6px;
flex-shrink: 0;
color: #215db0;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.git-drawer-subject {
font-size: 0.92rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #1c2127;
}
.git-drawer-body {
flex: 1;
overflow-y: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.git-drawer-footer {
padding: 0.75rem 1rem;
border-top: 1px solid #d3d8de;
display: flex;
justify-content: flex-end;
}
.git-commit-meta-bar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0.6rem 0.75rem;
background: #f6f8fa;
border: 1px solid #d0d7de;
border-radius: 6px;
}
.git-commit-meta-left {
display: flex;
align-items: center;
gap: 0.6rem;
}
.git-commit-meta-right {
display: flex;
align-items: center;
gap: 0.4rem;
}
.git-commit-hash-chip {
font-size: 0.78rem;
background: #dbe7ff;
color: #215db0;
border-radius: 4px;
padding: 2px 7px;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
transition: background 0.15s;
}
.git-commit-hash-chip:hover {
background: #c3d6ff;
}
.git-commit-author {
font-size: 0.83rem;
font-weight: 600;
color: #1c2127;
}
.git-commit-date {
font-size: 0.8rem;
color: #738091;
}
.git-commit-body {
font-size: 0.82rem;
color: #404854;
background: #f6f8fa;
border: 1px solid #d0d7de;
border-radius: 6px;
padding: 0.75rem;
white-space: pre-wrap;
word-break: break-word;
font-family: 'Inter', system-ui, sans-serif;
}
.git-diff-container {
font-size: 0.78rem;
line-height: 1.45;
border-radius: 6px;
overflow: hidden;
border: 1px solid #d0d7de;
}
/* Tune diff2html table to fit drawer width */
.git-diff-container .d2h-wrapper {
overflow-x: auto;
}
.git-diff-container .d2h-file-header {
background: #f0f3f6;
font-size: 0.78rem;
}
.git-diff-container .d2h-code-line {
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 0.75rem;
}
.git-diff-container .d2h-ins {
background: #e6ffec;
}
.git-diff-container .d2h-del {
background: #ffebe9;
}
.git-diff-container .d2h-ins > td.d2h-code-linenumber {
background: #ccffd8;
color: #196c2e;
}
.git-diff-container .d2h-del > td.d2h-code-linenumber {
background: #ffd7d5;
color: #82071e;
}