fix(dashboard): project-scope Command Center analytics (FUX-037)
Apply FUX-037 projectId scoping to Command Center and Reliability view.
This commit is contained in:
@@ -6254,7 +6254,7 @@ export interface AgentPromptSizePoint {
|
||||
totalChars: number;
|
||||
}
|
||||
|
||||
function withProjectId(path: string, projectId?: string): string {
|
||||
export function withProjectId(path: string, projectId?: string): string {
|
||||
if (!projectId) return path;
|
||||
const separator = path.includes("?") ? "&" : "?";
|
||||
return `${path}${separator}projectId=${encodeURIComponent(projectId)}`;
|
||||
|
||||
Reference in New Issue
Block a user