( entityName: string, entityType: string, projectName?: string, organizationName?: string )
| 56 | * Creates a title for specific entity pages (reports, sessions, etc.) |
| 57 | */ |
| 58 | export 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 |
no test coverage detected