From 9e8fd16e6e4154ae0bccff8342e4b0c7780d8db8 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 6 Oct 2025 16:15:10 -0400 Subject: wip: zen --- packages/console/app/src/routes/workspace/[id].tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/console/app/src/routes/workspace') diff --git a/packages/console/app/src/routes/workspace/[id].tsx b/packages/console/app/src/routes/workspace/[id].tsx index 6575371d4..2e59395b9 100644 --- a/packages/console/app/src/routes/workspace/[id].tsx +++ b/packages/console/app/src/routes/workspace/[id].tsx @@ -11,23 +11,23 @@ import { createAsync, query, useParams } from "@solidjs/router" import { Actor } from "@opencode-ai/console-core/actor.js" import { withActor } from "~/context/auth.withActor" import { User } from "@opencode-ai/console-core/user.js" -import { Resource } from "@opencode-ai/console-resource" +import { beta } from "~/lib/beta" -const getUser = query(async (workspaceID: string) => { +const getUserInfo = query(async (workspaceID: string) => { "use server" return withActor(async () => { const actor = Actor.assert("user") const user = await User.fromID(actor.properties.userID) return { isAdmin: user?.role === "admin", - isBeta: Resource.App.stage === "production" ? workspaceID === "wrk_01K46JDFR0E75SG2Q8K172KF3Y" : true, } }, workspaceID) }, "user.get") export default function () { const params = useParams() - const data = createAsync(() => getUser(params.id)) + const userInfo = createAsync(() => getUserInfo(params.id)) + const isBeta = createAsync(() => beta(params.id)) return (
@@ -44,15 +44,15 @@ export default function () {
- - + + - +
-- cgit v1.2.3