Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

chore(web): add slots for the sidebar mark and the sign-in brand panel (#658)

Croff6a9f71b6f18b
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index 756268e6..c9511b9c 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -32,7 +32,11 @@ Next.js App Router, SSR (not SPA). Tailwind v4 + shadcn/ui. See root `AGENTS.md`
`WorkspaceRailActions` sits below the workspace tiles of a rail; here it says where more
than one workspace per person is available. `ShellNotice` is a strip under the top bar of
the app shell, god mode and the teams pages; here it shows nothing, while the hosted
- build shows notices about the instance there. `godSections(core)` returns the god mode
+ build shows notices about the instance there. `BrandMark` is the product mark at the top
+ and the bottom of both sidebars; here the core's `ItsAPlanMark`, which the hosted build can
+ mark its edition on. `BrandPanel({ subtitle })` is the panel beside the form on the
+ logged-out screens and the invite screen; here the core's, which the hosted build can
+ replace. `godSections(core)` returns the god mode
sections: here the core's and a preview of the audit log, in a `security` group, while
the hosted build adds, replaces or drops some. One it adds carries in `Component` the
page `/god/<slug>` opens, and may sit in a group of its own: the sidebar lists the groups
diff --git a/apps/web/src/ce/BrandMark.tsx b/apps/web/src/ce/BrandMark.tsx
new file mode 100644
index 00000000..93ba4aa0
--- /dev/null
+++ b/apps/web/src/ce/BrandMark.tsx
@@ -0,0 +1,9 @@
+'use client';
+
+import ItsAPlanMark from '@/components/brand/ItsAPlanMark';
+
+// The product mark at the top and the bottom of both sidebars. A self-hosted instance
+// shows the core's; the hosted build can mark its edition on it.
+export default function BrandMark({ className }: { className?: string }) {
+ return <ItsAPlanMark className={className} />;
+}
diff --git a/apps/web/src/ce/BrandPanel.tsx b/apps/web/src/ce/BrandPanel.tsx
new file mode 100644
index 00000000..a08839b8
--- /dev/null
+++ b/apps/web/src/ce/BrandPanel.tsx
@@ -0,0 +1,9 @@
+'use client';
+
+import CoreBrandPanel from '@/components/common/page/BrandPanel';
+
+// The panel beside the form on the logged-out screens and the invite screen. A self-hosted
+// instance shows the core's; the hosted build can draw its own.
+export default function BrandPanel({ subtitle }: { subtitle?: string }) {
+ return <CoreBrandPanel subtitle={subtitle} />;
+}
diff --git a/apps/web/src/ce/index.ts b/apps/web/src/ce/index.ts
index a1282d26..9670fc55 100644
--- a/apps/web/src/ce/index.ts
+++ b/apps/web/src/ce/index.ts
@@ -2,6 +2,8 @@
// instance runs. The hosted build points the alias at its own module exporting the
// same names, so a cloud-only part is imported from here and nowhere else.
export { default as AgentAnalyticsExtras } from './AgentAnalyticsExtras';
+export { default as BrandMark } from './BrandMark';
+export { default as BrandPanel } from './BrandPanel';
export { default as GodSectionExtras } from './GodSectionExtras';
export { default as godSections } from './godSections';
export { cloudMessages, loadCloudMessages } from './messages';
diff --git a/apps/web/src/components/brand/SidebarBrandFooter.tsx b/apps/web/src/components/brand/SidebarBrandFooter.tsx
index a5fac128..33482d22 100644
--- a/apps/web/src/components/brand/SidebarBrandFooter.tsx
+++ b/apps/web/src/components/brand/SidebarBrandFooter.tsx
@@ -1,7 +1,7 @@
'use client';
import { useEffect, useState } from 'react';
-import ItsAPlanMark from '@/components/brand/ItsAPlanMark';
+import { BrandMark } from '@/cloud';
import ReleaseHistory from '@/features/whats-new/components/ReleaseHistory';
import { useSession } from '@/lib/auth-client';
import { cn } from '@/lib/utils';
@@ -35,7 +35,7 @@ export default function SidebarBrandFooter() {
const content = (
<>
- <ItsAPlanMark className="size-9 shrink-0 text-sidebar-foreground" />
+ <BrandMark className="size-9 shrink-0 text-sidebar-foreground" />
<div className="grid text-left leading-none group-data-[collapsible=icon]:hidden">
<span className="text-base font-semibold tracking-tight text-sidebar-foreground">
It&apos;s a Plan
diff --git a/apps/web/src/components/layout/ProjectSwitcherTrigger.tsx b/apps/web/src/components/layout/ProjectSwitcherTrigger.tsx
index 33c979a0..b7a06cac 100644
--- a/apps/web/src/components/layout/ProjectSwitcherTrigger.tsx
+++ b/apps/web/src/components/layout/ProjectSwitcherTrigger.tsx
@@ -2,7 +2,7 @@ import type { ComponentProps } from 'react';
import { ChevronsUpDown, Users } from 'lucide-react';
import { useTranslations } from 'next-intl';
import type { Project } from '@/lib/api/endpoints/projects';
-import ItsAPlanMark from '@/components/brand/ItsAPlanMark';
+import { BrandMark } from '@/cloud';
import { SidebarMenuButton } from '@/components/ui/sidebar';
export default function ProjectSwitcherTrigger({
@@ -18,7 +18,7 @@ export default function ProjectSwitcherTrigger({
title={current ? `${current.name} (${current.key}) · ${current.teamName}` : t('projects')}
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
>
- <ItsAPlanMark className="size-9! shrink-0 text-sidebar-foreground" />
+ <BrandMark className="size-9! shrink-0 text-sidebar-foreground" />
<div className="grid min-w-0 flex-1 gap-1 text-start text-sm leading-tight">
<span dir="auto" className="truncate font-semibold tracking-tight">
{current?.name ?? t('noProjects')}
diff --git a/apps/web/src/features/auth/components/AuthCard.tsx b/apps/web/src/features/auth/components/AuthCard.tsx
index 7274e4b1..b9317f5e 100644
--- a/apps/web/src/features/auth/components/AuthCard.tsx
+++ b/apps/web/src/features/auth/components/AuthCard.tsx
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
import { useTranslations } from 'next-intl';
import DocumentTitle from '@/components/common/DocumentTitle';
import { Card, CardContent } from '@/components/ui/card';
-import BrandPanel from '@/components/common/page/BrandPanel';
+import { BrandPanel } from '@/cloud';
import AuthLegalNotice from './AuthLegalNotice';
// The card shared by every logged-out screen. The forms read the URL (an invite
diff --git a/apps/web/src/features/invite/InviteAcceptPage.tsx b/apps/web/src/features/invite/InviteAcceptPage.tsx
index 8e62eedf..dbed03f3 100644
--- a/apps/web/src/features/invite/InviteAcceptPage.tsx
+++ b/apps/web/src/features/invite/InviteAcceptPage.tsx
@@ -3,7 +3,7 @@
import Link from 'next/link';
import { useTranslations } from 'next-intl';
import { useDocumentTitle } from '@/hooks/useDocumentTitle';
-import BrandPanel from '@/components/common/page/BrandPanel';
+import { BrandPanel } from '@/cloud';
import ListSkeleton from '@/components/common/skeleton/ListSkeleton';
import { Button } from '@/components/ui/button';
import { Card, CardContent } from '@/components/ui/card';