Add a per-user lead agent and make the right pane task-focused
This commit is contained in:
+6
-2
@@ -1,5 +1,5 @@
|
||||
import { del, get, post, put, type NotificationPrefs } from "./api.js";
|
||||
import { errorText, h, replace, showAlert } from "./dom.js";
|
||||
import { errorText, h, openPanel, replace, showAlert } from "./dom.js";
|
||||
import { on, state } from "./state.js";
|
||||
|
||||
const kinds: { key: keyof NotificationPrefs; label: string }[] = [
|
||||
@@ -10,7 +10,11 @@ const kinds: { key: keyof NotificationPrefs; label: string }[] = [
|
||||
{ key: "rate_limits", label: "Rate limits" },
|
||||
];
|
||||
|
||||
export function mountSettings(root: HTMLElement): () => void {
|
||||
export function openSettings(): void {
|
||||
openPanel("Settings", mountSettings);
|
||||
}
|
||||
|
||||
function mountSettings(root: HTMLElement): () => void {
|
||||
const device = h("div", { class: "push-device" });
|
||||
const prefs = h("fieldset", { class: "push-prefs" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user