Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Sign-in card sits in the chat flow instead of floating over page content (#6702)
Huyvux124ccc191d8652
diff --git a/src/components/SignInRequestCard.test.ts b/src/components/SignInRequestCard.test.tsindex 3a0acc4516..ba094b0a64 100644--- a/src/components/SignInRequestCard.test.ts+++ b/src/components/SignInRequestCard.test.ts@@ -68,6 +68,15 @@ beforeEach(() => {});describe("SignInRequestCard while it waits", () => {+ it("sits in the chat flow instead of floating over page content", () => {+ const tag = /<div[^>]*data-ask-card="pending"[^>]*>/u.exec(view())?.[0];+ expect(tag).toBeDefined();+ const classes = /class="([^"]*)"/u.exec(tag!)?.[1].split(" ") ?? [];+ expect(classes).not.toContain("sticky");+ expect(classes).not.toContain("z-10");+ expect(classes).toContain("bg-composer");+ });+it("leads with the site, quotes the bot's reason, and offers Open, Done and Cancel", () => {const html = view();expect(html).toContain("Sign in needed");diff --git a/src/components/SignInRequestCard.tsx b/src/components/SignInRequestCard.tsxindex 25932d4a0a..fdb9bf844a 100644--- a/src/components/SignInRequestCard.tsx+++ b/src/components/SignInRequestCard.tsx@@ -131,7 +131,6 @@ export function SignInRequestCard({ariaLabel={t("signIn.cardLabel", { name: botName, site: card.site })}icon={<LogIn size={15} />}title={t("signIn.title")}- staysfooter={saving ? undefined : <><button type="button" onClick={() => void answer("cancel")} disabled={pending !== null} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}>{pending === "cancel" ? <Loader2 size={14} className="animate-spin" /> : <X size={14} />}