diff --git a/wasp-ai/src/client/pages/StatsPage.jsx b/wasp-ai/src/client/pages/StatsPage.jsx
index 599231514..bf41ab1e2 100644
--- a/wasp-ai/src/client/pages/StatsPage.jsx
+++ b/wasp-ai/src/client/pages/StatsPage.jsx
@@ -11,7 +11,7 @@ import { exampleIdeas } from "../examples";
import logout from "@wasp/auth/logout";
import { WaspIcon } from "../components/WaspIcon";
import { Header } from "../components/Header";
-import { PiDownloadDuotone } from "react-icons/pi";
+import { PiDownloadDuotone, PiUserDuotone } from "react-icons/pi";
import { MyDropdown } from "../components/Dropdown";
import { HomeButton } from "../components/Header";
import {
@@ -193,13 +193,16 @@ export function Stats() {
className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap flex items-center gap-2"
>
{" "}
-
+
{project.name}
{" "}
{project.user && (
-
-
+
+
)}
{project.zipDownloadedAt && (
diff --git a/wasp-ai/src/server/auth.ts b/wasp-ai/src/server/auth.ts
index afd5cb404..e57d65310 100644
--- a/wasp-ai/src/server/auth.ts
+++ b/wasp-ai/src/server/auth.ts
@@ -3,6 +3,7 @@ import { GetUserFieldsFn } from "@wasp/types";
export const getGoogleUserFields: GetUserFieldsFn = async (_context, args) => {
return {
email: args.profile.emails[0].value,
+ username: args.profile.emails[0].value,
};
};
diff --git a/wasp-ai/src/server/operations.ts b/wasp-ai/src/server/operations.ts
index 3c8869f40..3ab2fdea1 100644
--- a/wasp-ai/src/server/operations.ts
+++ b/wasp-ai/src/server/operations.ts
@@ -193,13 +193,23 @@ export const getStats = (async (_args, context) => {
orderBy: {
createdAt: "desc",
},
- include: {
+ // Excluding description since we are not showing it in the table.
+ select: {
+ id: true,
+ name: true,
+ primaryColor: true,
+ authMethod: true,
+ creativityLevel: true,
+ createdAt: true,
+ status: true,
+ referrer: true,
+ zipDownloadedAt: true,
user: {
select: {
- email: true,
- },
- },
- },
+ email: true
+ }
+ }
+ }
});
return {