Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(window-frame): expect a renamed home Cloud's own name; drop two narrating comments
AdityaUmalee16bf4dd4b20
diff --git a/src/components/WindowFrameBar.test.ts b/src/components/WindowFrameBar.test.tsindex 185cadab20..53031683c9 100644--- a/src/components/WindowFrameBar.test.ts+++ b/src/components/WindowFrameBar.test.ts@@ -97,7 +97,8 @@ describe("the window frame's top bar", () => {it.each([[{ local: true, name: "Mac mini" }, {}, "This computer"],[{ local: true, name: "Lab", localPath: "/Users/me/lab" }, {}, "Lab"],- [{ local: false, name: "Saved name", home: true }, {}, "My Cloud"],+ [{ local: false, name: "Saved name", home: true }, {}, "Saved name"],+ [{ local: false, name: "My Cloud", home: true }, {}, "My Cloud"],[{ local: false, name: "Acme", role: "Admin" }, { team: { name: "Acme" } }, "Acme"],[{ local: false, name: "Office", origin: "https://office.example" }, {}, "Office"],] as const)("names %o as it should", async (shown, config, name) => {diff --git a/src/components/WindowPlaceTitle.tsx b/src/components/WindowPlaceTitle.tsxindex e8566145b6..df7a38153b 100644--- a/src/components/WindowPlaceTitle.tsx+++ b/src/components/WindowPlaceTitle.tsx@@ -22,12 +22,8 @@ export function useWindowPlace(): WorkspaceState | null {return place;}-/** The name My Cloud is saved under until its owner picks another (electron/cloud-home.mjs CLOUD_HOME_NAME). */const CLOUD_HOME_NAME = "My Cloud";-/** What the window's top bar calls the place: This computer (This Mac in a profile), the window's home by the name its- * owner gave it (My Cloud, in the app's language, until they rename it; a team's name on a team's Cloud), else the name it- * was saved under. */export function windowPlaceName(place: WorkspaceState, team: string | undefined): string {if (place.home) return team || (place.name && place.name !== CLOUD_HOME_NAME ? place.name : t("cloudSetup.myCloud"));if (place.profile) return place.profileName || computerName({ profile: place.profile });