platform/lms-adm-fe release promotion snapshot

This commit is contained in:
2026-08-12 05:51:05 +00:00
parent 8e15589413
commit 7bf76c4265
7 changed files with 88 additions and 11 deletions
+3 -4
View File
@@ -26,10 +26,6 @@ function isPlatformEnvironment(config: unknown): boolean {
return target === 'remote-jetson' || target === 'platform';
}
function environmentStorageKey(profile: Pick<CurriculumEnvironmentProfile, 'config' | 'profileType'>): 'local' | 'platform' {
return profile.profileType.toUpperCase() === 'PLATFORM' || isPlatformEnvironment(profile.config) ? 'platform' : 'local';
}
function parseModuleParameter(parameter: string): ModuleParameterDraft {
const separatorIndex = parameter.indexOf(':=');
if (separatorIndex < 0) return { key: parameter.trim(), value: '' };
@@ -1584,3 +1580,6 @@ function formatFileSize(bytes: number): string {
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
return `${(bytes / 1024 / 1024).toFixed(1)} MB`;
}
function environmentStorageKey(profile: Pick<CurriculumEnvironmentProfile, 'config' | 'profileType'>): 'local' | 'platform' {
return profile.profileType.toUpperCase() === 'PLATFORM' || isPlatformEnvironment(profile.config) ? 'platform' : 'local';
}
+1 -1
View File
@@ -40,7 +40,7 @@ export function DashboardPage({ session, selectedCourseId, onNavigate, onOpenCha
Promise.allSettled([
listInstructorPlatforms(session.accessToken),
listInstructorGroups(session.accessToken, selectedCourseId || null),
listInstructorChatThreads(session.accessToken),
listInstructorChatThreads(session.accessToken, selectedCourseId),
])
.then(([platformResult, groupResult, chatResult]) => {
if (cancelled) return;