1
0
forked from baron/baron-sso

feat: implement CSV-based organization chart import and enhance group hierarchy

This commit is contained in:
2026-03-04 14:20:49 +09:00
parent a973cd746b
commit 9ac99d2e0c
4 changed files with 187 additions and 20 deletions

View File

@@ -47,6 +47,7 @@ import {
removeGroupMember,
} from "../../../lib/adminApi";
import { t } from "../../../lib/i18n";
import { OrgChartUploadModal } from "../components/OrgChartUploadModal";
type UserGroupNode = GroupSummary & {
children: UserGroupNode[];
@@ -443,13 +444,19 @@ function TenantGroupsPage() {
)}
</CardDescription>
</div>
<Button
variant="ghost"
size="sm"
onClick={() => groupsQuery.refetch()}
>
<RefreshCw size={14} />
</Button>
<div className="flex items-center gap-2">
<OrgChartUploadModal
tenantId={tenantId}
onSuccess={() => groupsQuery.refetch()}
/>
<Button
variant="ghost"
size="sm"
onClick={() => groupsQuery.refetch()}
>
<RefreshCw size={14} />
</Button>
</div>
</CardHeader>
<CardContent>
<Table>