feat(ui): redesign UI with Tailwind CSS, CodeMirror 6, and new layout

- Replace all hand-written CSS with Tailwind utility classes
- Upgrade CodeMirror 5 to CodeMirror 6 (scoped @codemirror/* packages)
- Redesign layout with responsive sidebar navigation using JSX/Mithril
- Flatten admin routes (e.g. /admin/presets -> /presets)
- Add "remember me" login option with 2-week persistent cookie
- Add delete confirmation dialogs across admin pages
- Upgrade esbuild from 0.21 to 0.27 and update browser targets
- Add Inter and Roboto Mono variable fonts with subset script
This commit is contained in:
Zaid Humaimidi committed 2026-03-12 14:55:10 -07:00
1 parent a7256620e0
commit 4a191afdec
64 files changed
+4147 -2421

No files matched your search

+14 -6
View File
@@ -127,14 +127,22 @@ export const component: ClosureComponent = (): Component => {
fault["device"],
)}`;
return m("a", { href: deviceHref }, fault["device"]);
return m(
"a.text-cyan-700 hover:text-cyan-900 font-medium",
{ href: deviceHref },
fault["device"],
);
}
if (attr.id === "message")
return m("long-text", { text: fault["message"] });
return m("long-text", { text: fault["message"], class: "max-w-xs" });
if (attr.id === "detail")
return m("long-text", { text: yamlStringify(fault["detail"]) });
if (attr.id === "detail") {
return m("long-text", {
text: yamlStringify(fault["detail"]),
class: "max-w-xs",
});
}
if (attr.id === "timestamp")
return new Date(fault["timestamp"]).toLocaleString();
@@ -155,7 +163,7 @@ export const component: ClosureComponent = (): Component => {
if (window.authorizer.hasAccess("faults", 3)) {
attrs["actionsCallback"] = (selected: Set<string>): Children => {
return m(
"button.primary",
"button.px-4 py-2 border border-stone-300 shadow-xs text-sm font-medium rounded-md text-stone-700 bg-white hover:bg-stone-50 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 disabled:opacity-50 disabled:cursor-not-allowed",
{
disabled: selected.size === 0,
title: "Delete selected faults",
@@ -190,7 +198,7 @@ export const component: ClosureComponent = (): Component => {
};
return [
m("h1", "Listing faults"),
m("h1.text-xl font-medium text-stone-900 mb-5", "Listing faults"),
m(filterComponent, filterAttrs),
m(
"loading",