( pageTitle: string, projectName?: string, organizationName?: string )
| 37 | * Creates a title for project-level pages |
| 38 | */ |
| 39 | export 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.) |
no test coverage detected