@iblai/iblai-js 2.62.1 → 2.62.3
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/dist/data-layer/playwright/index.d.ts +1 -1
- package/dist/data-layer/playwright/spend-limits-helpers.d.ts +80 -2
- package/dist/playwright/index.cjs +210 -2
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +81 -3
- package/dist/playwright/index.esm.js +197 -3
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/index.d.ts +1 -1
- package/dist/playwright/playwright/spend-limits-helpers.d.ts +80 -2
- package/dist/security/playwright/index.d.ts +1 -1
- package/dist/security/playwright/spend-limits-helpers.d.ts +80 -2
- package/dist/web-containers/playwright/index.d.ts +1 -1
- package/dist/web-containers/playwright/spend-limits-helpers.d.ts +80 -2
- package/dist/web-containers/source/_virtual/index2.js +2 -2
- package/dist/web-containers/source/_virtual/index3.js +2 -2
- package/dist/web-containers/source/add-resource-modal.js +3 -2
- package/dist/web-containers/source/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/agent-limits-section.js +3 -5
- package/dist/web-containers/source/agent-limits-section.js.map +1 -1
- package/dist/web-containers/source/billing.js +9 -3
- package/dist/web-containers/source/billing.js.map +1 -1
- package/dist/web-containers/source/chat/index.js +39 -11
- package/dist/web-containers/source/chat/index.js.map +1 -1
- package/dist/web-containers/source/chat-input-form.js +2 -2
- package/dist/web-containers/source/chat-input-form.js.map +1 -1
- package/dist/web-containers/source/components/chat/index.js +39 -11
- package/dist/web-containers/source/components/chat/index.js.map +1 -1
- package/dist/web-containers/source/components/chat-input-form.js +2 -2
- package/dist/web-containers/source/components/chat-input-form.js.map +1 -1
- package/dist/web-containers/source/components/hooks/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/components/hooks/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/billing.js +9 -3
- package/dist/web-containers/source/components/profile/billing.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/agent-limits-section.js +3 -5
- package/dist/web-containers/source/components/spend-caps/agent-limits-section.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/labels.js +74 -0
- package/dist/web-containers/source/components/spend-caps/labels.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/new-user-default-section.js +78 -0
- package/dist/web-containers/source/components/spend-caps/new-user-default-section.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/row-icon-action.js +16 -0
- package/dist/web-containers/source/components/spend-caps/row-icon-action.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/spend-cap-fields.js +23 -0
- package/dist/web-containers/source/components/spend-caps/spend-cap-fields.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/spend-cap-form.js +21 -23
- package/dist/web-containers/source/components/spend-caps/spend-cap-form.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/spend-cap-usage.js +1 -0
- package/dist/web-containers/source/components/spend-caps/spend-cap-usage.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/use-platform-user-options.js +39 -0
- package/dist/web-containers/source/components/spend-caps/use-platform-user-options.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/use-spend-cap-status.js +23 -0
- package/dist/web-containers/source/components/spend-caps/use-spend-cap-status.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/use-spend-caps.js +1 -11
- package/dist/web-containers/source/components/spend-caps/use-spend-caps.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/user-cap-modal.js +8 -32
- package/dist/web-containers/source/components/spend-caps/user-cap-modal.js.map +1 -1
- package/dist/web-containers/source/components/spend-caps/user-limits-section.js +117 -0
- package/dist/web-containers/source/components/spend-caps/user-limits-section.js.map +1 -0
- package/dist/web-containers/source/components/spend-caps/utils.js +14 -1
- package/dist/web-containers/source/components/spend-caps/utils.js.map +1 -1
- package/dist/web-containers/source/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/en.json.js +45 -5
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +45 -5
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +45 -5
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/hooks/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/hooks/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +45 -5
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +45 -5
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +45 -5
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +45 -5
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/index2.js +2 -2
- package/dist/web-containers/source/index3.js +2 -2
- package/dist/web-containers/source/messages/en.json.js +45 -5
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +45 -5
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +45 -5
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +45 -5
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/new-user-default-section.js +78 -0
- package/dist/web-containers/source/new-user-default-section.js.map +1 -0
- package/dist/web-containers/source/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/web-containers/source/profile/billing.js +9 -3
- package/dist/web-containers/source/profile/billing.js.map +1 -1
- package/dist/web-containers/source/row-icon-action.js +16 -0
- package/dist/web-containers/source/row-icon-action.js.map +1 -0
- package/dist/web-containers/source/spend-cap-fields.js +23 -0
- package/dist/web-containers/source/spend-cap-fields.js.map +1 -0
- package/dist/web-containers/source/spend-cap-form.js +21 -23
- package/dist/web-containers/source/spend-cap-form.js.map +1 -1
- package/dist/web-containers/source/spend-cap-usage.js +1 -0
- package/dist/web-containers/source/spend-cap-usage.js.map +1 -1
- package/dist/web-containers/source/spend-caps/agent-limits-section.js +3 -5
- package/dist/web-containers/source/spend-caps/agent-limits-section.js.map +1 -1
- package/dist/web-containers/source/spend-caps/labels.js +74 -0
- package/dist/web-containers/source/spend-caps/labels.js.map +1 -1
- package/dist/web-containers/source/spend-caps/new-user-default-section.js +78 -0
- package/dist/web-containers/source/spend-caps/new-user-default-section.js.map +1 -0
- package/dist/web-containers/source/spend-caps/row-icon-action.js +16 -0
- package/dist/web-containers/source/spend-caps/row-icon-action.js.map +1 -0
- package/dist/web-containers/source/spend-caps/spend-cap-fields.js +23 -0
- package/dist/web-containers/source/spend-caps/spend-cap-fields.js.map +1 -0
- package/dist/web-containers/source/spend-caps/spend-cap-form.js +21 -23
- package/dist/web-containers/source/spend-caps/spend-cap-form.js.map +1 -1
- package/dist/web-containers/source/spend-caps/spend-cap-usage.js +1 -0
- package/dist/web-containers/source/spend-caps/spend-cap-usage.js.map +1 -1
- package/dist/web-containers/source/spend-caps/use-platform-user-options.js +39 -0
- package/dist/web-containers/source/spend-caps/use-platform-user-options.js.map +1 -0
- package/dist/web-containers/source/spend-caps/use-spend-cap-status.js +23 -0
- package/dist/web-containers/source/spend-caps/use-spend-cap-status.js.map +1 -0
- package/dist/web-containers/source/spend-caps/use-spend-caps.js +1 -11
- package/dist/web-containers/source/spend-caps/use-spend-caps.js.map +1 -1
- package/dist/web-containers/source/spend-caps/user-cap-modal.js +8 -32
- package/dist/web-containers/source/spend-caps/user-cap-modal.js.map +1 -1
- package/dist/web-containers/source/spend-caps/user-limits-section.js +117 -0
- package/dist/web-containers/source/spend-caps/user-limits-section.js.map +1 -0
- package/dist/web-containers/source/spend-caps/utils.js +14 -1
- package/dist/web-containers/source/spend-caps/utils.js.map +1 -1
- package/dist/web-containers/source/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/use-platform-user-options.js +39 -0
- package/dist/web-containers/source/use-platform-user-options.js.map +1 -0
- package/dist/web-containers/source/use-spend-cap-status.js +23 -0
- package/dist/web-containers/source/use-spend-cap-status.js.map +1 -0
- package/dist/web-containers/source/use-spend-caps.js +1 -11
- package/dist/web-containers/source/use-spend-caps.js.map +1 -1
- package/dist/web-containers/source/user-cap-modal.js +8 -32
- package/dist/web-containers/source/user-cap-modal.js.map +1 -1
- package/dist/web-containers/source/user-limits-section.js +117 -0
- package/dist/web-containers/source/user-limits-section.js.map +1 -0
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +45 -5
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/dist/web-utils/playwright/index.d.ts +1 -1
- package/dist/web-utils/playwright/spend-limits-helpers.d.ts +80 -2
- package/package.json +5 -5
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { toast } from 'sonner';
|
|
4
|
+
import { useListTenantUserSpendCapsQuery, useUpsertTenantUserSpendCapMutation, useDeleteTenantUserSpendCapMutation } from '@iblai/data-layer';
|
|
5
|
+
import { CustomSwitch } from '../modals/edit-mentor-modal/custom-switch.js';
|
|
6
|
+
import { UserProfileLink, UserProfileDialog } from '../profile/user-profile-link.js';
|
|
7
|
+
import { Button } from '../ui/button.js';
|
|
8
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '../ui/dialog.js';
|
|
9
|
+
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from '../ui/table.js';
|
|
10
|
+
import { Spinner } from '../spinner/index.js';
|
|
11
|
+
import { useT } from '../../i18n/context.js';
|
|
12
|
+
import '../../packages/i18n/dist/index.esm.js';
|
|
13
|
+
import { resolveSpendCapsTabLabels } from './labels.js';
|
|
14
|
+
import { RowIconAction } from './row-icon-action.js';
|
|
15
|
+
import { SearchSelect } from './search-select.js';
|
|
16
|
+
import { usePlatformUserOptions } from './use-platform-user-options.js';
|
|
17
|
+
import { UserCapModal } from './user-cap-modal.js';
|
|
18
|
+
import { errorStatus, formatUsd, errorDetail } from './utils.js';
|
|
19
|
+
import ShieldAlert from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/shield-alert.js';
|
|
20
|
+
import SlidersHorizontal from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js';
|
|
21
|
+
import Trash2 from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/trash-2.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Tenant-settings Billing "User Limits" tab: every user-scoped spend cap in
|
|
25
|
+
* the workspace (one user's spend across all agents, `spend-caps/users/`,
|
|
26
|
+
* iblai-platform#2513) — the Agent Limits layout with a user autocomplete
|
|
27
|
+
* filter (also the entry point for a user who has none yet), a direct status
|
|
28
|
+
* toggle per row, and edit/delete icons beside it. Add and edit both go
|
|
29
|
+
* through the same `UserCapModal` as the per-agent user limits. Rendered
|
|
30
|
+
* inside `BillingTab` above `NewUserDefaultSection`, whose rows end up here.
|
|
31
|
+
*/
|
|
32
|
+
function UserLimitsSection({ tenantKey, labels: labelsOverride }) {
|
|
33
|
+
var _a;
|
|
34
|
+
const t = useT();
|
|
35
|
+
const labels = React__default.useMemo(() => resolveSpendCapsTabLabels(labelsOverride, t), [labelsOverride, t]);
|
|
36
|
+
const copy = labels.tenantSections.users;
|
|
37
|
+
const [userFilter, setUserFilter] = React__default.useState(null);
|
|
38
|
+
const [userSearch, setUserSearch] = React__default.useState('');
|
|
39
|
+
const { options: userOptions, isSearching: isSearchingUsers } = usePlatformUserOptions(tenantKey, userSearch);
|
|
40
|
+
// The endpoint filters by username server-side — pass it through instead
|
|
41
|
+
// of fetching everything and filtering client-side.
|
|
42
|
+
const { data: visibleCaps = [], error: capsError, isLoading, isFetching, } = useListTenantUserSpendCapsQuery({ org: tenantKey, ...(userFilter ? { username: userFilter.value } : {}) }, { skip: !tenantKey });
|
|
43
|
+
const isForbidden = errorStatus(capsError) === 403;
|
|
44
|
+
const [upsertCap, { isLoading: isSaving }] = useUpsertTenantUserSpendCapMutation();
|
|
45
|
+
const [deleteCap, { isLoading: isDeleting }] = useDeleteTenantUserSpendCapMutation();
|
|
46
|
+
const [isModalOpen, setIsModalOpen] = React__default.useState(false);
|
|
47
|
+
const [editingCap, setEditingCap] = React__default.useState(null);
|
|
48
|
+
// Kept whole so the dialog can show the user's email while the delete
|
|
49
|
+
// call is still keyed by username.
|
|
50
|
+
const [pendingDelete, setPendingDelete] = React__default.useState(null);
|
|
51
|
+
// Whole-row click opens the user's profile (Management-tab pattern).
|
|
52
|
+
const [profileCap, setProfileCap] = React__default.useState(null);
|
|
53
|
+
const saveCap = async (username, formData) => {
|
|
54
|
+
try {
|
|
55
|
+
await upsertCap({ org: tenantKey, username, formData }).unwrap();
|
|
56
|
+
toast.success(labels.toasts.saved);
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
console.error('[UserLimitsSection] save spend limit error', error);
|
|
61
|
+
toast.error(errorDetail(error) || labels.toasts.saveError);
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const removeCap = async (username) => {
|
|
66
|
+
try {
|
|
67
|
+
await deleteCap({ org: tenantKey, username }).unwrap();
|
|
68
|
+
toast.success(labels.toasts.deleted);
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
console.error('[UserLimitsSection] delete spend limit error', error);
|
|
73
|
+
toast.error(errorDetail(error) || labels.toasts.deleteError);
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
// Status toggle saves immediately (datasets-table pattern) — the PUT is an
|
|
78
|
+
// upsert, so the cap's current fields ride along with the flipped flag.
|
|
79
|
+
const toggleEnabled = (cap, checked) => {
|
|
80
|
+
var _a;
|
|
81
|
+
void saveCap((_a = cap.username) !== null && _a !== void 0 ? _a : '', {
|
|
82
|
+
interval_type: cap.interval_type,
|
|
83
|
+
max_cost_usd: cap.max_cost_usd,
|
|
84
|
+
enforcement: cap.enforcement,
|
|
85
|
+
alert_thresholds: cap.alert_thresholds,
|
|
86
|
+
enabled: checked,
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
const openAddForFilteredUser = () => {
|
|
90
|
+
setEditingCap(null);
|
|
91
|
+
setIsModalOpen(true);
|
|
92
|
+
};
|
|
93
|
+
const openEdit = (cap) => {
|
|
94
|
+
setEditingCap(cap);
|
|
95
|
+
setIsModalOpen(true);
|
|
96
|
+
};
|
|
97
|
+
const handleConfirmDelete = async () => {
|
|
98
|
+
var _a;
|
|
99
|
+
if (!pendingDelete)
|
|
100
|
+
return;
|
|
101
|
+
const deleted = await removeCap((_a = pendingDelete.username) !== null && _a !== void 0 ? _a : '');
|
|
102
|
+
if (deleted)
|
|
103
|
+
setPendingDelete(null);
|
|
104
|
+
};
|
|
105
|
+
return (jsxs(Fragment, { children: [jsxs("div", { "data-testid": "spend-limits-users-section", className: "rounded-lg border border-[#e5e5e5] bg-white shadow-[0_1px_2px_0_rgba(0,0,0,0.05)] dark:bg-zinc-900 dark:border-zinc-800", children: [jsx("div", { className: "flex flex-col gap-2 p-4 sm:flex-row sm:items-start sm:justify-between", children: jsxs("div", { className: "space-y-0.5", children: [jsx("h3", { className: "text-[16px] font-medium leading-6 text-[#101828] dark:text-gray-100", children: copy.title }), jsx("p", { className: "text-[13px] font-normal leading-5 text-[#4a5565] dark:text-gray-400", children: copy.description })] }) }), jsx("div", { className: "space-y-3 border-t border-[#e5e7eb] dark:border-zinc-800 px-4 py-3", children: isForbidden ? (jsxs("div", { className: "flex flex-col items-center gap-2 rounded-lg border border-gray-200 bg-gray-50 px-4 py-10 text-center", "data-testid": "user-limits-denied", children: [jsx(ShieldAlert, { className: "h-6 w-6 text-gray-400" }), jsx("p", { className: "text-sm font-medium text-gray-900", children: labels.denied.title }), jsx("p", { className: "max-w-sm text-xs text-gray-600", children: labels.denied.description })] })) : (jsxs(Fragment, { children: [jsx("div", { className: "max-w-sm", children: jsx(SearchSelect, { labels: copy.filter, selected: userFilter, onSelect: setUserFilter, onClear: () => setUserFilter(null), searchTerm: userSearch, onSearchTermChange: setUserSearch, options: userOptions, isLoading: isSearchingUsers, testId: "user-limits-filter" }) }), jsx("div", { className: "overflow-hidden rounded-md border", "data-testid": "user-limits-list", children: jsx("div", { className: "overflow-x-auto sm:mx-0", children: jsx("div", { className: "inline-block min-w-full align-middle", children: isLoading || isFetching ? (jsx("div", { className: "flex w-full items-center justify-center py-10", "data-testid": "user-limits-loading", children: jsx(Spinner, {}) })) : (jsxs(Table, { className: "min-w-full", children: [jsx(TableHeader, { children: jsxs(TableRow, { className: "bg-muted/50 border-b", children: [jsx(TableHead, { className: "p-3 text-left text-sm whitespace-nowrap text-[#646464]", children: copy.table.userColumn }), jsx(TableHead, { className: "p-3 text-left text-sm whitespace-nowrap text-[#646464]", children: copy.table.limitColumn }), jsx(TableHead, { className: "p-3 text-left text-sm whitespace-nowrap text-[#646464]", children: copy.table.spentColumn }), jsx(TableHead, { className: "p-3 text-left text-sm whitespace-nowrap text-[#646464]", children: copy.table.remainingColumn }), jsx(TableHead, { className: "p-3 text-left text-sm whitespace-nowrap text-[#646464]", children: copy.table.statusColumn }), jsx(TableHead, { className: "w-20 p-3" })] }) }), jsx(TableBody, { children: visibleCaps.length === 0 ? (jsx(TableRow, { children: jsx(TableCell, { colSpan: 6, className: "p-4 text-center text-[#646464]", "data-testid": "user-limits-empty", children: jsxs("div", { className: "space-y-2", children: [jsx("p", { children: userFilter ? copy.emptyFiltered : copy.emptyState }), userFilter && (jsx(Button, { className: "ibl-button-primary", onClick: openAddForFilteredUser, disabled: isSaving || isDeleting, "data-testid": "user-limits-set-limit-button", children: copy.setLimitButton }))] }) }) })) : (visibleCaps.map((cap) => {
|
|
106
|
+
var _a;
|
|
107
|
+
const username = (_a = cap.username) !== null && _a !== void 0 ? _a : '';
|
|
108
|
+
// Email-first everywhere the user is shown or
|
|
109
|
+
// announced; testids and mutation keys stay on
|
|
110
|
+
// the backend's username key.
|
|
111
|
+
const displayName = cap.email || username;
|
|
112
|
+
return (jsxs(TableRow, { onClick: () => setProfileCap(cap), className: "cursor-pointer border-b transition-colors last:border-0 hover:bg-gray-50", "data-testid": `user-limits-row-${username}`, children: [jsx(TableCell, { className: "max-w-[240px] p-3 font-medium whitespace-nowrap text-[#646464]", children: jsx(UserProfileLink, { tenantKey: tenantKey, username: username, display: displayName, testId: `user-limits-profile-link-${username}` }) }), jsxs(TableCell, { className: "p-3 whitespace-nowrap text-[#646464]", children: [formatUsd(cap.max_cost_usd), " /", ' ', labels.form.intervalOptions[cap.interval_type]] }), jsx(TableCell, { className: "p-3 whitespace-nowrap text-[#646464]", children: formatUsd(cap.current_spend_usd) }), jsx(TableCell, { className: "p-3 whitespace-nowrap text-[#646464]", children: formatUsd(cap.remaining_usd) }), jsx(TableCell, { className: "p-3", onClick: (e) => e.stopPropagation(), children: jsxs("div", { className: "flex items-center gap-1.5", children: [jsx(CustomSwitch, { checked: cap.enabled, onCheckedChange: (checked) => toggleEnabled(cap, checked), disabled: isSaving || isDeleting, "aria-label": copy.statusToggleAria(displayName), "data-testid": `user-limits-status-switch-${username}` }), cap.is_exceeded && (jsx("span", { className: "rounded-full bg-red-100 px-2 py-0.5 text-[11px] font-medium text-red-700", children: labels.usage.exceededBadge })), cap.enforcement === 'alert_only' && (jsx("span", { className: "rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium text-amber-800", children: labels.usage.alertOnlyBadge }))] }) }), jsx(TableCell, { className: "p-3 text-right", onClick: (e) => e.stopPropagation(), children: jsxs("div", { className: "flex items-center justify-end gap-1", children: [jsx(RowIconAction, { label: copy.editAria(displayName), icon: SlidersHorizontal, onClick: () => openEdit(cap), disabled: isSaving || isDeleting, testId: `user-limits-edit-${username}` }), jsx(RowIconAction, { label: copy.deleteAria(displayName), icon: Trash2, onClick: () => setPendingDelete(cap), disabled: isSaving || isDeleting, className: "hover:text-red-600", testId: `user-limits-delete-${username}` })] }) })] }, cap.id));
|
|
113
|
+
})) })] })) }) }) })] })) })] }), jsx(UserProfileDialog, { tenantKey: tenantKey, username: (_a = profileCap === null || profileCap === void 0 ? void 0 : profileCap.username) !== null && _a !== void 0 ? _a : '', isOpen: profileCap !== null, onClose: () => setProfileCap(null) }), jsx(UserCapModal, { isOpen: isModalOpen, onClose: () => setIsModalOpen(false), cap: editingCap, initialUser: editingCap ? null : userFilter, labels: labels, tenantKey: tenantKey, isSaving: isSaving, onSave: saveCap }), jsx(Dialog, { open: pendingDelete !== null, onOpenChange: () => setPendingDelete(null), children: jsxs(DialogContent, { "aria-describedby": "user-limit-delete-description", "data-testid": "user-limit-delete-modal", children: [jsx(DialogHeader, { children: jsx(DialogTitle, { className: "ibl-dialog-title", children: labels.deleteModal.title }) }), jsx("div", { className: "my-5", id: "user-limit-delete-description", children: jsxs("p", { className: "text-sm text-[#646464]", children: [jsx("span", { className: "font-bold italic", children: pendingDelete ? pendingDelete.email || pendingDelete.username : '' }), ' ', "\u2014 ", labels.deleteModal.description] }) }), jsxs(DialogFooter, { className: "gap-3", children: [jsx(Button, { variant: "outline", onClick: () => setPendingDelete(null), children: labels.deleteModal.cancel }), jsx(Button, { className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", onClick: handleConfirmDelete, disabled: isDeleting, "data-testid": "user-limit-delete-confirm", children: isDeleting ? labels.form.removing : labels.deleteModal.confirm })] })] }) })] }));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { UserLimitsSection };
|
|
117
|
+
//# sourceMappingURL=user-limits-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-limits-section.js","sources":["../../../../../../../src/components/spend-caps/user-limits-section.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiDA;;;;;;;;AAQG;AACG,SAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAA0B,EAAA;;AAC7F,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,MAAM,GAAGA,cAAK,CAAC,OAAO,CAC1B,MAAM,yBAAyB,CAAC,cAAc,EAAE,CAAC,CAAC,EAClD,CAAC,cAAc,EAAE,CAAC,CAAC,CACpB;AACD,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK;AAExC,IAAA,MAAM,CAAC,UAA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