1
0
forked from baron/baron-sso

코드체크 업데이트

This commit is contained in:
2026-05-12 13:41:43 +09:00
parent 5e649c279f
commit d4c48da426
32 changed files with 486 additions and 85 deletions

View File

@@ -46,9 +46,7 @@ describe("hanmac family organization order", () => {
it("does not rank generic technical centers as GPDTDC", () => {
expect(
getHanmacFamilyTenantOrderRank(
tenant("기술개발센터", "rnd-center"),
),
getHanmacFamilyTenantOrderRank(tenant("기술개발센터", "rnd-center")),
).toBe(Number.MAX_SAFE_INTEGER);
});
});

View File

@@ -51,10 +51,9 @@ function tenantToPickerNode(
tenant: TenantNode,
usersBySlug: Map<string, UserSummary[]>,
): OrgPickerTreeNode {
const tenantChildren = orderHanmacFamilyChildren(
tenant,
tenant.children,
).map((child) => tenantToPickerNode(child, usersBySlug));
const tenantChildren = orderHanmacFamilyChildren(tenant, tenant.children).map(
(child) => tenantToPickerNode(child, usersBySlug),
);
const userChildren = (usersBySlug.get(tenant.slug.toLowerCase()) || []).map(
(user) => ({
type: "user" as const,

View File

@@ -1032,12 +1032,11 @@ export function buildOrgSelectionOptions(
(familyRoot?.children ?? []).filter((node) =>
["COMPANY_GROUP", "COMPANY", "ORGANIZATION"].includes(node.type),
),
)
.map((node) => ({
descendants: collectOrgSelectionDescendants(node, 2),
id: node.id,
label: node.name,
}));
).map((node) => ({
descendants: collectOrgSelectionDescendants(node, 2),
id: node.id,
label: node.name,
}));
}
function getOrgSelectionLabel(