From dfd1fb7831936bf38f6fb6f2ee2f2b0b20ad23e8 Mon Sep 17 00:00:00 2001 From: Konsti Wohlwend Date: Tue, 4 Nov 2025 22:09:44 -0800 Subject: [PATCH 1/2] Show anonymous user count on dashboard (#1000) --- .../projects/[projectId]/users/page-client.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/page-client.tsx index fd4ecddce..b3dbc9da9 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/page-client.tsx @@ -12,9 +12,21 @@ import { useAdminApp } from "../use-admin-app"; function TotalUsersDisplay() { const stackAdminApp = useAdminApp(); - const data = (stackAdminApp as any)[stackAppInternalsSymbol].useMetrics(); + const metrics = (stackAdminApp as any)[stackAppInternalsSymbol].useMetrics(false); + const metricsIncludingAnonymous = (stackAdminApp as any)[stackAppInternalsSymbol].useMetrics(true); - return <>{data.total_users}; + const anonymousUsersCount = metricsIncludingAnonymous.total_users - metrics.total_users; + + return ( + <> + {metrics.total_users} + {anonymousUsersCount > 0 ? ( + <> + {" "}(+ {anonymousUsersCount} anonymous) + + ) : null} + + ); } export default function PageClient() { From e824e8c513b9ddba65777ca485d8073d4622f56c Mon Sep 17 00:00:00 2001 From: BilalG1 Date: Tue, 4 Nov 2025 22:13:27 -0800 Subject: [PATCH 2/2] add stackAuthComponent to convex readme (#999) --- .../src/integrations/convex/component/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/template/src/integrations/convex/component/README.md b/packages/template/src/integrations/convex/component/README.md index 9b2892099..62dced981 100644 --- a/packages/template/src/integrations/convex/component/README.md +++ b/packages/template/src/integrations/convex/component/README.md @@ -28,6 +28,21 @@ export default { } ``` +Next, update or create a file in `convex/convex.config.ts`: + +```ts +import { defineApp } from "convex/server"; +import stackAuthComponent from "@stackframe/js/convex.config"; // Vanilla JS +// or: import stackAuthComponent from "@stackframe/react/convex.config"; // React +// or: import stackAuthComponent from "@stackframe/stack/convex.config"; // Next.js + + +const app = defineApp(); +app.use(stackAuthComponent); + +export default app; +``` + Then, update your Convex client to use Stack Auth: ```ts