Give satellite imagery, terrain data, buildings, streetview photos to your LLM
Better capture cards
Belluxx7bebfde2c684
diff --git a/src/assets/app.js b/src/assets/app.jsindex 40d1608..f70c369 100644--- a/src/assets/app.js+++ b/src/assets/app.js@@ -84,21 +84,6 @@ function node(tag, text, className) {return element;}-function statusIcon(stateName) {- const kind = stateName === "complete" ? "complete" : stateName === "failed" ? "failed" : "pending";- const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");- svg.setAttribute("class", `status-icon ${kind}`);- svg.setAttribute("viewBox", "0 0 16 16");- svg.setAttribute("fill", "none");- svg.setAttribute("role", "img");- svg.setAttribute("aria-label", stateName);- const path = document.createElementNS(svg.namespaceURI, "path");- path.setAttribute("d", {complete: "m3.5 8.25 2.75 2.75 6.25-6.25", failed: "m4.25 4.25 7.5 7.5m0-7.5-7.5 7.5",- pending: "M8 2.75A5.25 5.25 0 1 1 2.75 8"}[kind]);- svg.append(path);- return svg;-}-function notice(message) {$("notice").querySelector("span").textContent = message;$("notice").hidden = false;@@ -160,9 +145,8 @@ function renderLibrary() {button.setAttribute("aria-pressed", String(state.selected?.id === run.id));const heading = node("div", undefined, "card-heading");heading.append(node("strong", date(run.started_at)));- heading.append(statusIcon(status));const sources = node("div", undefined, "card-sources");- Object.keys(run.layers).forEach((key) => sources.append(node("span", names[key], "tag")));+ Object.keys(run.layers).forEach((key) => sources.append(node("span", names[key], "card-source")));button.append(heading, node("div", coordinates, "card-coordinates"), sources);button.addEventListener("click", () => selectCapture(run.id).catch((error) => notice(error.message)));const available = {@@ -179,6 +163,7 @@ function renderLibrary() {if (action.dataset.action === "resume" && run.state === "planned") {action.title = "Review capture plan";action.setAttribute("aria-label", action.title);+ action.querySelector("span").textContent = "Review plan";}action.addEventListener("click", () => {more.open = false;@@ -188,7 +173,10 @@ function renderLibrary() {return runAction(run.id, action.dataset.action);});}- card.append(button, actions);+ const footer = node("div", undefined, "card-footer");+ if (!currentJob) footer.append(node("span", status.charAt(0).toUpperCase() + status.slice(1), "card-status"));+ footer.append(actions);+ card.append(button, footer);fragment.append(card);if (currentJob) jobCard = card;}@@ -196,13 +184,14 @@ function renderLibrary() {jobCard = node("article", undefined, "capture-card");jobCard.dataset.state = state.job.state;const heading = node("div", undefined, "card-heading pending-heading");- heading.append(node("strong", "New capture"), statusIcon(state.job.state));- jobCard.append(heading);+ heading.append(node("strong", "New capture"));+ jobCard.append(heading, node("div", undefined, "card-footer"));fragment.prepend(jobCard);}if (!fragment.childNodes.length) fragment.append(node("p", state.captures.length ? "No matching captures." : "No captures yet.", "muted empty-list"));$("captures").replaceChildren(fragment);- (jobCard || $("captures")).append(jobPanel);+ (jobCard?.querySelector(".card-footer") || $("captures")).prepend(jobPanel);+ $("view-job").hidden = !state.job?.run_id || state.captures.some((run) => run.id === state.job.run_id);}async function refreshLibrary(initial = false) {@@ -1053,7 +1042,7 @@ function renderJob(job) {$("stop-job").setAttribute("aria-label", stopLabel);$("stop-job").title = stopLabel;$("dismiss-job").hidden = job.active;- $("view-job").hidden = !job.run_id || job.run_id === state.selected?.id;+ $("view-job").hidden = !job.run_id || state.captures.some((run) => run.id === job.run_id);$("job-error").hidden = !job.error;$("job-error").title = job.error || "";$("new-capture").disabled = $("welcome-new").disabled = job.active;diff --git a/src/assets/index.html b/src/assets/index.htmlindex 9c1fb32..6c60f52 100644--- a/src/assets/index.html+++ b/src/assets/index.html@@ -51,11 +51,10 @@<div id="captures" class="capture-list" aria-live="polite"><p class="muted empty-list">Loading captures…</p></div><template id="capture-actions"><div class="card-actions">- <button data-action="resume" class="icon-button" aria-label="Resume capture" title="Resume capture"><svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M6 4.5a.75.75 0 0 1 1.14-.64l8.5 5.5a.75.75 0 0 1 0 1.28l-8.5 5.5A.75.75 0 0 1 6 15.5Z"/></svg></button>+ <button data-action="resume" class="card-resume" aria-label="Resume capture" title="Resume capture"><svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M6 4.5a.75.75 0 0 1 1.14-.64l8.5 5.5a.75.75 0 0 1 0 1.28l-8.5 5.5A.75.75 0 0 1 6 15.5Z"/></svg><span>Resume</span></button><details class="card-more"><summary class="icon-button" aria-label="Other capture options" title="Other options"><svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><circle cx="4" cy="10" r="1.5"/><circle cx="10" cy="10" r="1.5"/><circle cx="16" cy="10" r="1.5"/></svg></summary><div class="card-options">- <span class="eyebrow">Other options</span><button data-action="export" title="Rebuild saved previews and exports">Rebuild exports</button></div></details>@@ -70,8 +69,8 @@<button id="job-error" class="job-error" aria-label="Show capture error details" hidden>Details</button><div class="job-actions"><button id="view-job" hidden>View capture</button>- <button id="stop-job" class="icon-button" aria-label="Stop capture" title="Stop capture"><svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><rect x="5" y="5" width="10" height="10"/></svg></button>- <button id="dismiss-job" class="quiet" hidden aria-label="Dismiss progress">✕</button>+ <button id="stop-job" aria-label="Stop capture" title="Stop capture"><svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><rect x="5" y="5" width="10" height="10"/></svg><span>Stop</span></button>+ <button id="dismiss-job" class="icon-button" hidden aria-label="Dismiss progress" title="Dismiss progress"><svg viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="m5 5 10 10M15 5 5 15" stroke="currentColor" stroke-width="1.5"/></svg></button></div></section><div class="root-info">Workspace<code id="root-path"></code></div>diff --git a/src/assets/style.css b/src/assets/style.cssindex 8746f3e..8b460a4 100644--- a/src/assets/style.css+++ b/src/assets/style.css@@ -9,6 +9,7 @@--soft: #ededed;--accent: #245bdb;--accent-wash: #245bdb0a;+ --danger: #b13b32;--on-ink: #fff;--ink-hover: #393939;--border-hover: #b0b0b0;@@ -63,6 +64,7 @@--soft: #2e3238;--accent: #82aaff;--accent-wash: #82aaff14;+ --danger: #f0958c;--on-ink: #191b1e;--ink-hover: #d1d5dc;--border-hover: #707782;@@ -177,34 +179,31 @@ a { color: inherit; text-underline-offset: 3px; }.search input { width: 100%; font-size: 11px; padding: 11px 10px 11px 31px; background: var(--surface); }.capture-list { overflow: auto; flex: 1; margin: 16px -20px 16px; min-height: 50px; scrollbar-width: thin; }.capture-card { position: relative; width: 100%; min-width: 0; border-bottom: 1px solid var(--soft); }-.capture-card:has(.card-actions:not([hidden]) .card-more:not([hidden])) .card-heading { padding-right: 30px; }-.capture-card:has(.card-more[open]) { min-height: 140px; }-.capture-select { display: block; width: 100%; text-align: left; padding: 18px 20px; border: 0; background: transparent; }+.capture-select { display: block; width: 100%; text-align: left; padding: 14px 20px 10px; border: 0; background: transparent; }.capture-card:hover { background: var(--paper); }.capture-card.active { background: var(--accent-wash); box-shadow: inset 2px 0 var(--accent); }-.card-heading { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 9px; }+.card-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }.capture-card strong { font-size: 12px; font-weight: 600; }-.card-coordinates { font: 10px/1.5 var(--mono); color: var(--muted); margin-bottom: 12px; }-.card-sources { display: flex; gap: 6px; flex-wrap: wrap; }-.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 20px 18px; }-.card-actions:has([data-action=resume][hidden]) { margin: 0; }-.card-more { position: absolute; top: 11px; right: 14px; z-index: 1; }+.card-coordinates { font: 10px/1.5 var(--mono); color: var(--muted); margin-bottom: 7px; }+.card-sources { display: flex; gap: 4px 8px; flex-wrap: wrap; }+.card-source { font-size: 8px; line-height: 1.5; color: var(--muted); letter-spacing: .4px; }+.card-source + .card-source::before { content: "·"; margin-right: 8px; }+.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 20px 12px; padding-top: 8px; border-top: 1px solid var(--line); }+.card-status { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: 10px; line-height: 1.5; }+.card-status::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }+.capture-card[data-state=failed] .card-status, .capture-card[data-state=failed] .job-summary { color: var(--danger); }+.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }+.card-footer:has(.job:not([hidden])) > .card-actions { flex-basis: 100%; }+.card-more { position: relative; z-index: 1; }.card-more[open] { z-index: 2; }-.card-more summary { cursor: pointer; list-style: none; }+.card-more summary { cursor: pointer; list-style: none; color: var(--muted); }.card-more summary::-webkit-details-marker { display: none; }.card-more summary::marker { content: ""; }-.card-options { position: absolute; top: calc(100% + 4px); right: 0; width: 174px; padding: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 4px 12px #00000014; }-.card-options .eyebrow { margin-bottom: 8px; padding: 8px 13px 0; font-size: 8px; text-align: center; }-.card-options button { width: 100%; text-align: center; border: 0; background: transparent; }+.card-options { position: absolute; bottom: calc(100% + 4px); right: 0; width: 150px; padding: 4px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 4px 12px #00000014; }+.card-options button { width: 100%; text-align: left; border: 0; background: transparent; }.card-options button:hover:not(:disabled) { background: var(--soft); }-.tag { font-size: 8px; border: 1px solid var(--line); padding: 3px 5px; color: var(--muted); letter-spacing: .5px; }.capture-select:focus-visible { outline-offset: -4px; }-.pending-heading { padding: 18px 20px 0; }-.status-icon { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }-.status-icon.complete { color: var(--ink); }-.status-icon.failed { color: var(--ink); }-.status-icon.pending { color: var(--muted); animation: status-spin .9s linear infinite; }-.capture-card[data-state=stopped] .status-icon { animation: none; }+.pending-heading { padding: 14px 20px 10px; margin: 0; }.root-info { border-top: 1px solid var(--line); padding-top: 16px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }.root-info code { display: block; font: 10px/1.5 var(--mono); text-transform: none; letter-spacing: 0; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.empty-list { font-size: 12px; line-height: 1.8; padding: 4px 20px; }@@ -216,14 +215,18 @@ a { color: inherit; text-underline-offset: 3px; }.topbar h1 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }.topbar p { font: 10px/1.5 var(--mono); color: var(--muted); margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.icon-button svg { display: block; width: 18px; height: 18px; }-.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 20px 18px; }+.job { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; width: 100%; }.job-summary { grid-column: 1; grid-row: 1; min-width: 0; }-.job #job-phase { display: block; font-size: 10px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.job-actions { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 4px; }+.job #job-phase { display: block; font-size: 10px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }+.job-actions { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }.job button, .card-actions button { min-height: 28px; padding: 5px 7px; font-size: 10px; white-space: nowrap; }-.job .icon-button, .job .quiet, .card-actions .icon-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; }+.card-resume, #stop-job { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }+.card-resume svg, #stop-job svg { width: 12px; height: 12px; }+.job .icon-button, .card-actions .icon-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }+.job .icon-button:hover, .card-actions .icon-button:hover { color: var(--ink); background: var(--paper); border-color: var(--border-hover); }+.job .icon-button:focus-visible, .card-actions .icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }.job-meter { grid-column: 1 / -1; display: grid; gap: 6px; }-.job-error { grid-column: 1 / -1; justify-self: start; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }+.job-error { grid-column: 2; grid-row: 1; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }#job-detail { color: var(--muted); font: 9px var(--mono); text-align: right; white-space: nowrap; }/* Map controls */@@ -372,7 +375,6 @@ a { color: inherit; text-underline-offset: 3px; }.plan-counts dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }.plan-note { color: var(--muted); font-size: 11px; line-height: 1.6; }-@keyframes status-spin { to { transform: rotate(360deg); } }@keyframes job-activity { to { background-position: 16px 0; } }@media (prefers-reduced-motion: reduce) {*, *::before, *::after { transition: none !important; }@@ -388,18 +390,17 @@ a { color: inherit; text-underline-offset: 3px; }.welcome { left: auto; right: 20px; top: auto; bottom: 40px; transform: none; width: 290px; }}@media (max-width: 680px) {- .app { grid-template-columns: 1fr; grid-template-rows: 180px minmax(0, 1fr); }+ .app { grid-template-columns: 1fr; grid-template-rows: 220px minmax(0, 1fr); }.app:not(.composing):has(.job:not([hidden])) { grid-template-rows: 250px minmax(0, 1fr); }.sidebar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 38px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin: 0; font-size: 20px; }.sidebar > .primary { width: auto; align-self: center; padding: 10px 12px; font-size: 11px; }.section-title, .search, .root-info { display: none; }.capture-list { grid-column: 1/-1; display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; overflow: auto; }- .capture-card { flex: 0 0 210px; border-bottom: 0; border-right: 1px solid var(--soft); }+ .capture-card { flex: 0 0 240px; border-bottom: 0; border-right: 1px solid var(--soft); }.capture-select { padding: 10px 12px; }- .card-more { top: 3px; right: 6px; }- .pending-heading { padding: 10px 12px 0; }- .job, .card-actions { margin: 0 12px 10px; }+ .pending-heading { padding: 10px 12px; }+ .card-footer { margin: 0 12px 10px; }.card-coordinates { margin-bottom: 7px; }.empty-list { padding: 0; }.topbar { min-height: 58px; padding: 10px 16px; gap: 12px; }