Download web/index.html from LoveLogicAI/kanbot-backend: direct link, hf CLI and curl.
- Browser
- Download file 6.8 kB
-
https://huggingface.co/spaces/LoveLogicAI/kanbot-backend/resolve/main/web/index.html
- Command line
-
hf download hf://spaces/LoveLogicAI/kanbot-backend/web/index.html
-
curl -L -o index.html https://huggingface.co/spaces/LoveLogicAI/kanbot-backend/resolve/main/web/index.html
6.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>KanBot — live board</title> | |
| <style> | |
| :root{ | |
| --black:#161616; --white:#FFFFFF; --grey:#F4F4F4; --yellow:#FFE600; | |
| --muted:#7A7579; --line:#E4E4E4; | |
| --green:#1FAD66; --red:#E5484D; --blue:#3E63DD; --purple:#8E4EC6; | |
| } | |
| *{box-sizing:border-box;margin:0;padding:0} | |
| body{ | |
| font-family:'Chip Text',system-ui,-apple-system,sans-serif; | |
| background:var(--black); color:var(--white); min-height:100vh; | |
| -webkit-font-smoothing:antialiased; | |
| } | |
| header{ | |
| display:flex; align-items:center; justify-content:space-between; | |
| padding:18px 28px; border-bottom:1px solid rgba(255,255,255,.08); | |
| position:sticky; top:0; background:rgba(22,22,22,.92); | |
| backdrop-filter:blur(16px); z-index:10; | |
| } | |
| .brand{display:flex; align-items:center; gap:12px} | |
| .brand h1{ | |
| font-family:'Chip Display',system-ui,sans-serif; | |
| font-size:22px; letter-spacing:-.5px; | |
| } | |
| .brand .dot{width:10px;height:10px;border-radius:9999px;background:var(--yellow)} | |
| .status{ | |
| font-family:'Chip Mono',ui-monospace,monospace; font-size:13px; | |
| text-transform:uppercase; letter-spacing:.5px; display:flex; gap:14px; align-items:center; | |
| } | |
| .pill{border-radius:9999px; padding:5px 14px; font-weight:600} | |
| .live{background:var(--green); color:#fff} | |
| .live.off{background:var(--red)} | |
| .drymode{background:var(--yellow); color:var(--black)} | |
| .board{ | |
| display:grid; grid-template-columns:repeat(6,minmax(180px,1fr)); | |
| gap:14px; padding:22px 28px; align-items:start; | |
| } | |
| @media(max-width:1100px){.board{grid-template-columns:repeat(3,1fr)}} | |
| @media(max-width:680px){.board{grid-template-columns:1fr}} | |
| .col{background:#1d1d1d; border:1px solid rgba(255,255,255,.06); border-radius:12px; overflow:hidden} | |
| .col h2{ | |
| font-family:'Chip Mono',ui-monospace,monospace; font-size:12.5px; | |
| text-transform:uppercase; letter-spacing:.6px; color:var(--muted); | |
| padding:14px 16px 10px; display:flex; justify-content:space-between; align-items:center; | |
| } | |
| .col h2 .n{ | |
| background:rgba(255,255,255,.08); color:#fff; border-radius:9999px; | |
| padding:1px 9px; font-size:11px; | |
| } | |
| .col .rail{height:3px} | |
| .rail.backlog{background:var(--muted)} | |
| .rail.ready{background:var(--blue)} | |
| .rail.in-flight{background:var(--yellow)} | |
| .rail.review{background:var(--purple)} | |
| .rail.blocked{background:var(--red)} | |
| .rail.done{background:var(--green)} | |
| .cards{padding:10px; display:flex; flex-direction:column; gap:9px; min-height:40px} | |
| .card{ | |
| background:var(--white); color:var(--black); border-radius:10px; | |
| padding:11px 12px; border-left:4px solid transparent; | |
| transition:transform .12s ease, box-shadow .12s ease; | |
| } | |
| .card:hover{transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,0,0,.35)} | |
| .card.new{animation:flash .9s ease} | |
| @keyframes flash{0%{box-shadow:0 0 0 3px var(--yellow)}100%{box-shadow:none}} | |
| .card .id{ | |
| font-family:'Chip Mono',ui-monospace,monospace; font-size:11px; | |
| color:var(--muted); text-transform:uppercase; letter-spacing:.4px; | |
| } | |
| .card .title{font-size:14px; line-height:1.25; margin:3px 0 7px; font-weight:500} | |
| .card .meta{display:flex; flex-wrap:wrap; gap:5px} | |
| .tag{ | |
| font-family:'Chip Mono',ui-monospace,monospace; font-size:10px; | |
| text-transform:uppercase; border-radius:9999px; padding:2px 8px; font-weight:600; | |
| } | |
| .role-planner{background:#eef1ff; color:var(--blue)} | |
| .role-executor{background:#fff7cc; color:#8a7a00} | |
| .role-critic{background:#f4ecfb; color:var(--purple)} | |
| .tag-heavy{background:var(--black); color:var(--yellow)} | |
| .tag-human{background:var(--red); color:#fff} | |
| .card.review{border-left-color:var(--purple)} | |
| .card.blocked{border-left-color:var(--red)} | |
| .card.done{border-left-color:var(--green); opacity:.72} | |
| .card.in-flight{border-left-color:var(--yellow)} | |
| .empty{color:rgba(255,255,255,.22); font-size:12px; text-align:center; padding:12px 0} | |
| footer{ | |
| padding:16px 28px; color:var(--muted); font-size:12px; | |
| font-family:'Chip Mono',ui-monospace,monospace; text-transform:uppercase; | |
| letter-spacing:.5px; border-top:1px solid rgba(255,255,255,.06); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="brand"><span class="dot"></span><h1>KanBot</h1></div> | |
| <div class="status"> | |
| <span id="conn" class="pill live off">connecting</span> | |
| <span class="pill drymode" id="mode">DRY-RUN</span> | |
| <span id="lastevt"></span> | |
| </div> | |
| </header> | |
| <main class="board" id="board"></main> | |
| <footer>The board is the runtime · every column change is an agent event · Computer by DevRev</footer> | |
| <script> | |
| const COLS = ["backlog","ready","in-flight","review","blocked","done"]; | |
| const boardEl = document.getElementById("board"); | |
| const connEl = document.getElementById("conn"); | |
| const lastEl = document.getElementById("lastevt"); | |
| let prevIds = new Set(); | |
| function esc(s){return (s||"").replace(/[&<>]/g,c=>({"&":"&","<":"<",">":">"}[c]));} | |
| function render(board){ | |
| const nextIds = new Set(); | |
| boardEl.innerHTML = COLS.map(col=>{ | |
| const cards = board[col]||[]; | |
| const items = cards.map(c=>{ | |
| nextIds.add(c.id); | |
| const isNew = !prevIds.has(c.id) ? "new" : ""; | |
| const tags = [ | |
| `<span class="tag role-${c.role}">${c.role}</span>`, | |
| ...(c.tags||[]).map(t=>`<span class="tag tag-${t}">${esc(t)}</span>`), | |
| c.requires_human ? `<span class="tag tag-human">needs you</span>` : "", | |
| c.attempt>0 ? `<span class="tag" style="background:#eee">retry ${c.attempt}</span>`:"" | |
| ].join(""); | |
| return `<div class="card ${col} ${isNew}"> | |
| <div class="id">${esc(c.id)}${c.worker?" · "+esc(c.worker):""}</div> | |
| <div class="title">${esc(c.title)}</div> | |
| <div class="meta">${tags}</div></div>`; | |
| }).join("") || `<div class="empty">—</div>`; | |
| return `<section class="col"> | |
| <div class="rail ${col}"></div> | |
| <h2>${col.replace("-"," ")}<span class="n">${cards.length}</span></h2> | |
| <div class="cards">${items}</div></section>`; | |
| }).join(""); | |
| prevIds = nextIds; | |
| } | |
| function connect(){ | |
| const ws = new WebSocket(`ws://${location.host}/ws`); | |
| ws.onopen = ()=>{connEl.textContent="live"; connEl.classList.remove("off");}; | |
| ws.onclose = ()=>{connEl.textContent="reconnecting"; connEl.classList.add("off"); setTimeout(connect,1500);}; | |
| ws.onmessage = (m)=>{ | |
| const msg = JSON.parse(m.data); | |
| if(msg.board) render(msg.board); | |
| if(msg.type==="event" && msg.event){ | |
| lastEl.textContent = `${msg.event.card_id}: ${msg.event.from||"new"} → ${msg.event.to}`; | |
| } | |
| }; | |
| } | |
| // initial paint from snapshot endpoint, then go live | |
| fetch("/snapshot").then(r=>r.json()).then(render).finally(connect); | |
| </script> | |
| </body> | |
| </html> | |