web: sticky sections, spotlight search, and live sync for other clients' prompts
- Sticky sections: a run/pipeline/template keeps the section you chose when you open another one, and the choice persists across reloads (localStorage per destination). A stage deep link still opens the Graph. - Search is a Spotlight: a modal overlay opened with Ctrl+/ (Cmd+/ too), arrow keys move the selected result, Enter opens it, the query/kind/sort/selection resume on the next open, and an artifact result opens the artifact itself (media in the viewer, anything else in a tab) instead of the run's visit pane. - Live sync: the server only emits a user frame for prompts sent through it, so a message typed in the OpenCode UI appeared only after a refresh. When a frame for an unknown turn arrives, the open conversation now reads the newest history once, which brings the user message in live.
This commit is contained in:
+27
-1
@@ -120,7 +120,33 @@
|
||||
.search-host { background: var(--surface); border-bottom: 1px solid var(--border); }
|
||||
.search-host:empty { display: none; }
|
||||
|
||||
.search-panel { padding: 10px 16px 12px; display: grid; gap: 8px; }
|
||||
/* Spotlight: the search is a modal over the page, not a strip in the header. */
|
||||
#searchPanel {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 70;
|
||||
display: grid;
|
||||
place-items: start center;
|
||||
padding: min(12vh, 110px) 16px 16px;
|
||||
background: color-mix(in srgb, #000 55%, transparent);
|
||||
}
|
||||
.search-modal {
|
||||
width: min(760px, 100%);
|
||||
max-height: 70vh;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.search-results { max-height: 46vh; overflow-y: auto; }
|
||||
.search-row.active {
|
||||
background: var(--surface);
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.search-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.search-field { display: flex; gap: 6px; align-items: center; }
|
||||
|
||||
Reference in New Issue
Block a user