MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / createProjectTitle

Function createProjectTitle

apps/start/src/utils/title.ts:39–53  ·  view source on GitHub ↗
(
  pageTitle: string,
  projectName?: string,
  organizationName?: string
)

Source from the content-addressed store, hash-verified

37 * Creates a title for project-level pages
38 */
39export function createProjectTitle(
40 pageTitle: string,
41 projectName?: string,
42 organizationName?: string
43): string {
44 const parts = [pageTitle];
45 if (projectName) {
46 parts.push(projectName);
47 }
48 if (organizationName) {
49 parts.push(organizationName);
50 }
51 parts.push(BASE_TITLE);
52 return parts.join(' | ');
53}
54
55/**
56 * Creates a title for specific entity pages (reports, sessions, etc.)

Calls 2

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected