Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Page card: drop the glaze, keep the rule above the footer
luishron1239147cedfd38d
diff --git a/src/components/app/AppChrome.tsx b/src/components/app/AppChrome.tsxindex 2c973b5434..38fea0a7d9 100644--- a/src/components/app/AppChrome.tsx+++ b/src/components/app/AppChrome.tsx@@ -70,13 +70,10 @@ export function AppHeader({);}-export const PAGE_GLAZE = "pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-composer to-transparent backdrop-blur-md [mask-image:linear-gradient(to_bottom,transparent,black)]";--export function PageCardFooter({ title, detail, updated, glazed = false, infoId, infoOpen, onInfo, onReload, reloading = false }: {+export function PageCardFooter({ title, detail, updated, infoId, infoOpen, onInfo, onReload, reloading = false }: {title: string;detail: string;updated: boolean;- glazed?: boolean;infoId: string;infoOpen: boolean;onInfo(): void;@@ -84,7 +81,7 @@ export function PageCardFooter({ title, detail, updated, glazed = false, infoId,reloading?: boolean;}) {return (- <div data-page-footer className={cn("flex items-center gap-3 px-4 py-3", !glazed && "border-t border-ink/[0.08]")}>+ <div data-page-footer className="flex items-center gap-3 border-t border-ink/[0.08] px-4 py-3"><AppWindow aria-hidden="true" size={16} className="shrink-0 text-ink-tertiary" /><div className="min-w-0 flex-1"><div title={title} className="truncate text-[13px] font-medium leading-[18px] text-ink"><bdi dir="auto">{title}</bdi></div>diff --git a/src/components/app/AppMessage.compact.test.ts b/src/components/app/AppMessage.compact.test.tsindex 2f440939d7..3820f54bba 100644--- a/src/components/app/AppMessage.compact.test.ts+++ b/src/components/app/AppMessage.compact.test.ts@@ -74,12 +74,9 @@ describe("a bot's page as a compact card", () => {expect(Array.from(card().querySelectorAll("button"), (button) => button.getAttribute("aria-label"))).toEqual(["About this app", "Reload app", "Open page"]);});- it("glazes the foot of the preview into the footer, and only while there is a preview", async () => {+ it("leaves the preview bare and parts it from the footer with a rule", async () => {await render(row(payload()));- expect(card().querySelector("[data-app-box] [data-page-glaze]")).not.toBeNull();- expect(card().querySelector("[data-page-footer]")!.className).not.toContain("border-t");- await press(opener());- expect(card().querySelector("[data-page-glaze]")).toBeNull();+ expect(card().querySelector("[data-app-box]")!.children).toHaveLength(1);expect(card().querySelector("[data-page-footer]")!.className).toContain("border-t");});diff --git a/src/components/app/AppMessage.tsx b/src/components/app/AppMessage.tsxindex 3a0f73260c..2811147ec6 100644--- a/src/components/app/AppMessage.tsx+++ b/src/components/app/AppMessage.tsx@@ -7,7 +7,7 @@ import { appBlockedLine } from "./app-blocked";import { APP_FRAME_LIMITS } from "../../../shared/app-frame/bridge";import { AppDocumentError, fetchAppDocument, type AppFetchFailure } from "./app-api";import { APP_POOL_LIMITS, useAppPoolSlot, type AppPool } from "./app-pool";-import { AppDone, AppHeader, AppInfo, AppOpenButton, AppPlaceholder, AppStrip, APP_SURFACE, PAGE_GLAZE, PageCardFooter } from "./AppChrome";+import { AppDone, AppHeader, AppInfo, AppOpenButton, AppPlaceholder, AppStrip, APP_SURFACE, PageCardFooter } from "./AppChrome";import { AppFrame, type AppFrameHandle, type AppFrameProblem } from "./AppFrame";import type { AppSelection } from "./app-frame-host";import { PageCitationButton } from "../CitationUI";@@ -256,10 +256,8 @@ function AppRow({ botId, botName, threadId, message, payload, pool, room }: {) : (<AppPlaceholder height={boxHeight} loading={slot.live} open={slot.live ? undefined : reloadNow} />)}- {compact && <div aria-hidden="true" data-page-glaze className={PAGE_GLAZE} />}</div>);- const glazed = compact && !collapsed && !noPage && !(fullScreen && current);const info = infoOpen && <AppInfo id={infoId} network={payload.network ?? { connect: [], resources: [] }} bytes={payload.bytes ?? 0} bordered={bordered || compact} />;const reopen = collapsed && (<div className={cn("flex", bordered || compact ? "px-4 pb-3.5" : "pb-2", compact && "pt-3.5")}>@@ -289,7 +287,6 @@ function AppRow({ botId, botName, threadId, message, payload, pool, room }: {title={payload.title}detail={version.last > 0 ? `${kind} · ${t("chat.preview.version", { n: version.rev + 1 })}` : kind}updated={version.flash}- glazed={glazed}infoId={infoId}infoOpen={infoOpen}onInfo={() => setInfoOpen((open) => !open)}