eqms-1618: fix server branding (#9907)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev
2025-09-22 17:24:02 +07:00
committed by GitHub
parent 2d5fa35eb2
commit 033a1ce537
5 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -106,7 +106,8 @@
"STATS_URL": "http://huly.local:4900",
"QUEUE_CONFIG": "localhost:19092",
"FILES_URL": "http://huly.local:4030/blob/:workspace/:blobId/:filename",
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://huly.local:4318/v1/traces"
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://huly.local:4318/v1/traces",
"BRANDING_PATH": "${workspaceRoot}/dev/branding.json"
},
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"runtimeVersion": "20",
+1
View File
@@ -40,6 +40,7 @@ export interface LoginInfoWorkspace {
endpoint: EndpointInfo
role: AccountRole | null
progress?: number
branding?: string
}
export interface LoginInfoWithWorkspaces extends LoginInfo {
+2 -1
View File
@@ -1883,7 +1883,8 @@ export async function getLoginWithWorkspaceInfo (
versionMinor: it.status.versionMinor,
versionPatch: it.status.versionPatch
},
progress: it.status.processingProgress
progress: it.status.processingProgress,
branding: it.branding
}
])
),
+1
View File
@@ -322,6 +322,7 @@ export interface LoginInfoWorkspace {
role: AccountRole | null
progress?: number
branding?: string
}
export interface LoginInfoWithWorkspaces extends LoginInfo {
+6 -2
View File
@@ -595,7 +595,10 @@ export class TSessionManager implements SessionManager {
workspace = this.workspaces.get(workspaceUuid)
const branding = null
const branding =
(workspaceInfo.branding !== undefined
? Object.values(this.brandingMap).find((b) => b.key === workspaceInfo?.branding)
: null) ?? null
if (workspace === undefined) {
ctx.warn('open workspace', {
@@ -698,7 +701,8 @@ export class TSessionManager implements SessionManager {
},
role: AccountRole.Owner,
endpoint: { externalUrl: '', internalUrl: '', region: workspaceInfo.region ?? '' },
progress: workspaceInfo.processingProgress
progress: workspaceInfo.processingProgress,
branding: workspaceInfo.branding
}
} else {
this.workspaceInfoCache.delete(token.workspace)