mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
Drop the dual-licensed `ee/` tree entirely. All features previously
locked behind the Hanzo Dataroom Commercial License are now part of the
AGPL-3.0 core and freely available — custom domains, branded viewing,
advanced analytics, watermarks, access controls, Q&A, AI vector stores,
workflows, SAML SSO, dataroom invitations, conversations, templates.
Layout changes:
* `ee/features/{ai,conversations,workflows,permissions,storage,templates,
dataroom-invitations,access-notifications,security,conversions}/` →
`features/<name>/` (AGPL).
* `ee/limits/` → `lib/billing/limits/` with every plan resolving to an
unlimited profile (no users/links/documents/domains/datarooms cap,
conversations and watermarks always on).
* `ee/stripe/` → `lib/billing/legacy/` (already a compat shim over
`@hanzoai/commerce`; renewal-reminder webhook is now a no-op).
* `ee/features/billing/cancellation/` deleted. Pause/unpause/cancel/
retention routes now compile against `lib/billing/cancellation.ts`
stubs that return 410 Gone; `isTeamPaused`/`isTeamPausedById` in
`lib/billing/paused.ts` always report active. `CancellationModal` is
a no-op shim in `components/billing/`.
* `app/(ee)/api/*` route group folded into `app/api/*` (SAML auth,
SCIM, AI chat, workflows, FAQ, link-upload).
Build: `npm run build` green.
57 lines
2.1 KiB
TypeScript
57 lines
2.1 KiB
TypeScript
import { PlanEnum } from "@/lib/billing/legacy/constants";
|
|
import { CrownIcon } from "lucide-react";
|
|
|
|
import { UpgradePlanModal } from "@/components/billing/upgrade-plan-modal";
|
|
import { Button } from "@/components/ui/button";
|
|
import UAIcon from "@/components/user-agent-icon";
|
|
|
|
export default function VisitorUserAgentPlaceholder() {
|
|
return (
|
|
<div className="relative">
|
|
<div className="blur-[2px]">
|
|
<div className="inline-flex items-center gap-x-1 pb-0.5 pl-1.5 text-sm text-muted-foreground md:pb-1 md:pl-2">
|
|
<div className="flex items-center gap-x-1 px-1 opacity-50">
|
|
<img
|
|
alt="Preview"
|
|
src="https://flag.vercel.app/m/US.svg"
|
|
className="h-3 w-4"
|
|
/>
|
|
<span className="text-muted-foreground">
|
|
San Francisco, United States
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center gap-x-1 pb-0.5 pl-1.5 opacity-50">
|
|
<div className="flex items-center gap-x-1 px-1">
|
|
<UAIcon display="Mobile" type="devices" className="size-4" />
|
|
<span className="text-muted-foreground">iPhone,</span>
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-1">
|
|
<UAIcon display="Chrome" type="browsers" className="size-4" />
|
|
<span className="text-muted-foreground">Chrome,</span>
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-1">
|
|
<UAIcon display="iOS" type="os" className="size-4" />
|
|
<span className="text-muted-foreground">iOS</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div className="absolute left-8 top-3">
|
|
<UpgradePlanModal
|
|
clickedPlan={PlanEnum.Pro}
|
|
trigger="visitor-table-user-agent"
|
|
>
|
|
<Button
|
|
variant="outline"
|
|
size="sm"
|
|
className="h-6 gap-x-1 px-1.5 py-0.5"
|
|
>
|
|
<CrownIcon className="size-4" />
|
|
<span>See more visitor info</span>
|
|
</Button>
|
|
</UpgradePlanModal>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|