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

Function createEntityTitle

apps/start/src/utils/title.ts:58–73  ·  view source on GitHub ↗
(
  entityName: string,
  entityType: string,
  projectName?: string,
  organizationName?: string
)

Source from the content-addressed store, hash-verified

56 * Creates a title for specific entity pages (reports, sessions, etc.)
57 */
58export function createEntityTitle(
59 entityName: string,
60 entityType: string,
61 projectName?: string,
62 organizationName?: string
63): string {
64 const parts = [entityName, entityType];
65 if (projectName) {
66 parts.push(projectName);
67 }
68 if (organizationName) {
69 parts.push(organizationName);
70 }
71 parts.push(BASE_TITLE);
72 return parts.join(' | ');
73}
74
75/**
76 * Common page titles

Calls 2

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected