The workspace rail now lists only the bots attached to the workspace, with the back link returning to the workspace page from a bot's conversation. /admin/workspaces/<id> becomes a read-only dashboard (picture, context, latest activity, bots, computers) that links into the editable settings page.
19 lines
647 B
TypeScript
19 lines
647 B
TypeScript
import type { PagePropsType } from "@/src/types";
|
|
import type { BunextPageModuleMetaFn } from "@moduletrace/bunext/types";
|
|
import { SiteData } from "@/src/data/site-data";
|
|
import WorkspaceDashboard from "./(sections)/workspace-dashboard";
|
|
|
|
export default function WorkspacePage() {
|
|
return <WorkspaceDashboard />;
|
|
}
|
|
|
|
export const meta: BunextPageModuleMetaFn = async (params) => {
|
|
const workspace = (params.serverRes?.props as PagePropsType | undefined)
|
|
?.workspace;
|
|
|
|
return {
|
|
title: `${workspace?.name || "Workspace"} | ${SiteData["SiteName"]}`,
|
|
description: workspace?.description || `A workspace.`,
|
|
};
|
|
};
|