Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Revert "Merge #6717: the sign-in card sits in the chat flow"
milind-sonid1829e5244b5
diff --git a/src/components/SignInRequestCard.test.ts b/src/components/SignInRequestCard.test.tsindex ba094b0a64..3a0acc4516 100644--- a/src/components/SignInRequestCard.test.ts+++ b/src/components/SignInRequestCard.test.ts@@ -68,15 +68,6 @@ 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 fdb9bf844a..25932d4a0a 100644--- a/src/components/SignInRequestCard.tsx+++ b/src/components/SignInRequestCard.tsx@@ -131,6 +131,7 @@ 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} />}