feat: animate sidebar and refine account menu with Google avatars

This commit is contained in:
2026-11-06 00:28:13 +08:00
parent 71bf8b0f5e
commit f6315a6435
11 changed files with 430 additions and 108 deletions
+2 -1
View File
@@ -12,10 +12,11 @@ test("profile and workspace reads both start before either completes", async ()
});
});
assert.deepEqual(calls, ["profile", "workspaces"]);
resolve.profile({ id: "user" });
resolve.profile({ id: "user", avatar_url: "https://lh3.googleusercontent.com/test-avatar" });
resolve.workspaces({ items: [{ id: "space", name: "个人空间" }] });
const result = await pending;
assert.equal(result.profile.id, "user");
assert.equal(result.profile.avatar_url, "https://lh3.googleusercontent.com/test-avatar");
assert.equal(result.workspaces[0].id, "space");
});