mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-11-02 22:04:20 +00:00
This feature allows users to set a private, internal name for Data Rooms that is only visible to the owner. This helps distinguish between multiple data rooms that share the same public-facing name. Changes: - Add internalName field to Dataroom schema - Create database migration for the new field - Update API endpoints to support creating/updating internal names - Search now includes internal names - Update add-dataroom-modal with internal name input - Display internal name in dataroom cards and headers - Add internal name form in settings page
32 lines
1019 B
TypeScript
32 lines
1019 B
TypeScript
import { useDataroom } from "@/lib/swr/use-dataroom";
|
|
|
|
import { DataroomHeader } from "@/components/datarooms/dataroom-header";
|
|
import { DataroomNavigation } from "@/components/datarooms/dataroom-navigation";
|
|
import AppLayout from "@/components/layouts/app";
|
|
import DataroomViewersTable from "@/components/visitors/dataroom-viewers";
|
|
|
|
export default function DataroomUsersPage() {
|
|
const { dataroom } = useDataroom();
|
|
|
|
if (!dataroom) {
|
|
return <div>Loading...</div>;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<div className="relative mx-2 mb-10 mt-4 space-y-8 overflow-hidden px-1 sm:mx-3 md:mx-5 md:mt-5 lg:mx-7 lg:mt-8 xl:mx-10">
|
|
<header>
|
|
<DataroomHeader title={dataroom.name} description={dataroom.pId} internalName={dataroom.internalName} />
|
|
|
|
<DataroomNavigation dataroomId={dataroom.id} />
|
|
</header>
|
|
|
|
<div className="space-y-4">
|
|
{/* Visitors */}
|
|
<DataroomViewersTable dataroomId={dataroom.id} />
|
|
</div>
|
|
</div>
|
|
</AppLayout>
|
|
);
|
|
}
|