Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(templates): drop the full-window backdrop blur that keeps the Templates page laggy without a GPU (#4257)
Aditya Umale8b7f3e962fd0
diff --git a/src/components/TeamLibraryPanel.test.ts b/src/components/TeamLibraryPanel.test.tsnew file mode 100644index 0000000000..9be5e7e8eb--- /dev/null+++ b/src/components/TeamLibraryPanel.test.ts@@ -0,0 +1,13 @@+import { readFileSync } from "node:fs";+import { describe, expect, it } from "vitest";++const source = readFileSync(new URL("./TeamLibraryPanel.tsx", import.meta.url), "utf8");++describe("TeamLibraryPanel", () => {+ it("dims the app behind Templates without a full-window backdrop blur", () => {+ // Without a GPU (software rendering) a full-window blur is redrawn on every frame, so the page lags while it is open.+ const overlay = source.match(/className="(fixed inset-0 [^"]*)"/)?.[1];+ expect(overlay).toContain("bg-black/55");+ expect(source).not.toMatch(/backdrop-blur|backdrop-filter|backdropFilter/);+ });+});diff --git a/src/components/TeamLibraryPanel.tsx b/src/components/TeamLibraryPanel.tsxindex 63c7a171cc..886bd63152 100644--- a/src/components/TeamLibraryPanel.tsx+++ b/src/components/TeamLibraryPanel.tsx@@ -447,8 +447,9 @@ export function TeamLibraryPanel({const visibleTeams = (catalog?.teams ?? []).filter((entry) => !normalizedSearch || catalogMatches(entry, normalizedSearch));return createPortal(+ // Dim only: a full-window backdrop blur is redrawn every frame without a GPU and keeps the page laggy while it is open.<div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/55 p-4 backdrop-blur-[2px] sm:p-6"+ className="fixed inset-0 z-50 flex items-center justify-center bg-black/55 p-4 sm:p-6"onMouseDown={(event) => event.target === event.currentTarget && !importing && onClose()}><div