web: installable app, diff viewer history, calmer chat
- The diff viewer is a centered panel over a dim scrim (clicking outside closes), and the browser Back button closes the open viewer/audit/artifact viewer via a modal history entry. Transient sheets opt out (they must never undo an in-app navigation on close). - The page is installable: web app manifest, 192/512/maskable icons, apple meta, and a shell service worker that never caches the socket or artifacts. - Chat: operator bubbles are accent-tinted, agent bubbles neutral with an accent edge; the tool summary is a quiet line outside the message; the star and more controls are compact 20px corner icons inside the row. - The Refresh button's tooltip shows the last data arrival (manual or socket), per destination.
This commit is contained in:
@@ -88,6 +88,8 @@ function openChangeViewer(files, startIndex, trigger = null) {
|
||||
"aria-modal": "true",
|
||||
"aria-label": "Diff viewer",
|
||||
});
|
||||
const panel = h("div", { class: "change-viewer-panel" });
|
||||
overlay.append(panel);
|
||||
overlay.addEventListener("click", (event) => {
|
||||
if (event.target === overlay) closeChangeViewer();
|
||||
});
|
||||
@@ -197,7 +199,7 @@ function openChangeViewer(files, startIndex, trigger = null) {
|
||||
body.append(renderRenderedDiff(entry));
|
||||
}
|
||||
|
||||
overlay.replaceChildren(head, controls, body);
|
||||
panel.replaceChildren(head, controls, body);
|
||||
};
|
||||
|
||||
renderViewer();
|
||||
|
||||
Reference in New Issue
Block a user