feat(admin): use smart-loading groups for simulations

This commit is contained in:
2026-09-10 19:25:11 +08:00
parent 27c4ec759c
commit b57ea2d628
16 changed files with 80 additions and 56 deletions
@@ -63,6 +63,11 @@ export const SMART_LOADING_CHANNEL_GROUPS: readonly SmartLoadingChannelGroup[] =
},
] as const
export function getSmartLoadingChannelGroup(groupCode?: string | null) {
const normalizedCode = String(groupCode || '').trim().toUpperCase()
return SMART_LOADING_CHANNEL_GROUPS.find((group) => group.code === normalizedCode) || null
}
export function resolveSmartLoadingChannelGroup(channelCode?: string | null, channelName?: string | null) {
const normalizedCode = String(channelCode || '').trim().toUpperCase()
if (normalizedCode) {