Slice 1: scaffolding + propose-to-super-draft vertical
Brings the §1 bot wrapper, the §4 cache (webhook + reconciler), the §5 schema (six numbered migrations), Gitea OAuth + §6 user provisioning, the §7 catalog left pane, and the propose-to-merge vertical: propose modal opens an idea PR against the meta repo, an owner merges from the pending-idea view, the cache picks it up via webhook or reconciler sweep, and the catalog renders the new super-draft. Per §1 the bot is the only Git writer; every commit, branch creation, and PR merge carries the §6.5 On-behalf-of: trailer and an `actions` audit row. Per §4 the cache is never written from a user action — it's webhook+reconciler only. Covered by `backend/tests/test_propose_vertical.py` against an in-process Gitea simulator. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,319 @@
|
||||
/* Adapted from the prototype's App.css per §18, narrowed to slice-1 surfaces. */
|
||||
|
||||
.boot {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
height: 100vh; color: #888; font-size: 14px;
|
||||
}
|
||||
|
||||
.app { height: 100vh; display: flex; flex-direction: column; }
|
||||
|
||||
.app-header {
|
||||
height: 48px; flex-shrink: 0;
|
||||
background: #1a1a1a; color: #fff;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px;
|
||||
}
|
||||
.app-brand a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
|
||||
.header-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
|
||||
.user-name { color: #ddd; }
|
||||
.user-role-badge {
|
||||
font-size: 10px; font-weight: 700;
|
||||
text-transform: uppercase; letter-spacing: 0.06em;
|
||||
padding: 2px 6px; border-radius: 4px;
|
||||
background: rgba(255,255,255,0.15);
|
||||
}
|
||||
.role-owner { background: #b45309; }
|
||||
.role-admin { background: #4338ca; }
|
||||
|
||||
.btn-link {
|
||||
color: #fff; text-decoration: none;
|
||||
background: rgba(255,255,255,0.15);
|
||||
border-radius: 6px; padding: 4px 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.btn-link:hover { background: rgba(255,255,255,0.25); }
|
||||
|
||||
.app-body { flex: 1; display: flex; overflow: hidden; }
|
||||
|
||||
/* --- Catalog (left pane, §7) --- */
|
||||
|
||||
.catalog {
|
||||
width: 320px; flex-shrink: 0;
|
||||
background: #fff; border-right: 1px solid #e5e5e5;
|
||||
display: flex; flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.catalog-search {
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid #f0f0ee;
|
||||
}
|
||||
.catalog-search input {
|
||||
width: 100%; border: 1px solid #e5e5e5; border-radius: 6px;
|
||||
padding: 6px 10px; font-size: 13px; outline: none;
|
||||
}
|
||||
.catalog-search input:focus { border-color: #1a1a1a; }
|
||||
|
||||
.catalog-controls {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 8px 14px;
|
||||
border-bottom: 1px solid #f0f0ee;
|
||||
font-size: 12px; color: #555;
|
||||
}
|
||||
.catalog-controls select {
|
||||
border: 1px solid #e5e5e5; border-radius: 4px;
|
||||
font-size: 12px; padding: 2px 4px;
|
||||
}
|
||||
|
||||
.catalog-chips {
|
||||
display: flex; flex-wrap: wrap; gap: 4px;
|
||||
padding: 6px 14px 10px;
|
||||
border-bottom: 1px solid #f0f0ee;
|
||||
}
|
||||
.chip {
|
||||
font-size: 11px;
|
||||
background: #f0f0ee; color: #444;
|
||||
border: 1px solid transparent; border-radius: 999px;
|
||||
padding: 2px 9px; cursor: pointer;
|
||||
}
|
||||
.chip.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
|
||||
|
||||
.catalog-list { flex: 1; overflow-y: auto; padding: 4px 0; }
|
||||
|
||||
.catalog-row {
|
||||
display: flex; flex-direction: column;
|
||||
padding: 8px 14px;
|
||||
border: none; background: none; text-align: left; cursor: pointer;
|
||||
border-left: 3px solid transparent; width: 100%;
|
||||
}
|
||||
.catalog-row:hover { background: #f7f7f5; }
|
||||
.catalog-row.active { background: #f0f0ee; border-left-color: #1a1a1a; }
|
||||
.catalog-row .row-top { display: flex; align-items: center; gap: 6px; }
|
||||
.row-id {
|
||||
font-size: 10px; font-weight: 700;
|
||||
color: #888; text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.row-id.super { color: #b45309; }
|
||||
.row-title { font-size: 13px; margin-top: 2px; }
|
||||
.catalog-row.is-super .row-title { color: #555; }
|
||||
.row-tags { font-size: 11px; color: #999; margin-top: 2px; }
|
||||
|
||||
.catalog-pending {
|
||||
border-top: 1px solid #f0f0ee;
|
||||
flex-shrink: 0;
|
||||
background: #fafaf8;
|
||||
}
|
||||
.pending-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 8px 14px;
|
||||
font-size: 11px; font-weight: 700;
|
||||
text-transform: uppercase; letter-spacing: 0.06em;
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
background: none; border: none; width: 100%; text-align: left;
|
||||
}
|
||||
.pending-count {
|
||||
background: #e5e5e5; color: #333;
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px; font-size: 11px;
|
||||
}
|
||||
.pending-list { padding: 2px 0 8px; }
|
||||
.pending-row {
|
||||
display: block;
|
||||
padding: 6px 14px;
|
||||
font-size: 13px; color: #444; text-decoration: none;
|
||||
cursor: pointer; background: none; border: none; text-align: left; width: 100%;
|
||||
}
|
||||
.pending-row:hover { background: #fff; color: #1a1a1a; }
|
||||
.pending-row.active { background: #fff; color: #1a1a1a; }
|
||||
.pending-row .pending-by {
|
||||
font-size: 11px; color: #999; margin-top: 1px;
|
||||
}
|
||||
|
||||
.catalog-footer {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
padding: 10px 14px;
|
||||
flex-shrink: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.btn-propose {
|
||||
width: 100%;
|
||||
background: #1a1a1a; color: #fff;
|
||||
border: none; border-radius: 6px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px; font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-propose:hover { background: #333; }
|
||||
.btn-propose:disabled { opacity: 0.5; cursor: default; }
|
||||
|
||||
/* --- Main pane --- */
|
||||
|
||||
.main-pane {
|
||||
flex: 1; overflow-y: auto;
|
||||
padding: 32px 48px;
|
||||
}
|
||||
|
||||
.welcome { max-width: 640px; }
|
||||
.welcome h1 { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
|
||||
.welcome p { line-height: 1.7; color: #444; }
|
||||
|
||||
/* --- RFC / Proposal view (read-only for slice 1) --- */
|
||||
|
||||
.entry-view { max-width: 720px; margin: 0 auto; }
|
||||
.entry-state-banner {
|
||||
font-size: 12px; font-weight: 600;
|
||||
text-transform: uppercase; letter-spacing: 0.06em;
|
||||
color: #b45309;
|
||||
padding: 6px 10px;
|
||||
background: #fffbeb; border: 1px solid #fde68a;
|
||||
border-radius: 6px;
|
||||
display: inline-block; margin-bottom: 16px;
|
||||
}
|
||||
.entry-state-banner.active { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
|
||||
.entry-state-banner.declined { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
|
||||
.entry-state-banner.merged { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
|
||||
|
||||
.entry-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
|
||||
.entry-meta { font-size: 12px; color: #999; margin-bottom: 24px; }
|
||||
.entry-meta .entry-tag {
|
||||
display: inline-block;
|
||||
background: #f0f0ee; color: #555;
|
||||
padding: 1px 8px; border-radius: 999px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.entry-body {
|
||||
font-size: 15px; line-height: 1.75; color: #1a1a1a;
|
||||
}
|
||||
.entry-body h1, .entry-body h2, .entry-body h3 { font-weight: 600; }
|
||||
.entry-body h1 { font-size: 22px; margin-top: 24px; }
|
||||
.entry-body h2 { font-size: 17px; margin-top: 20px; }
|
||||
.entry-body h3 { font-size: 15px; margin-top: 16px; }
|
||||
.entry-body p { margin: 0 0 12px; }
|
||||
.entry-body ul, .entry-body ol { padding-left: 24px; }
|
||||
.entry-body code { background: #f0f0ee; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
|
||||
|
||||
.entry-actions {
|
||||
display: flex; gap: 8px; margin: 16px 0 24px;
|
||||
padding-bottom: 24px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.btn-primary {
|
||||
background: #166534; color: #fff;
|
||||
border: none; border-radius: 6px;
|
||||
padding: 7px 14px;
|
||||
font-size: 13px; font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-primary:hover { background: #14532d; }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: default; }
|
||||
.btn-secondary {
|
||||
background: #fff; color: #1a1a1a;
|
||||
border: 1px solid #d4d4d4; border-radius: 6px;
|
||||
padding: 7px 14px;
|
||||
font-size: 13px; font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-secondary:hover { background: #f7f7f5; }
|
||||
.btn-danger {
|
||||
background: #fff; color: #991b1b;
|
||||
border: 1px solid #fecaca; border-radius: 6px;
|
||||
padding: 7px 14px;
|
||||
font-size: 13px; font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-danger:hover { background: #fef2f2; }
|
||||
|
||||
/* --- Modals --- */
|
||||
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(20, 20, 20, 0.4);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
z-index: 100;
|
||||
}
|
||||
.modal {
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.15);
|
||||
width: 560px; max-width: calc(100vw - 40px);
|
||||
max-height: calc(100vh - 80px);
|
||||
display: flex; flex-direction: column;
|
||||
}
|
||||
.modal-header {
|
||||
padding: 18px 20px;
|
||||
border-bottom: 1px solid #f0f0ee;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.modal-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
|
||||
.modal-close {
|
||||
background: none; border: none; font-size: 22px; cursor: pointer;
|
||||
color: #999; line-height: 1; padding: 0;
|
||||
}
|
||||
.modal-body {
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
.modal-body label {
|
||||
display: block;
|
||||
font-size: 12px; font-weight: 600;
|
||||
color: #555;
|
||||
text-transform: uppercase; letter-spacing: 0.05em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.modal-body input, .modal-body textarea {
|
||||
width: 100%;
|
||||
border: 1px solid #d4d4d4; border-radius: 6px;
|
||||
padding: 8px 10px;
|
||||
font-size: 14px; font-family: inherit;
|
||||
outline: none; margin-bottom: 14px;
|
||||
}
|
||||
.modal-body input:focus, .modal-body textarea:focus { border-color: #1a1a1a; }
|
||||
.modal-body textarea { resize: vertical; min-height: 100px; }
|
||||
.field-help {
|
||||
font-size: 12px; color: #999;
|
||||
margin-top: -10px; margin-bottom: 14px;
|
||||
}
|
||||
.field-error {
|
||||
font-size: 12px; color: #991b1b;
|
||||
margin-top: -10px; margin-bottom: 14px;
|
||||
}
|
||||
.modal-actions {
|
||||
border-top: 1px solid #f0f0ee;
|
||||
padding: 14px 20px;
|
||||
display: flex; justify-content: flex-end; gap: 10px;
|
||||
}
|
||||
|
||||
/* --- Landing page (pre-login, §14.1) --- */
|
||||
|
||||
.landing {
|
||||
height: 100vh;
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
padding: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.landing h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
|
||||
.landing .subtitle { font-size: 16px; color: #666; margin: 0 0 28px; }
|
||||
.landing .pitch {
|
||||
max-width: 540px;
|
||||
line-height: 1.7; color: #333;
|
||||
font-size: 15px;
|
||||
margin: 0 0 28px;
|
||||
}
|
||||
.landing .btn-signin {
|
||||
background: #1a1a1a; color: #fff;
|
||||
border: none; border-radius: 8px;
|
||||
padding: 10px 20px;
|
||||
font-size: 14px; font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
.landing .btn-signin:hover { background: #333; }
|
||||
.landing .secondary-link {
|
||||
margin-top: 14px;
|
||||
font-size: 13px;
|
||||
color: #666; text-decoration: none;
|
||||
}
|
||||
.landing .secondary-link:hover { color: #1a1a1a; text-decoration: underline; }
|
||||
Reference in New Issue
Block a user