feat : improve import UI
CI / Verify (push) Successful in 1m15s
CI / Build immutable images and deploy (push) Successful in 1m50s

This commit is contained in:
2026-09-08 19:23:05 +07:00 Unverified
parent cd66d498ab
commit d85a48be25
5 changed files with 579 additions and 113 deletions
+11
View File
@@ -106,6 +106,17 @@ export function parseTeamTransfer(serialized: string): Omit<TeamToolValue, "clie
};
}
export function cloneTeamImports(
teams: readonly Omit<TeamToolValue, "clientId">[],
createId: () => string,
): TeamToolValue[] {
return teams.map((team) => ({
clientId: createId(),
...team,
members: team.members.map((member) => ({ ...member })),
}));
}
export function findInvalidTeamCatalogReference(
team: Omit<TeamToolValue, "clientId">,
characters: readonly TeamToolCatalogItem[],