@umituz/web-dashboard 7.7.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +3 -1
- package/src/domains/onboarding/components/OnboardingFlow.tsx +9 -0
- package/src/domains/onboarding/components/screens/OrganizationDetailsScreen.test.tsx +115 -0
- package/src/domains/onboarding/components/screens/OrganizationDetailsScreen.tsx +74 -0
- package/src/domains/onboarding/components/screens/index.ts +2 -0
- package/src/domains/onboarding/index.ts +3 -0
- package/src/domains/onboarding/types/index.ts +7 -1
- package/src/domains/onboarding/types/labels.ts +4 -0
- package/src/domains/onboarding/types/screens.ts +12 -0
- package/src/domains/onboarding/validation/screen-config-check.ts +1 -0
- package/src/domains/onboarding/validation/validation.test.ts +7 -1
- package/src/domains/organization/OrganizationContext.test.tsx +113 -0
- package/src/domains/organization/OrganizationContext.tsx +111 -0
- package/src/domains/organization/components/InviteForm.test.tsx +72 -0
- package/src/domains/organization/components/InviteForm.tsx +101 -0
- package/src/domains/organization/components/OrganizationCard.test.tsx +44 -0
- package/src/domains/organization/components/OrganizationCard.tsx +87 -0
- package/src/domains/organization/components/OrganizationMembersPanel.test.tsx +167 -0
- package/src/domains/organization/components/OrganizationMembersPanel.tsx +231 -0
- package/src/domains/organization/components/OrganizationSwitcher.test.tsx +66 -0
- package/src/domains/organization/components/OrganizationSwitcher.tsx +46 -0
- package/src/domains/organization/components/index.ts +11 -0
- package/src/domains/organization/index.ts +31 -0
- package/src/domains/organization/types.ts +81 -0
- package/src/domains/organization/vocab.test.ts +49 -0
- package/src/domains/organization/vocab.ts +70 -0
- package/src/domains/settings/components/UserManagementTable.tsx +54 -1
- package/src/styles/chrome.css +213 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { NativeSelect } from "@umituz/web-design-system/atoms";
|
|
2
|
+
import type { OrganizationRecord } from "../types";
|
|
3
|
+
|
|
4
|
+
export interface PersonalWorkspace {
|
|
5
|
+
/** Stable id the host uses to scope data outside any organization. */
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface OrganizationSwitcherProps {
|
|
11
|
+
organizations: readonly OrganizationRecord[];
|
|
12
|
+
activeOrganizationId?: string;
|
|
13
|
+
onSwitch: (organizationId: string) => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Side-by-side architecture (Clerk/GitHub style): the personal workspace
|
|
17
|
+
* stays intact next to team organizations and leads the switcher.
|
|
18
|
+
*/
|
|
19
|
+
personalWorkspace?: PersonalWorkspace;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const OrganizationSwitcher = ({
|
|
23
|
+
organizations,
|
|
24
|
+
activeOrganizationId,
|
|
25
|
+
onSwitch,
|
|
26
|
+
label = "Workspace",
|
|
27
|
+
personalWorkspace,
|
|
28
|
+
}: OrganizationSwitcherProps) => {
|
|
29
|
+
const options = [
|
|
30
|
+
...(personalWorkspace ? [{ value: personalWorkspace.id, label: personalWorkspace.label }] : []),
|
|
31
|
+
...organizations.map((org) => ({ value: org.id, label: org.name })),
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
if (options.length < 2) return null;
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div className="udb-org-switcher">
|
|
38
|
+
<NativeSelect
|
|
39
|
+
label={label}
|
|
40
|
+
value={activeOrganizationId ?? options[0]?.value ?? ""}
|
|
41
|
+
options={options}
|
|
42
|
+
onValueChange={onSwitch}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { InviteForm } from "./InviteForm";
|
|
2
|
+
export type { InviteFormLabels, InviteFormProps } from "./InviteForm";
|
|
3
|
+
export { OrganizationCard } from "./OrganizationCard";
|
|
4
|
+
export type { OrganizationCardLabels, OrganizationCardProps } from "./OrganizationCard";
|
|
5
|
+
export { OrganizationMembersPanel } from "./OrganizationMembersPanel";
|
|
6
|
+
export type {
|
|
7
|
+
OrganizationMembersPanelLabels,
|
|
8
|
+
OrganizationMembersPanelProps,
|
|
9
|
+
} from "./OrganizationMembersPanel";
|
|
10
|
+
export { OrganizationSwitcher } from "./OrganizationSwitcher";
|
|
11
|
+
export type { OrganizationSwitcherProps, PersonalWorkspace } from "./OrganizationSwitcher";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { OrganizationProvider, useOrganization } from "./OrganizationContext";
|
|
2
|
+
export type {
|
|
3
|
+
OrganizationProviderProps,
|
|
4
|
+
OrganizationContextValue,
|
|
5
|
+
} from "./OrganizationContext";
|
|
6
|
+
export { initialsOf, memberStatusVocab, invitationStatusVocab } from "./vocab";
|
|
7
|
+
export {
|
|
8
|
+
InviteForm,
|
|
9
|
+
OrganizationCard,
|
|
10
|
+
OrganizationMembersPanel,
|
|
11
|
+
OrganizationSwitcher,
|
|
12
|
+
} from "./components";
|
|
13
|
+
export type {
|
|
14
|
+
InviteFormLabels,
|
|
15
|
+
InviteFormProps,
|
|
16
|
+
OrganizationCardLabels,
|
|
17
|
+
OrganizationCardProps,
|
|
18
|
+
OrganizationMembersPanelLabels,
|
|
19
|
+
OrganizationMembersPanelProps,
|
|
20
|
+
OrganizationSwitcherProps,
|
|
21
|
+
PersonalWorkspace,
|
|
22
|
+
} from "./components";
|
|
23
|
+
export type {
|
|
24
|
+
InvitationStatus,
|
|
25
|
+
OrganizationPermissionBridge,
|
|
26
|
+
OrganizationRecord,
|
|
27
|
+
OrgInviteInput,
|
|
28
|
+
OrgInvitation,
|
|
29
|
+
OrgMember,
|
|
30
|
+
MemberStatus,
|
|
31
|
+
} from "./types";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { PermissionMatrix, RoleKey } from "../permissions/types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Organization record — the tenant entity a signed-in user belongs to.
|
|
5
|
+
* Field set follows the fleet consensus (id/name/legalName/plan/status +
|
|
6
|
+
* locale trio); every field beyond id/name is optional so single-person
|
|
7
|
+
* organizations and partially-provisioned tenants stay representable.
|
|
8
|
+
*/
|
|
9
|
+
export interface OrganizationRecord {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
legalName?: string;
|
|
13
|
+
plan?: string;
|
|
14
|
+
status?: string;
|
|
15
|
+
country?: string;
|
|
16
|
+
currency?: string;
|
|
17
|
+
locale?: string;
|
|
18
|
+
timezone?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Fleet-wide membership vocabulary (invite flow: invited -> active -> suspended). */
|
|
22
|
+
export type MemberStatus = "invited" | "active" | "suspended";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Invitation lifecycle — the industry state machine
|
|
26
|
+
* (pending -> accepted | revoked | expired | declined). Invitations are
|
|
27
|
+
* first-class records, separate from memberships: they key on email, carry
|
|
28
|
+
* an expiry, and can be revoked or resent while pending.
|
|
29
|
+
*/
|
|
30
|
+
export type InvitationStatus = "pending" | "accepted" | "revoked" | "expired" | "declined";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* An outstanding (or settled) invitation. The host owns the backend record
|
|
34
|
+
* (token, redemption route); the panel renders and emits revoke/resend.
|
|
35
|
+
*/
|
|
36
|
+
export interface OrgInvitation {
|
|
37
|
+
id: string;
|
|
38
|
+
email: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
role: RoleKey;
|
|
41
|
+
status: InvitationStatus;
|
|
42
|
+
invitedBy?: string;
|
|
43
|
+
invitedAt?: string;
|
|
44
|
+
expiresAt?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A member row as the organization module consumes it. `role` is a RoleKey
|
|
49
|
+
* resolved against the host's RoleInfo list; owners carry `isOwner` so UIs
|
|
50
|
+
* can protect the last owner from removal/role changes. By convention `id`
|
|
51
|
+
* is the member's user id — pre-acceptance people belong in `OrgInvitation`,
|
|
52
|
+
* not here.
|
|
53
|
+
*/
|
|
54
|
+
export interface OrgMember {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
email: string;
|
|
58
|
+
role: RoleKey;
|
|
59
|
+
status?: MemberStatus;
|
|
60
|
+
isOwner?: boolean;
|
|
61
|
+
joinedAt?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Payload handed to the host when InviteForm validates. */
|
|
65
|
+
export interface OrgInviteInput {
|
|
66
|
+
name?: string;
|
|
67
|
+
email: string;
|
|
68
|
+
role: RoleKey;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Permission bridge — ties membership role to a 7.6.0 permission matrix. */
|
|
72
|
+
export interface OrganizationPermissionBridge {
|
|
73
|
+
matrix: PermissionMatrix;
|
|
74
|
+
/** Defaults to the current member's role when omitted. */
|
|
75
|
+
role?: RoleKey;
|
|
76
|
+
/** Extra grant/revoke applied on top of the matrix (visora-style overrides). */
|
|
77
|
+
overrides?: {
|
|
78
|
+
grant?: readonly string[];
|
|
79
|
+
revoke?: readonly string[];
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { initialsOf, invitationStatusVocab, memberStatusVocab } from "./vocab";
|
|
3
|
+
|
|
4
|
+
describe("initialsOf", () => {
|
|
5
|
+
it("takes up to two leading initials", () => {
|
|
6
|
+
expect(initialsOf("Northwind Labs")).toBe("NL");
|
|
7
|
+
expect(initialsOf("madeline")).toBe("M");
|
|
8
|
+
expect(initialsOf(" a berry owens ")).toBe("AB");
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("survives empty and blank names", () => {
|
|
12
|
+
expect(initialsOf("")).toBe("");
|
|
13
|
+
expect(initialsOf(" ")).toBe("");
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe("memberStatusVocab", () => {
|
|
18
|
+
it("covers the fleet membership vocabulary with tones", () => {
|
|
19
|
+
const vocab = memberStatusVocab();
|
|
20
|
+
expect(vocab.invited).toEqual({ label: "Invited", tone: "info" });
|
|
21
|
+
expect(vocab.active).toEqual({ label: "Active", tone: "success" });
|
|
22
|
+
expect(vocab.suspended).toEqual({ label: "Suspended", tone: "warning" });
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it("merges label overrides over the defaults", () => {
|
|
26
|
+
const vocab = memberStatusVocab({ invited: "Davetli", active: "Aktif" });
|
|
27
|
+
expect(vocab.invited?.label).toBe("Davetli");
|
|
28
|
+
expect(vocab.invited?.tone).toBe("info");
|
|
29
|
+
expect(vocab.active?.label).toBe("Aktif");
|
|
30
|
+
expect(vocab.suspended?.label).toBe("Suspended");
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
describe("invitationStatusVocab", () => {
|
|
35
|
+
it("covers the full invitation lifecycle with tones", () => {
|
|
36
|
+
const vocab = invitationStatusVocab();
|
|
37
|
+
expect(vocab.pending).toEqual({ label: "Pending", tone: "info" });
|
|
38
|
+
expect(vocab.accepted).toEqual({ label: "Accepted", tone: "success" });
|
|
39
|
+
expect(vocab.revoked).toEqual({ label: "Revoked", tone: "neutral" });
|
|
40
|
+
expect(vocab.expired).toEqual({ label: "Expired", tone: "warning" });
|
|
41
|
+
expect(vocab.declined).toEqual({ label: "Declined", tone: "neutral" });
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it("merges label overrides over the defaults", () => {
|
|
45
|
+
const vocab = invitationStatusVocab({ pending: "Bekliyor" });
|
|
46
|
+
expect(vocab.pending?.label).toBe("Bekliyor");
|
|
47
|
+
expect(vocab.pending?.tone).toBe("info");
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { statusVocab, type StatusVocab } from "@umituz/web-design-system/organisms";
|
|
2
|
+
import type { InvitationStatus, MemberStatus } from "./types";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Up to two leading initials from a display name ("Northwind Labs" -> "NL",
|
|
6
|
+
* "madeline" -> "M"). Used wherever an avatar block needs stable letters.
|
|
7
|
+
*/
|
|
8
|
+
export const initialsOf = (name: string): string =>
|
|
9
|
+
name
|
|
10
|
+
.trim()
|
|
11
|
+
.split(/\s+/)
|
|
12
|
+
.filter(Boolean)
|
|
13
|
+
.slice(0, 2)
|
|
14
|
+
.map((part) => part[0]?.toUpperCase() ?? "")
|
|
15
|
+
.join("");
|
|
16
|
+
|
|
17
|
+
const DEFAULT_MEMBER_STATUS_LABELS: Record<MemberStatus, string> = {
|
|
18
|
+
invited: "Invited",
|
|
19
|
+
active: "Active",
|
|
20
|
+
suspended: "Suspended",
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const MEMBER_STATUS_TONES: Record<MemberStatus, "info" | "success" | "warning"> = {
|
|
24
|
+
invited: "info",
|
|
25
|
+
active: "success",
|
|
26
|
+
suspended: "warning",
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Status vocab for membership rows — label overrides merge over the
|
|
31
|
+
* fleet-wide defaults (invited/active/suspended).
|
|
32
|
+
*/
|
|
33
|
+
export const memberStatusVocab = (
|
|
34
|
+
labelOverrides?: Partial<Record<MemberStatus, string>>,
|
|
35
|
+
): StatusVocab =>
|
|
36
|
+
statusVocab(
|
|
37
|
+
{ ...DEFAULT_MEMBER_STATUS_LABELS, ...labelOverrides },
|
|
38
|
+
MEMBER_STATUS_TONES,
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const DEFAULT_INVITATION_STATUS_LABELS: Record<InvitationStatus, string> = {
|
|
42
|
+
pending: "Pending",
|
|
43
|
+
accepted: "Accepted",
|
|
44
|
+
revoked: "Revoked",
|
|
45
|
+
expired: "Expired",
|
|
46
|
+
declined: "Declined",
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const INVITATION_STATUS_TONES: Record<
|
|
50
|
+
InvitationStatus,
|
|
51
|
+
"info" | "success" | "neutral" | "warning"
|
|
52
|
+
> = {
|
|
53
|
+
pending: "info",
|
|
54
|
+
accepted: "success",
|
|
55
|
+
revoked: "neutral",
|
|
56
|
+
expired: "warning",
|
|
57
|
+
declined: "neutral",
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Status vocab for invitation rows — label overrides merge over the
|
|
62
|
+
* industry lifecycle defaults (pending/accepted/revoked/expired/declined).
|
|
63
|
+
*/
|
|
64
|
+
export const invitationStatusVocab = (
|
|
65
|
+
labelOverrides?: Partial<Record<InvitationStatus, string>>,
|
|
66
|
+
): StatusVocab =>
|
|
67
|
+
statusVocab(
|
|
68
|
+
{ ...DEFAULT_INVITATION_STATUS_LABELS, ...labelOverrides },
|
|
69
|
+
INVITATION_STATUS_TONES,
|
|
70
|
+
);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
import { DataTable, type Column } from "@umituz/web-design-system/organisms";
|
|
3
|
+
import { StatusBadge, type StatusVocab } from "@umituz/web-design-system/organisms";
|
|
2
4
|
import type { RoleKey, RoleInfo } from "../../permissions/types";
|
|
3
5
|
|
|
4
6
|
export interface ManagedUser {
|
|
@@ -7,6 +9,8 @@ export interface ManagedUser {
|
|
|
7
9
|
email: string;
|
|
8
10
|
role: RoleKey;
|
|
9
11
|
status?: string;
|
|
12
|
+
/** Owner rows are shielded from removal/role changes when `isRowLocked` is not overridden. */
|
|
13
|
+
isOwner?: boolean;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
export interface UserManagementTableLabels {
|
|
@@ -14,6 +18,11 @@ export interface UserManagementTableLabels {
|
|
|
14
18
|
emailColumn: string;
|
|
15
19
|
roleColumn: string;
|
|
16
20
|
empty: string;
|
|
21
|
+
statusColumn?: string;
|
|
22
|
+
actionsColumn?: string;
|
|
23
|
+
/** @deprecated use actionsColumn — the column now hosts every row action. */
|
|
24
|
+
removeColumn?: string;
|
|
25
|
+
removeLabel?: string;
|
|
17
26
|
}
|
|
18
27
|
|
|
19
28
|
export interface UserManagementTableProps {
|
|
@@ -21,6 +30,14 @@ export interface UserManagementTableProps {
|
|
|
21
30
|
roles: RoleInfo[];
|
|
22
31
|
labels: UserManagementTableLabels;
|
|
23
32
|
onRoleChange?: (userId: string, role: RoleKey) => void;
|
|
33
|
+
/** Renders a status column with badges when provided. */
|
|
34
|
+
statusVocab?: StatusVocab;
|
|
35
|
+
/** Renders a remove action column when provided; guarded rows stay hidden. */
|
|
36
|
+
onRemove?: (userId: string) => void;
|
|
37
|
+
/** Extra row-level actions (e.g. "Make owner"), rendered before Remove. */
|
|
38
|
+
rowActions?: (user: ManagedUser) => ReactNode;
|
|
39
|
+
/** Rows that must never be removed or role-changed; defaults to owner rows. */
|
|
40
|
+
isRowLocked?: (user: ManagedUser) => boolean;
|
|
24
41
|
}
|
|
25
42
|
|
|
26
43
|
export const UserManagementTable = ({
|
|
@@ -28,6 +45,10 @@ export const UserManagementTable = ({
|
|
|
28
45
|
roles,
|
|
29
46
|
labels,
|
|
30
47
|
onRoleChange,
|
|
48
|
+
statusVocab,
|
|
49
|
+
onRemove,
|
|
50
|
+
rowActions,
|
|
51
|
+
isRowLocked = (user) => Boolean(user.isOwner),
|
|
31
52
|
}: UserManagementTableProps) => {
|
|
32
53
|
const columns: Column<ManagedUser>[] = [
|
|
33
54
|
{ id: "name", header: labels.nameColumn, accessor: "name" },
|
|
@@ -36,7 +57,7 @@ export const UserManagementTable = ({
|
|
|
36
57
|
id: "role",
|
|
37
58
|
header: labels.roleColumn,
|
|
38
59
|
accessor: (user) =>
|
|
39
|
-
onRoleChange ? (
|
|
60
|
+
onRoleChange && !isRowLocked(user) ? (
|
|
40
61
|
<select
|
|
41
62
|
className="udb-period-select__select"
|
|
42
63
|
value={user.role}
|
|
@@ -57,6 +78,38 @@ export const UserManagementTable = ({
|
|
|
57
78
|
},
|
|
58
79
|
];
|
|
59
80
|
|
|
81
|
+
if (statusVocab) {
|
|
82
|
+
columns.push({
|
|
83
|
+
id: "status",
|
|
84
|
+
header: labels.statusColumn ?? "Status",
|
|
85
|
+
accessor: (user) =>
|
|
86
|
+
user.status ? <StatusBadge vocab={statusVocab} value={user.status} /> : null,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (onRemove || rowActions) {
|
|
91
|
+
columns.push({
|
|
92
|
+
id: "actions",
|
|
93
|
+
header: labels.actionsColumn ?? labels.removeColumn ?? "",
|
|
94
|
+
align: "right",
|
|
95
|
+
accessor: (user) => {
|
|
96
|
+
const extra = rowActions?.(user);
|
|
97
|
+
const remove =
|
|
98
|
+
onRemove && !isRowLocked(user) ? (
|
|
99
|
+
<button
|
|
100
|
+
type="button"
|
|
101
|
+
className="udb-link-button"
|
|
102
|
+
onClick={() => onRemove(user.id)}
|
|
103
|
+
>
|
|
104
|
+
{labels.removeLabel ?? "Remove"}
|
|
105
|
+
</button>
|
|
106
|
+
) : null;
|
|
107
|
+
if (!extra && !remove) return null;
|
|
108
|
+
return <div className="udb-row-actions">{extra}{remove}</div>;
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
60
113
|
return (
|
|
61
114
|
<DataTable
|
|
62
115
|
data={users}
|
package/src/styles/chrome.css
CHANGED
|
@@ -1290,6 +1290,211 @@
|
|
|
1290
1290
|
justify-content: flex-end;
|
|
1291
1291
|
gap: var(--udb-space-2);
|
|
1292
1292
|
}
|
|
1293
|
+
.udb-org-card {
|
|
1294
|
+
display: flex;
|
|
1295
|
+
flex-direction: column;
|
|
1296
|
+
border: 1px solid var(--color-border);
|
|
1297
|
+
border-radius: var(--radius-lg);
|
|
1298
|
+
background: var(--color-card);
|
|
1299
|
+
overflow: hidden;
|
|
1300
|
+
text-align: left;
|
|
1301
|
+
}
|
|
1302
|
+
.udb-org-card--clickable {
|
|
1303
|
+
cursor: pointer;
|
|
1304
|
+
transition: border-color 0.15s ease;
|
|
1305
|
+
}
|
|
1306
|
+
.udb-org-card--clickable:hover {
|
|
1307
|
+
border-color: var(--color-primary);
|
|
1308
|
+
}
|
|
1309
|
+
.udb-org-card__initials {
|
|
1310
|
+
display: flex;
|
|
1311
|
+
align-items: center;
|
|
1312
|
+
justify-content: center;
|
|
1313
|
+
width: 100%;
|
|
1314
|
+
height: 100%;
|
|
1315
|
+
font-size: var(--udb-font-size-2xl);
|
|
1316
|
+
font-weight: var(--font-weight-bold);
|
|
1317
|
+
color: #fff;
|
|
1318
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
|
|
1319
|
+
}
|
|
1320
|
+
.udb-org-card__body {
|
|
1321
|
+
display: flex;
|
|
1322
|
+
flex-direction: column;
|
|
1323
|
+
gap: var(--udb-space-2);
|
|
1324
|
+
padding: var(--udb-space-4);
|
|
1325
|
+
}
|
|
1326
|
+
.udb-org-card__head {
|
|
1327
|
+
display: flex;
|
|
1328
|
+
align-items: flex-start;
|
|
1329
|
+
justify-content: space-between;
|
|
1330
|
+
gap: var(--udb-space-3);
|
|
1331
|
+
}
|
|
1332
|
+
.udb-org-card__name {
|
|
1333
|
+
margin: 0;
|
|
1334
|
+
font-size: var(--udb-font-size-lg);
|
|
1335
|
+
font-weight: var(--font-weight-semibold);
|
|
1336
|
+
}
|
|
1337
|
+
.udb-org-card__legal {
|
|
1338
|
+
margin: 0;
|
|
1339
|
+
font-size: var(--udb-font-size-sm);
|
|
1340
|
+
color: var(--color-muted-foreground);
|
|
1341
|
+
}
|
|
1342
|
+
.udb-org-card__plan {
|
|
1343
|
+
flex-shrink: 0;
|
|
1344
|
+
font-size: var(--udb-font-size-xs);
|
|
1345
|
+
font-weight: var(--font-weight-semibold);
|
|
1346
|
+
padding: var(--udb-space-1) var(--udb-space-2);
|
|
1347
|
+
border-radius: 999px;
|
|
1348
|
+
background: var(--color-secondary);
|
|
1349
|
+
color: var(--color-secondary-foreground);
|
|
1350
|
+
white-space: nowrap;
|
|
1351
|
+
}
|
|
1352
|
+
.udb-org-card__meta {
|
|
1353
|
+
margin: 0;
|
|
1354
|
+
font-size: var(--udb-font-size-sm);
|
|
1355
|
+
color: var(--color-muted-foreground);
|
|
1356
|
+
}
|
|
1357
|
+
.udb-org-card__hint {
|
|
1358
|
+
display: flex;
|
|
1359
|
+
flex-direction: column;
|
|
1360
|
+
align-items: flex-start;
|
|
1361
|
+
gap: var(--udb-space-2);
|
|
1362
|
+
padding: var(--udb-space-3);
|
|
1363
|
+
border-radius: var(--radius-md);
|
|
1364
|
+
background: var(--color-muted);
|
|
1365
|
+
}
|
|
1366
|
+
.udb-org-card__hint p {
|
|
1367
|
+
margin: 0;
|
|
1368
|
+
font-size: var(--udb-font-size-sm);
|
|
1369
|
+
color: var(--color-muted-foreground);
|
|
1370
|
+
}
|
|
1371
|
+
.udb-members {
|
|
1372
|
+
display: flex;
|
|
1373
|
+
flex-direction: column;
|
|
1374
|
+
gap: var(--udb-space-3);
|
|
1375
|
+
}
|
|
1376
|
+
.udb-members__head {
|
|
1377
|
+
display: flex;
|
|
1378
|
+
align-items: center;
|
|
1379
|
+
justify-content: space-between;
|
|
1380
|
+
gap: var(--udb-space-3);
|
|
1381
|
+
}
|
|
1382
|
+
.udb-members__title {
|
|
1383
|
+
margin: 0;
|
|
1384
|
+
font-size: var(--udb-font-size-md);
|
|
1385
|
+
font-weight: var(--font-weight-semibold);
|
|
1386
|
+
}
|
|
1387
|
+
.udb-members__count {
|
|
1388
|
+
color: var(--color-muted-foreground);
|
|
1389
|
+
font-weight: var(--font-weight-normal);
|
|
1390
|
+
}
|
|
1391
|
+
.udb-members__head-actions {
|
|
1392
|
+
display: flex;
|
|
1393
|
+
align-items: center;
|
|
1394
|
+
gap: var(--udb-space-2);
|
|
1395
|
+
}
|
|
1396
|
+
.udb-members__seats {
|
|
1397
|
+
font-size: var(--udb-font-size-sm);
|
|
1398
|
+
color: var(--color-muted-foreground);
|
|
1399
|
+
white-space: nowrap;
|
|
1400
|
+
}
|
|
1401
|
+
.udb-members__invite {
|
|
1402
|
+
padding: var(--udb-space-4);
|
|
1403
|
+
border: 1px solid var(--color-border);
|
|
1404
|
+
border-radius: var(--radius-md);
|
|
1405
|
+
background: var(--color-muted);
|
|
1406
|
+
}
|
|
1407
|
+
.udb-members__invitations {
|
|
1408
|
+
display: flex;
|
|
1409
|
+
flex-direction: column;
|
|
1410
|
+
gap: var(--udb-space-2);
|
|
1411
|
+
}
|
|
1412
|
+
.udb-members__invitations-title {
|
|
1413
|
+
margin: 0;
|
|
1414
|
+
font-size: var(--udb-font-size-sm);
|
|
1415
|
+
font-weight: var(--font-weight-semibold);
|
|
1416
|
+
color: var(--color-muted-foreground);
|
|
1417
|
+
}
|
|
1418
|
+
.udb-members__invitation-list {
|
|
1419
|
+
display: flex;
|
|
1420
|
+
flex-direction: column;
|
|
1421
|
+
gap: var(--udb-space-2);
|
|
1422
|
+
margin: 0;
|
|
1423
|
+
padding: 0;
|
|
1424
|
+
list-style: none;
|
|
1425
|
+
}
|
|
1426
|
+
.udb-members__invitation {
|
|
1427
|
+
display: flex;
|
|
1428
|
+
align-items: center;
|
|
1429
|
+
justify-content: space-between;
|
|
1430
|
+
gap: var(--udb-space-3);
|
|
1431
|
+
padding: var(--udb-space-2) var(--udb-space-3);
|
|
1432
|
+
border: 1px solid var(--color-border);
|
|
1433
|
+
border-radius: var(--radius-md);
|
|
1434
|
+
}
|
|
1435
|
+
.udb-members__invitation-info {
|
|
1436
|
+
display: flex;
|
|
1437
|
+
flex-direction: column;
|
|
1438
|
+
gap: var(--udb-space-1);
|
|
1439
|
+
}
|
|
1440
|
+
.udb-members__invitation-email {
|
|
1441
|
+
font-size: var(--udb-font-size-sm);
|
|
1442
|
+
font-weight: var(--font-weight-medium);
|
|
1443
|
+
}
|
|
1444
|
+
.udb-members__invitation-role {
|
|
1445
|
+
font-size: var(--udb-font-size-xs);
|
|
1446
|
+
color: var(--color-muted-foreground);
|
|
1447
|
+
}
|
|
1448
|
+
.udb-members__invitation-side {
|
|
1449
|
+
display: flex;
|
|
1450
|
+
align-items: center;
|
|
1451
|
+
gap: var(--udb-space-3);
|
|
1452
|
+
}
|
|
1453
|
+
.udb-members__invitation-actions {
|
|
1454
|
+
display: flex;
|
|
1455
|
+
align-items: center;
|
|
1456
|
+
gap: var(--udb-space-2);
|
|
1457
|
+
}
|
|
1458
|
+
.udb-row-actions {
|
|
1459
|
+
display: inline-flex;
|
|
1460
|
+
align-items: center;
|
|
1461
|
+
justify-content: flex-end;
|
|
1462
|
+
gap: var(--udb-space-2);
|
|
1463
|
+
}
|
|
1464
|
+
.udb-invite {
|
|
1465
|
+
display: flex;
|
|
1466
|
+
flex-direction: column;
|
|
1467
|
+
gap: var(--udb-space-3);
|
|
1468
|
+
}
|
|
1469
|
+
.udb-invite__grid {
|
|
1470
|
+
display: grid;
|
|
1471
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
1472
|
+
gap: var(--udb-space-3) var(--udb-space-4);
|
|
1473
|
+
}
|
|
1474
|
+
.udb-invite__actions {
|
|
1475
|
+
display: flex;
|
|
1476
|
+
justify-content: flex-end;
|
|
1477
|
+
gap: var(--udb-space-2);
|
|
1478
|
+
}
|
|
1479
|
+
.udb-org-switcher {
|
|
1480
|
+
max-width: 260px;
|
|
1481
|
+
}
|
|
1482
|
+
.udb-link-button {
|
|
1483
|
+
appearance: none;
|
|
1484
|
+
background: none;
|
|
1485
|
+
border: none;
|
|
1486
|
+
padding: 0;
|
|
1487
|
+
font: inherit;
|
|
1488
|
+
font-size: var(--udb-font-size-sm);
|
|
1489
|
+
color: var(--color-destructive);
|
|
1490
|
+
cursor: pointer;
|
|
1491
|
+
}
|
|
1492
|
+
.udb-link-button:hover {
|
|
1493
|
+
text-decoration: underline;
|
|
1494
|
+
}
|
|
1495
|
+
.udb-link-button--muted {
|
|
1496
|
+
color: var(--color-muted-foreground);
|
|
1497
|
+
}
|
|
1293
1498
|
.udb-matrix__group-row th {
|
|
1294
1499
|
font-size: var(--udb-font-size-xs);
|
|
1295
1500
|
font-weight: var(--font-weight-bold);
|
|
@@ -2397,6 +2602,14 @@
|
|
|
2397
2602
|
background: var(--color-card);
|
|
2398
2603
|
font-size: var(--udb-font-size-sm);
|
|
2399
2604
|
}
|
|
2605
|
+
.udb-onb-input {
|
|
2606
|
+
width: 100%;
|
|
2607
|
+
padding: var(--udb-space-2);
|
|
2608
|
+
border: 1px solid var(--color-border);
|
|
2609
|
+
border-radius: var(--radius-md);
|
|
2610
|
+
background: var(--color-card);
|
|
2611
|
+
font-size: var(--udb-font-size-sm);
|
|
2612
|
+
}
|
|
2400
2613
|
.udb-onb-chips {
|
|
2401
2614
|
display: flex;
|
|
2402
2615
|
flex-wrap: wrap;
|