@iblai/iblai-js 2.62.2 → 2.62.4
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/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-history/chat-history-tab.js +5 -8
- package/dist/web-containers/source/chat-history/chat-history-tab.js.map +1 -1
- package/dist/web-containers/source/chat-history-tab.js +5 -8
- package/dist/web-containers/source/chat-history-tab.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/profile/billing.js +9 -3
- package/dist/web-containers/source/components/profile/billing.js.map +1 -1
- package/dist/web-containers/source/components/profile/chat-history/chat-history-tab.js +5 -8
- package/dist/web-containers/source/components/profile/chat-history/chat-history-tab.js.map +1 -1
- package/dist/web-containers/source/components/profile/use-profile.js +32 -56
- package/dist/web-containers/source/components/profile/use-profile.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/components/user-profile-dropdown/index.js +2 -12
- package/dist/web-containers/source/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/en.json.js +44 -3
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +44 -3
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +44 -3
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +44 -3
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +44 -3
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +44 -3
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +44 -3
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +44 -3
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +44 -3
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +44 -3
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +44 -3
- package/dist/web-containers/source/messages/zh.json.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/profile/billing.js +9 -3
- package/dist/web-containers/source/profile/billing.js.map +1 -1
- package/dist/web-containers/source/profile/chat-history/chat-history-tab.js +5 -8
- package/dist/web-containers/source/profile/chat-history/chat-history-tab.js.map +1 -1
- package/dist/web-containers/source/profile/use-profile.js +32 -56
- package/dist/web-containers/source/profile/use-profile.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/tsconfig.build.tsbuildinfo +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-profile.js +32 -56
- package/dist/web-containers/source/use-profile.js.map +1 -1
- 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/user-profile-dropdown/index.js +2 -12
- package/dist/web-containers/source/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +44 -3
- 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
|
@@ -37,7 +37,7 @@ export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSub
|
|
|
37
37
|
export type { GraderCriterionInput, GraderGradingMode, GraderFeedbackMode, GraderSubTab, } from './grader-tab-helpers';
|
|
38
38
|
export { billingPlanSection, billingCreditsSection, billingAutoRechargeSection, getBillingPlanLabel, getBillingAutoRechargeStatus, waitForBillingTabReady, expectBillingPlanSection, expectBillingCreditsSection, expectBillingAutoRechargeSection, expectBillingTabForFreePlan, expectBillingTabForTrialPlan, expectBillingTabForPremiumPlan, expectBillingTabForCurrentPlan, clickBillingUpgrade, clickBillingAddCredits, clickBillingManageBilling, clickBillingManageUsage, } from './billing-tab-helpers';
|
|
39
39
|
export type { BillingAutoRechargeStatus } from './billing-tab-helpers';
|
|
40
|
-
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, } from './spend-limits-helpers';
|
|
40
|
+
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, userLimitsSection, userLimitsRow, newUserDefaultSection, switchToUserLimits, filterUserLimits, clearUserLimitsFilter, clickSetSpendLimitForFilteredUser, addTenantUserSpendLimit, editTenantUserSpendLimit, setUserLimitsRowEnabled, deleteTenantUserSpendLimit, expectUserLimitsRowContent, setNewUserSpendLimitDefault, expectNewUserSpendLimitDefault, } from './spend-limits-helpers';
|
|
41
41
|
export type { SpendLimitSubTab, SpendLimitInterval, SpendLimitEnforcement, SpendLimitInput, UserSpendLimitInput, } from './spend-limits-helpers';
|
|
42
42
|
export { TASKS_LABELS, isTasksTabVisible, switchToTasksTab, getScheduleTaskButton, getSearchInput, getTaskRow, expectTotalTasks, expectCompletedTasks, expectFailedTasks, expectTasksEmpty, expectTaskInList, expectTaskNotInList, selectTaskInList, expectTaskStatus, searchTasks, openScheduleTaskDialog, scheduleTask, expectScheduleStartTimeInPastError, deleteTask, expectLogsForTask, expectNoLogsForSelectedTask, openFirstLogDetails, expectLogDetailsStatus, } from './tasks-tab-helpers';
|
|
43
43
|
export type { TaskRepeat, TaskStatus } from './tasks-tab-helpers';
|
|
@@ -8,8 +8,11 @@ import { Locator, Page } from '@playwright/test';
|
|
|
8
8
|
* three-dots row menu, and the add/edit user-limit modal (email-based
|
|
9
9
|
* user picker), and
|
|
10
10
|
* - the **tenant settings Billing tab** with its "Plan & Credits" /
|
|
11
|
-
* "Spend Limits" tabs
|
|
12
|
-
* (`SpendLimitsSection`
|
|
11
|
+
* "Spend Limits" / "Agent Limits" / "User Limits" tabs: the workspace-wide
|
|
12
|
+
* limit section (`SpendLimitsSection`), the agent caps table
|
|
13
|
+
* (`AgentLimitsSection`), and the per-user caps across all agents plus the
|
|
14
|
+
* default every new member gets (`UserLimitsSection` +
|
|
15
|
+
* `NewUserDefaultSection`), all inside `BillingTab`.
|
|
13
16
|
*
|
|
14
17
|
* Selector policy (flakiness-proof by construction):
|
|
15
18
|
* - Dialog-first scoping: every modal is resolved into a Locator variable
|
|
@@ -42,6 +45,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
42
45
|
readonly planAndCredits: "Plan & Credits";
|
|
43
46
|
readonly spendLimits: "Spend Limits";
|
|
44
47
|
readonly agentLimits: "Agent Limits";
|
|
48
|
+
readonly userLimits: "User Limits";
|
|
45
49
|
};
|
|
46
50
|
/** aria-label of the tenant Billing tab's tablist. */
|
|
47
51
|
readonly tenantTablistAria: "Billing sections";
|
|
@@ -61,6 +65,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
61
65
|
readonly toasts: {
|
|
62
66
|
readonly saved: "Spend limit saved";
|
|
63
67
|
readonly deleted: "Spend limit deleted";
|
|
68
|
+
readonly newUserDefaultSaved: "Default for new users saved";
|
|
64
69
|
};
|
|
65
70
|
readonly intervalOptions: {
|
|
66
71
|
readonly day: "Day";
|
|
@@ -276,3 +281,76 @@ export declare function deleteAgentSpendLimitFromTenantBilling(page: Page, mento
|
|
|
276
281
|
* row rendering in the popup's table.
|
|
277
282
|
*/
|
|
278
283
|
export declare function addUserSpendLimitFromTenantBilling(page: Page, mentorUniqueId: string, values: UserSpendLimitInput): Promise<void>;
|
|
284
|
+
/** The User Limits section card in the tenant Billing tab. */
|
|
285
|
+
export declare function userLimitsSection(page: Page): Locator;
|
|
286
|
+
/** A User Limits table row for the given username. */
|
|
287
|
+
export declare function userLimitsRow(page: Page, username: string): Locator;
|
|
288
|
+
/** The Default for New Users card under the User Limits table. */
|
|
289
|
+
export declare function newUserDefaultSection(page: Page): Locator;
|
|
290
|
+
/**
|
|
291
|
+
* Switch the tenant Billing tab to "User Limits". Assumes the tenant Billing
|
|
292
|
+
* tab is already open. Completion is gated on both cards rendering.
|
|
293
|
+
*/
|
|
294
|
+
export declare function switchToUserLimits(page: Page): Promise<void>;
|
|
295
|
+
/**
|
|
296
|
+
* Filter the User Limits table to one user via the autocomplete: types the
|
|
297
|
+
* email, clicks the matching option (the picker is email-only), and gates on
|
|
298
|
+
* the selected chip.
|
|
299
|
+
*/
|
|
300
|
+
export declare function filterUserLimits(page: Page, email: string): Promise<void>;
|
|
301
|
+
/** Clear the User Limits autocomplete filter (back to the full caps list). */
|
|
302
|
+
export declare function clearUserLimitsFilter(page: Page): Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* With the filter set to a user who has no limit yet, click the empty
|
|
305
|
+
* state's "Set Spend Limit" button and return the opened modal's Locator —
|
|
306
|
+
* it opens straight on the form, with the filtered user already picked.
|
|
307
|
+
*/
|
|
308
|
+
export declare function clickSetSpendLimitForFilteredUser(page: Page): Promise<Locator>;
|
|
309
|
+
/**
|
|
310
|
+
* Create a user's limit across all agents from the tenant User Limits tab:
|
|
311
|
+
* filters to the user by email, opens the modal from the empty state, fills
|
|
312
|
+
* the form and saves. Completion is gated on the modal closing and the
|
|
313
|
+
* user's row rendering after the list refetch.
|
|
314
|
+
*/
|
|
315
|
+
export declare function addTenantUserSpendLimit(page: Page, values: UserSpendLimitInput): Promise<void>;
|
|
316
|
+
/**
|
|
317
|
+
* Edit an existing user limit through its row's edit icon → modal.
|
|
318
|
+
* Completion is gated on the modal closing after the upsert.
|
|
319
|
+
*/
|
|
320
|
+
export declare function editTenantUserSpendLimit(page: Page, username: string, values: SpendLimitInput): Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* Idempotently flip a user limit's Status toggle in the User Limits table
|
|
323
|
+
* (saves immediately). Gates on the saved toast and the switch reflecting
|
|
324
|
+
* the new state after the list refetch.
|
|
325
|
+
*/
|
|
326
|
+
export declare function setUserLimitsRowEnabled(page: Page, username: string, enabled: boolean): Promise<void>;
|
|
327
|
+
/**
|
|
328
|
+
* Delete a user limit through its row's delete icon → confirmation dialog.
|
|
329
|
+
* Completion is gated on the dialog closing, the deleted toast and the row
|
|
330
|
+
* disappearing after the list refetch.
|
|
331
|
+
*/
|
|
332
|
+
export declare function deleteTenantUserSpendLimit(page: Page, username: string): Promise<void>;
|
|
333
|
+
/** Assert the text a User Limits row shows for its limit (e.g. "$25.00 / Month"). */
|
|
334
|
+
export declare function expectUserLimitsRowContent(page: Page, username: string, expected: {
|
|
335
|
+
limitText?: string;
|
|
336
|
+
enabled?: boolean;
|
|
337
|
+
}): Promise<void>;
|
|
338
|
+
/**
|
|
339
|
+
* Save the default spend limit every new member gets (switches to the User
|
|
340
|
+
* Limits tab first). The form sits behind a switch that makes its fields
|
|
341
|
+
* inert while off, so pass `enabled: true` whenever the values must be
|
|
342
|
+
* typed. Completion is gated on the PUT itself resolving OK and then the
|
|
343
|
+
* card's own saved toast: the card shows nothing else after a save (no
|
|
344
|
+
* usage strip, no row), and two saves in a row (turn on, then back off in a
|
|
345
|
+
* test's cleanup) raise the same toast text, so the toast alone could match
|
|
346
|
+
* the earlier save's toast while the later PUT is still in flight.
|
|
347
|
+
*/
|
|
348
|
+
export declare function setNewUserSpendLimitDefault(page: Page, values: SpendLimitInput): Promise<void>;
|
|
349
|
+
/**
|
|
350
|
+
* Assert what the Default for New Users card shows: its switch state and,
|
|
351
|
+
* optionally, the amount in its limit field.
|
|
352
|
+
*/
|
|
353
|
+
export declare function expectNewUserSpendLimitDefault(page: Page, expected: {
|
|
354
|
+
enabled: boolean;
|
|
355
|
+
limitUsd?: number | string;
|
|
356
|
+
}): Promise<void>;
|
|
@@ -37,7 +37,7 @@ export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSub
|
|
|
37
37
|
export type { GraderCriterionInput, GraderGradingMode, GraderFeedbackMode, GraderSubTab, } from './grader-tab-helpers';
|
|
38
38
|
export { billingPlanSection, billingCreditsSection, billingAutoRechargeSection, getBillingPlanLabel, getBillingAutoRechargeStatus, waitForBillingTabReady, expectBillingPlanSection, expectBillingCreditsSection, expectBillingAutoRechargeSection, expectBillingTabForFreePlan, expectBillingTabForTrialPlan, expectBillingTabForPremiumPlan, expectBillingTabForCurrentPlan, clickBillingUpgrade, clickBillingAddCredits, clickBillingManageBilling, clickBillingManageUsage, } from './billing-tab-helpers';
|
|
39
39
|
export type { BillingAutoRechargeStatus } from './billing-tab-helpers';
|
|
40
|
-
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, } from './spend-limits-helpers';
|
|
40
|
+
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, userLimitsSection, userLimitsRow, newUserDefaultSection, switchToUserLimits, filterUserLimits, clearUserLimitsFilter, clickSetSpendLimitForFilteredUser, addTenantUserSpendLimit, editTenantUserSpendLimit, setUserLimitsRowEnabled, deleteTenantUserSpendLimit, expectUserLimitsRowContent, setNewUserSpendLimitDefault, expectNewUserSpendLimitDefault, } from './spend-limits-helpers';
|
|
41
41
|
export type { SpendLimitSubTab, SpendLimitInterval, SpendLimitEnforcement, SpendLimitInput, UserSpendLimitInput, } from './spend-limits-helpers';
|
|
42
42
|
export { TASKS_LABELS, isTasksTabVisible, switchToTasksTab, getScheduleTaskButton, getSearchInput, getTaskRow, expectTotalTasks, expectCompletedTasks, expectFailedTasks, expectTasksEmpty, expectTaskInList, expectTaskNotInList, selectTaskInList, expectTaskStatus, searchTasks, openScheduleTaskDialog, scheduleTask, expectScheduleStartTimeInPastError, deleteTask, expectLogsForTask, expectNoLogsForSelectedTask, openFirstLogDetails, expectLogDetailsStatus, } from './tasks-tab-helpers';
|
|
43
43
|
export type { TaskRepeat, TaskStatus } from './tasks-tab-helpers';
|
|
@@ -8,8 +8,11 @@ import { Locator, Page } from '@playwright/test';
|
|
|
8
8
|
* three-dots row menu, and the add/edit user-limit modal (email-based
|
|
9
9
|
* user picker), and
|
|
10
10
|
* - the **tenant settings Billing tab** with its "Plan & Credits" /
|
|
11
|
-
* "Spend Limits" tabs
|
|
12
|
-
* (`SpendLimitsSection`
|
|
11
|
+
* "Spend Limits" / "Agent Limits" / "User Limits" tabs: the workspace-wide
|
|
12
|
+
* limit section (`SpendLimitsSection`), the agent caps table
|
|
13
|
+
* (`AgentLimitsSection`), and the per-user caps across all agents plus the
|
|
14
|
+
* default every new member gets (`UserLimitsSection` +
|
|
15
|
+
* `NewUserDefaultSection`), all inside `BillingTab`.
|
|
13
16
|
*
|
|
14
17
|
* Selector policy (flakiness-proof by construction):
|
|
15
18
|
* - Dialog-first scoping: every modal is resolved into a Locator variable
|
|
@@ -42,6 +45,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
42
45
|
readonly planAndCredits: "Plan & Credits";
|
|
43
46
|
readonly spendLimits: "Spend Limits";
|
|
44
47
|
readonly agentLimits: "Agent Limits";
|
|
48
|
+
readonly userLimits: "User Limits";
|
|
45
49
|
};
|
|
46
50
|
/** aria-label of the tenant Billing tab's tablist. */
|
|
47
51
|
readonly tenantTablistAria: "Billing sections";
|
|
@@ -61,6 +65,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
61
65
|
readonly toasts: {
|
|
62
66
|
readonly saved: "Spend limit saved";
|
|
63
67
|
readonly deleted: "Spend limit deleted";
|
|
68
|
+
readonly newUserDefaultSaved: "Default for new users saved";
|
|
64
69
|
};
|
|
65
70
|
readonly intervalOptions: {
|
|
66
71
|
readonly day: "Day";
|
|
@@ -276,3 +281,76 @@ export declare function deleteAgentSpendLimitFromTenantBilling(page: Page, mento
|
|
|
276
281
|
* row rendering in the popup's table.
|
|
277
282
|
*/
|
|
278
283
|
export declare function addUserSpendLimitFromTenantBilling(page: Page, mentorUniqueId: string, values: UserSpendLimitInput): Promise<void>;
|
|
284
|
+
/** The User Limits section card in the tenant Billing tab. */
|
|
285
|
+
export declare function userLimitsSection(page: Page): Locator;
|
|
286
|
+
/** A User Limits table row for the given username. */
|
|
287
|
+
export declare function userLimitsRow(page: Page, username: string): Locator;
|
|
288
|
+
/** The Default for New Users card under the User Limits table. */
|
|
289
|
+
export declare function newUserDefaultSection(page: Page): Locator;
|
|
290
|
+
/**
|
|
291
|
+
* Switch the tenant Billing tab to "User Limits". Assumes the tenant Billing
|
|
292
|
+
* tab is already open. Completion is gated on both cards rendering.
|
|
293
|
+
*/
|
|
294
|
+
export declare function switchToUserLimits(page: Page): Promise<void>;
|
|
295
|
+
/**
|
|
296
|
+
* Filter the User Limits table to one user via the autocomplete: types the
|
|
297
|
+
* email, clicks the matching option (the picker is email-only), and gates on
|
|
298
|
+
* the selected chip.
|
|
299
|
+
*/
|
|
300
|
+
export declare function filterUserLimits(page: Page, email: string): Promise<void>;
|
|
301
|
+
/** Clear the User Limits autocomplete filter (back to the full caps list). */
|
|
302
|
+
export declare function clearUserLimitsFilter(page: Page): Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* With the filter set to a user who has no limit yet, click the empty
|
|
305
|
+
* state's "Set Spend Limit" button and return the opened modal's Locator —
|
|
306
|
+
* it opens straight on the form, with the filtered user already picked.
|
|
307
|
+
*/
|
|
308
|
+
export declare function clickSetSpendLimitForFilteredUser(page: Page): Promise<Locator>;
|
|
309
|
+
/**
|
|
310
|
+
* Create a user's limit across all agents from the tenant User Limits tab:
|
|
311
|
+
* filters to the user by email, opens the modal from the empty state, fills
|
|
312
|
+
* the form and saves. Completion is gated on the modal closing and the
|
|
313
|
+
* user's row rendering after the list refetch.
|
|
314
|
+
*/
|
|
315
|
+
export declare function addTenantUserSpendLimit(page: Page, values: UserSpendLimitInput): Promise<void>;
|
|
316
|
+
/**
|
|
317
|
+
* Edit an existing user limit through its row's edit icon → modal.
|
|
318
|
+
* Completion is gated on the modal closing after the upsert.
|
|
319
|
+
*/
|
|
320
|
+
export declare function editTenantUserSpendLimit(page: Page, username: string, values: SpendLimitInput): Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* Idempotently flip a user limit's Status toggle in the User Limits table
|
|
323
|
+
* (saves immediately). Gates on the saved toast and the switch reflecting
|
|
324
|
+
* the new state after the list refetch.
|
|
325
|
+
*/
|
|
326
|
+
export declare function setUserLimitsRowEnabled(page: Page, username: string, enabled: boolean): Promise<void>;
|
|
327
|
+
/**
|
|
328
|
+
* Delete a user limit through its row's delete icon → confirmation dialog.
|
|
329
|
+
* Completion is gated on the dialog closing, the deleted toast and the row
|
|
330
|
+
* disappearing after the list refetch.
|
|
331
|
+
*/
|
|
332
|
+
export declare function deleteTenantUserSpendLimit(page: Page, username: string): Promise<void>;
|
|
333
|
+
/** Assert the text a User Limits row shows for its limit (e.g. "$25.00 / Month"). */
|
|
334
|
+
export declare function expectUserLimitsRowContent(page: Page, username: string, expected: {
|
|
335
|
+
limitText?: string;
|
|
336
|
+
enabled?: boolean;
|
|
337
|
+
}): Promise<void>;
|
|
338
|
+
/**
|
|
339
|
+
* Save the default spend limit every new member gets (switches to the User
|
|
340
|
+
* Limits tab first). The form sits behind a switch that makes its fields
|
|
341
|
+
* inert while off, so pass `enabled: true` whenever the values must be
|
|
342
|
+
* typed. Completion is gated on the PUT itself resolving OK and then the
|
|
343
|
+
* card's own saved toast: the card shows nothing else after a save (no
|
|
344
|
+
* usage strip, no row), and two saves in a row (turn on, then back off in a
|
|
345
|
+
* test's cleanup) raise the same toast text, so the toast alone could match
|
|
346
|
+
* the earlier save's toast while the later PUT is still in flight.
|
|
347
|
+
*/
|
|
348
|
+
export declare function setNewUserSpendLimitDefault(page: Page, values: SpendLimitInput): Promise<void>;
|
|
349
|
+
/**
|
|
350
|
+
* Assert what the Default for New Users card shows: its switch state and,
|
|
351
|
+
* optionally, the amount in its limit field.
|
|
352
|
+
*/
|
|
353
|
+
export declare function expectNewUserSpendLimitDefault(page: Page, expected: {
|
|
354
|
+
enabled: boolean;
|
|
355
|
+
limitUsd?: number | string;
|
|
356
|
+
}): Promise<void>;
|
|
@@ -37,7 +37,7 @@ export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSub
|
|
|
37
37
|
export type { GraderCriterionInput, GraderGradingMode, GraderFeedbackMode, GraderSubTab, } from './grader-tab-helpers';
|
|
38
38
|
export { billingPlanSection, billingCreditsSection, billingAutoRechargeSection, getBillingPlanLabel, getBillingAutoRechargeStatus, waitForBillingTabReady, expectBillingPlanSection, expectBillingCreditsSection, expectBillingAutoRechargeSection, expectBillingTabForFreePlan, expectBillingTabForTrialPlan, expectBillingTabForPremiumPlan, expectBillingTabForCurrentPlan, clickBillingUpgrade, clickBillingAddCredits, clickBillingManageBilling, clickBillingManageUsage, } from './billing-tab-helpers';
|
|
39
39
|
export type { BillingAutoRechargeStatus } from './billing-tab-helpers';
|
|
40
|
-
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, } from './spend-limits-helpers';
|
|
40
|
+
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, userLimitsSection, userLimitsRow, newUserDefaultSection, switchToUserLimits, filterUserLimits, clearUserLimitsFilter, clickSetSpendLimitForFilteredUser, addTenantUserSpendLimit, editTenantUserSpendLimit, setUserLimitsRowEnabled, deleteTenantUserSpendLimit, expectUserLimitsRowContent, setNewUserSpendLimitDefault, expectNewUserSpendLimitDefault, } from './spend-limits-helpers';
|
|
41
41
|
export type { SpendLimitSubTab, SpendLimitInterval, SpendLimitEnforcement, SpendLimitInput, UserSpendLimitInput, } from './spend-limits-helpers';
|
|
42
42
|
export { TASKS_LABELS, isTasksTabVisible, switchToTasksTab, getScheduleTaskButton, getSearchInput, getTaskRow, expectTotalTasks, expectCompletedTasks, expectFailedTasks, expectTasksEmpty, expectTaskInList, expectTaskNotInList, selectTaskInList, expectTaskStatus, searchTasks, openScheduleTaskDialog, scheduleTask, expectScheduleStartTimeInPastError, deleteTask, expectLogsForTask, expectNoLogsForSelectedTask, openFirstLogDetails, expectLogDetailsStatus, } from './tasks-tab-helpers';
|
|
43
43
|
export type { TaskRepeat, TaskStatus } from './tasks-tab-helpers';
|
|
@@ -8,8 +8,11 @@ import { Locator, Page } from '@playwright/test';
|
|
|
8
8
|
* three-dots row menu, and the add/edit user-limit modal (email-based
|
|
9
9
|
* user picker), and
|
|
10
10
|
* - the **tenant settings Billing tab** with its "Plan & Credits" /
|
|
11
|
-
* "Spend Limits" tabs
|
|
12
|
-
* (`SpendLimitsSection`
|
|
11
|
+
* "Spend Limits" / "Agent Limits" / "User Limits" tabs: the workspace-wide
|
|
12
|
+
* limit section (`SpendLimitsSection`), the agent caps table
|
|
13
|
+
* (`AgentLimitsSection`), and the per-user caps across all agents plus the
|
|
14
|
+
* default every new member gets (`UserLimitsSection` +
|
|
15
|
+
* `NewUserDefaultSection`), all inside `BillingTab`.
|
|
13
16
|
*
|
|
14
17
|
* Selector policy (flakiness-proof by construction):
|
|
15
18
|
* - Dialog-first scoping: every modal is resolved into a Locator variable
|
|
@@ -42,6 +45,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
42
45
|
readonly planAndCredits: "Plan & Credits";
|
|
43
46
|
readonly spendLimits: "Spend Limits";
|
|
44
47
|
readonly agentLimits: "Agent Limits";
|
|
48
|
+
readonly userLimits: "User Limits";
|
|
45
49
|
};
|
|
46
50
|
/** aria-label of the tenant Billing tab's tablist. */
|
|
47
51
|
readonly tenantTablistAria: "Billing sections";
|
|
@@ -61,6 +65,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
61
65
|
readonly toasts: {
|
|
62
66
|
readonly saved: "Spend limit saved";
|
|
63
67
|
readonly deleted: "Spend limit deleted";
|
|
68
|
+
readonly newUserDefaultSaved: "Default for new users saved";
|
|
64
69
|
};
|
|
65
70
|
readonly intervalOptions: {
|
|
66
71
|
readonly day: "Day";
|
|
@@ -276,3 +281,76 @@ export declare function deleteAgentSpendLimitFromTenantBilling(page: Page, mento
|
|
|
276
281
|
* row rendering in the popup's table.
|
|
277
282
|
*/
|
|
278
283
|
export declare function addUserSpendLimitFromTenantBilling(page: Page, mentorUniqueId: string, values: UserSpendLimitInput): Promise<void>;
|
|
284
|
+
/** The User Limits section card in the tenant Billing tab. */
|
|
285
|
+
export declare function userLimitsSection(page: Page): Locator;
|
|
286
|
+
/** A User Limits table row for the given username. */
|
|
287
|
+
export declare function userLimitsRow(page: Page, username: string): Locator;
|
|
288
|
+
/** The Default for New Users card under the User Limits table. */
|
|
289
|
+
export declare function newUserDefaultSection(page: Page): Locator;
|
|
290
|
+
/**
|
|
291
|
+
* Switch the tenant Billing tab to "User Limits". Assumes the tenant Billing
|
|
292
|
+
* tab is already open. Completion is gated on both cards rendering.
|
|
293
|
+
*/
|
|
294
|
+
export declare function switchToUserLimits(page: Page): Promise<void>;
|
|
295
|
+
/**
|
|
296
|
+
* Filter the User Limits table to one user via the autocomplete: types the
|
|
297
|
+
* email, clicks the matching option (the picker is email-only), and gates on
|
|
298
|
+
* the selected chip.
|
|
299
|
+
*/
|
|
300
|
+
export declare function filterUserLimits(page: Page, email: string): Promise<void>;
|
|
301
|
+
/** Clear the User Limits autocomplete filter (back to the full caps list). */
|
|
302
|
+
export declare function clearUserLimitsFilter(page: Page): Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* With the filter set to a user who has no limit yet, click the empty
|
|
305
|
+
* state's "Set Spend Limit" button and return the opened modal's Locator —
|
|
306
|
+
* it opens straight on the form, with the filtered user already picked.
|
|
307
|
+
*/
|
|
308
|
+
export declare function clickSetSpendLimitForFilteredUser(page: Page): Promise<Locator>;
|
|
309
|
+
/**
|
|
310
|
+
* Create a user's limit across all agents from the tenant User Limits tab:
|
|
311
|
+
* filters to the user by email, opens the modal from the empty state, fills
|
|
312
|
+
* the form and saves. Completion is gated on the modal closing and the
|
|
313
|
+
* user's row rendering after the list refetch.
|
|
314
|
+
*/
|
|
315
|
+
export declare function addTenantUserSpendLimit(page: Page, values: UserSpendLimitInput): Promise<void>;
|
|
316
|
+
/**
|
|
317
|
+
* Edit an existing user limit through its row's edit icon → modal.
|
|
318
|
+
* Completion is gated on the modal closing after the upsert.
|
|
319
|
+
*/
|
|
320
|
+
export declare function editTenantUserSpendLimit(page: Page, username: string, values: SpendLimitInput): Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* Idempotently flip a user limit's Status toggle in the User Limits table
|
|
323
|
+
* (saves immediately). Gates on the saved toast and the switch reflecting
|
|
324
|
+
* the new state after the list refetch.
|
|
325
|
+
*/
|
|
326
|
+
export declare function setUserLimitsRowEnabled(page: Page, username: string, enabled: boolean): Promise<void>;
|
|
327
|
+
/**
|
|
328
|
+
* Delete a user limit through its row's delete icon → confirmation dialog.
|
|
329
|
+
* Completion is gated on the dialog closing, the deleted toast and the row
|
|
330
|
+
* disappearing after the list refetch.
|
|
331
|
+
*/
|
|
332
|
+
export declare function deleteTenantUserSpendLimit(page: Page, username: string): Promise<void>;
|
|
333
|
+
/** Assert the text a User Limits row shows for its limit (e.g. "$25.00 / Month"). */
|
|
334
|
+
export declare function expectUserLimitsRowContent(page: Page, username: string, expected: {
|
|
335
|
+
limitText?: string;
|
|
336
|
+
enabled?: boolean;
|
|
337
|
+
}): Promise<void>;
|
|
338
|
+
/**
|
|
339
|
+
* Save the default spend limit every new member gets (switches to the User
|
|
340
|
+
* Limits tab first). The form sits behind a switch that makes its fields
|
|
341
|
+
* inert while off, so pass `enabled: true` whenever the values must be
|
|
342
|
+
* typed. Completion is gated on the PUT itself resolving OK and then the
|
|
343
|
+
* card's own saved toast: the card shows nothing else after a save (no
|
|
344
|
+
* usage strip, no row), and two saves in a row (turn on, then back off in a
|
|
345
|
+
* test's cleanup) raise the same toast text, so the toast alone could match
|
|
346
|
+
* the earlier save's toast while the later PUT is still in flight.
|
|
347
|
+
*/
|
|
348
|
+
export declare function setNewUserSpendLimitDefault(page: Page, values: SpendLimitInput): Promise<void>;
|
|
349
|
+
/**
|
|
350
|
+
* Assert what the Default for New Users card shows: its switch state and,
|
|
351
|
+
* optionally, the amount in its limit field.
|
|
352
|
+
*/
|
|
353
|
+
export declare function expectNewUserSpendLimitDefault(page: Page, expected: {
|
|
354
|
+
enabled: boolean;
|
|
355
|
+
limitUsd?: number | string;
|
|
356
|
+
}): Promise<void>;
|
|
@@ -12,14 +12,12 @@ import { Spinner } from '../spinner/index.js';
|
|
|
12
12
|
import { useT } from '../../i18n/context.js';
|
|
13
13
|
import '../../packages/i18n/dist/index.esm.js';
|
|
14
14
|
import { resolveSpendCapsTabLabels } from './labels.js';
|
|
15
|
+
import { RowIconAction } from './row-icon-action.js';
|
|
15
16
|
import { SearchSelect } from './search-select.js';
|
|
16
|
-
import { formatUsd } from './utils.js';
|
|
17
|
+
import { errorStatus, formatUsd } from './utils.js';
|
|
17
18
|
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';
|
|
18
19
|
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';
|
|
19
20
|
|
|
20
|
-
function errorStatus(error) {
|
|
21
|
-
return error === null || error === void 0 ? void 0 : error.status;
|
|
22
|
-
}
|
|
23
21
|
/**
|
|
24
22
|
* Tenant-settings Billing "Agent Limits" tab: every configured agent spend
|
|
25
23
|
* cap in the workspace from the tenant-wide list endpoint (no per-agent
|
|
@@ -83,7 +81,7 @@ function AgentLimitsSection({ tenantKey, username, labels: labelsOverride, }) {
|
|
|
83
81
|
var _a;
|
|
84
82
|
const uniqueId = (_a = cap.mentor_unique_id) !== null && _a !== void 0 ? _a : '';
|
|
85
83
|
const name = cap.mentor_name || uniqueId;
|
|
86
|
-
return (jsxs(TableRow, { className: "border-b last:border-0", "data-testid": `agent-limits-row-${uniqueId}`, children: [jsx(TableCell, { className: "max-w-[240px] truncate p-3 font-medium whitespace-nowrap text-[#646464]", children: name }), 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", children: jsxs("div", { className: "flex items-center gap-1.5", children: [jsx(CustomSwitch, { checked: cap.enabled, onCheckedChange: (checked) => toggleEnabled(cap, checked), disabled: isSavingCap, "aria-label": labels.tenantSections.agents.statusToggleAria(name), "data-testid": `agent-limits-status-switch-${uniqueId}` }), 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", children: jsx(
|
|
84
|
+
return (jsxs(TableRow, { className: "border-b last:border-0", "data-testid": `agent-limits-row-${uniqueId}`, children: [jsx(TableCell, { className: "max-w-[240px] truncate p-3 font-medium whitespace-nowrap text-[#646464]", children: name }), 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", children: jsxs("div", { className: "flex items-center gap-1.5", children: [jsx(CustomSwitch, { checked: cap.enabled, onCheckedChange: (checked) => toggleEnabled(cap, checked), disabled: isSavingCap, "aria-label": labels.tenantSections.agents.statusToggleAria(name), "data-testid": `agent-limits-status-switch-${uniqueId}` }), 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", children: jsx(RowIconAction, { label: labels.tenantSections.agents.manageAria(name), icon: SlidersHorizontal, onClick: () => setSelectedAgent({ uniqueId, name }), testId: `agent-limits-manage-${uniqueId}` }) })] }, cap.id));
|
|
87
85
|
})) })] })) }) }) })] })) })] }), jsx(Dialog, { open: selectedAgent !== null, onOpenChange: () => setSelectedAgent(null), children: jsxs(DialogContent, { "aria-describedby": undefined, "data-testid": "agent-limits-modal",
|
|
88
86
|
// Content-driven height (capped at 90vh) — the tab itself locks its
|
|
89
87
|
// sub-tabs to a shared height so switching doesn't shift the dialog.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-limits-section.js","sources":["../../../../../../../src/components/spend-caps/agent-limits-section.tsx"],"sourcesContent":[null],"names":["React","useDebounce","_jsxs","_Fragment","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-limits-section.js","sources":["../../../../../../../src/components/spend-caps/agent-limits-section.tsx"],"sourcesContent":[null],"names":["React","useDebounce","_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkDA;;;;;;;AAOG;AACG,SAAU,kBAAkB,CAAC,EACjC,SAAS,EACT,QAAQ,EACR,MAAM,EAAE,cAAc,GACE,EAAA;;AACxB,IAAA,MAAM,CAAC,GAAG,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b,aAAa,CAAE,IAAI,EAAA,CAAe,EAAA,CAChE,EACfA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,8CAA8C,EAAA,QAAA,EAC1D,aAAa,KACZA,GAAA,CAAC,iBAAiB,EAAA,EAChB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAChC,eAAe,EAAC,MAAM,EACtB,aAAa,EAAC,mBAAmB,EAAA,CACjC,CACH,EAAA,CACG,CAAA,EAAA,CACQ,EAAA,CACT,CAAA,EAAA,CACR;AAEP;;;;"}
|
|
@@ -14,6 +14,8 @@ import { CardInfoIcon } from '../analytics/card-info-icon.js';
|
|
|
14
14
|
import { cn } from '../../lib/utils.js';
|
|
15
15
|
import { SpendLimitsSection } from '../spend-caps/spend-limits-section.js';
|
|
16
16
|
import { AgentLimitsSection } from '../spend-caps/agent-limits-section.js';
|
|
17
|
+
import { UserLimitsSection } from '../spend-caps/user-limits-section.js';
|
|
18
|
+
import { NewUserDefaultSection } from '../spend-caps/new-user-default-section.js';
|
|
17
19
|
import { resolveCreditsPerUsd, resolveCreditsPerUsdFromTransactions, resolveAvailableCreditsUsd, formatCreditsPerUsd } from './billing-credits.js';
|
|
18
20
|
import LoaderCircle from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js';
|
|
19
21
|
import Sparkles from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sparkles.js';
|
|
@@ -171,13 +173,17 @@ function BillingTab({ tenant, userActiveApp = null, username, mainPlatformKey, c
|
|
|
171
173
|
}
|
|
172
174
|
return t('profileBilling.manageSubscriptionAndBilling');
|
|
173
175
|
})();
|
|
174
|
-
return (jsxs("div", { className: "container mx-auto max-w-7xl !mt-0", children: [jsxs(Tabs, { defaultValue: "plan", "aria-label": t('profileBilling.billingTabsAriaLabel'), children: [jsxs(TabsList, { "aria-label": t('profileBilling.billingTabsAriaLabel'), className: "max-w-full overflow-x-auto justify-start px-1", children: [jsx(TabsTrigger, { value: "plan", children: t('profileBilling.tabPlanAndCredits') }), jsx(TabsTrigger, { value: "spend-limits", children: t('profileBilling.tabSpendLimits') }), jsx(TabsTrigger, { value: "agent-limits", children: t('profileBilling.tabAgentLimits') })] }), jsx(TabsContent, { className: "mt-4", value: "plan", children: jsxs("div", { className: "space-y-4", children: [jsxs("div", { className: "grid grid-cols-1 items-start gap-4 lg:grid-cols-3", children: [jsx(Section, { title: t('profileBilling.planSectionTitle'), testId: "billing-plan-section", description: planDescription, className: "lg:col-span-1 lg:h-full", action: isFreePlan || isTrialPlan ? (jsxs(Button, { onClick: () => handleUpgrade('premium'), disabled: isUpgrading, className: "h-9 px-4 text-[14px] font-medium text-white bg-gradient-to-r from-[rgb(56,161,229)] to-[rgb(114,132,255)] hover:opacity-90 disabled:opacity-70", children: [isUpgrading ? (jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" })) : (jsx(Sparkles, { className: "h-4 w-4" })), isUpgrading ? t('profileBilling.redirecting') : t('profileBilling.upgrade')] })) : undefined, children: jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { "data-testid": "billing-plan-label", className: "text-[18px] font-semibold leading-7 text-[#101828] dark:text-gray-100", children: planLabel }), jsx("span", { className: "rounded-full px-2.5 py-0.5 text-[12px] font-medium", style: {
|
|
176
|
+
return (jsxs("div", { className: "container mx-auto max-w-7xl !mt-0", children: [jsxs(Tabs, { defaultValue: "plan", "aria-label": t('profileBilling.billingTabsAriaLabel'), children: [jsxs(TabsList, { "aria-label": t('profileBilling.billingTabsAriaLabel'), className: "max-w-full overflow-x-auto justify-start px-1", children: [jsx(TabsTrigger, { value: "plan", children: t('profileBilling.tabPlanAndCredits') }), jsx(TabsTrigger, { value: "spend-limits", children: t('profileBilling.tabSpendLimits') }), jsx(TabsTrigger, { value: "agent-limits", children: t('profileBilling.tabAgentLimits') }), jsx(TabsTrigger, { value: "user-limits", children: t('profileBilling.tabUserLimits') })] }), jsx(TabsContent, { className: "mt-4", value: "plan", children: jsxs("div", { className: "space-y-4", children: [jsxs("div", { className: "grid grid-cols-1 items-start gap-4 lg:grid-cols-3", children: [jsx(Section, { title: t('profileBilling.planSectionTitle'), testId: "billing-plan-section", description: planDescription, className: "lg:col-span-1 lg:h-full", action: isFreePlan || isTrialPlan ? (jsxs(Button, { onClick: () => handleUpgrade('premium'), disabled: isUpgrading, className: "h-9 px-4 text-[14px] font-medium text-white bg-gradient-to-r from-[rgb(56,161,229)] to-[rgb(114,132,255)] hover:opacity-90 disabled:opacity-70", children: [isUpgrading ? (jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" })) : (jsx(Sparkles, { className: "h-4 w-4" })), isUpgrading ? t('profileBilling.redirecting') : t('profileBilling.upgrade')] })) : undefined, children: jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { "data-testid": "billing-plan-label", className: "text-[18px] font-semibold leading-7 text-[#101828] dark:text-gray-100", children: planLabel }), jsx("span", { className: "rounded-full px-2.5 py-0.5 text-[12px] font-medium", style: {
|
|
175
177
|
backgroundColor: '#f5f8ff',
|
|
176
178
|
color: '#155dfc',
|
|
177
179
|
border: '1px solid #d0e0ff',
|
|
178
180
|
}, children: t('profileBilling.currentBadge') })] }) }), jsx(Section, { title: t('profileBilling.creditsSectionTitle'), testId: "billing-credits-section", description: t('profileBilling.creditsDescription'), className: "lg:col-span-2 lg:h-full", action: isFreePlan || isTrialPlan ? undefined : hasPaymentMethod ? (jsx(Button, { variant: "outline", onClick: () => setIsAddCreditsModalOpen(true), className: "h-9 px-4 text-[14px] font-medium", children: t('profileBilling.addCredits') })) : (jsxs(Button, { onClick: handleSetupPaymentMethod, disabled: isRedirectingToPaymentSettings, className: "h-9 px-4 text-[14px] font-medium bg-gradient-to-r from-[#2563EB] to-[#93C5FD] hover:opacity-90 text-white", children: [isRedirectingToPaymentSettings ? (jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" })) : (jsx(Wallet, { className: "h-4 w-4" })), isRedirectingToPaymentSettings
|
|
179
181
|
? t('profileBilling.redirecting')
|
|
180
|
-
: t('profileBilling.manageBilling')] })), children: jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [jsx(Stat, { label: t('profileBilling.availableLabel'), value: t('profileBilling.creditsUnit', {
|
|
182
|
+
: t('profileBilling.manageBilling')] })), children: jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [jsx(Stat, { label: t('profileBilling.availableLabel'), value: t('profileBilling.creditsUnit', {
|
|
183
|
+
amount: formatCredits(availableCredits),
|
|
184
|
+
}), hint: availableCreditsHint }), consumedCredits != null && (jsx(Stat, { label: t('profileBilling.consumedLabel'), value: t('profileBilling.creditsUnit', {
|
|
185
|
+
amount: formatCredits(consumedCredits),
|
|
186
|
+
}), info: t('profileBilling.usedThisPeriod') })), (billing === null || billing === void 0 ? void 0 : billing.credits_reset_date) && (jsx(Stat, { label: t('profileBilling.resetsOnLabel'), value: formatRenewalDate(billing.credits_reset_date), info: t('profileBilling.nextResetDate') }))] }) })] }), !isFreePlan && !isTrialPlan && hasPaymentMethod && (jsx(Section, { title: t('profileBilling.autoRechargeSectionTitle'), testId: "billing-auto-recharge-section", description: t('profileBilling.autoRechargeDescription'), action: jsxs("div", { className: "flex items-center gap-3", children: [jsx("span", { "data-testid": "billing-auto-recharge-status", className: "rounded-full px-2.5 py-0.5 text-[12px] font-medium", style: {
|
|
181
187
|
backgroundColor: isAutoRechargeEnabled ? '#f5f8ff' : '#f3f4f6',
|
|
182
188
|
color: isAutoRechargeEnabled ? '#155dfc' : '#6a7282',
|
|
183
189
|
border: `1px solid ${isAutoRechargeEnabled ? '#d0e0ff' : '#e5e7eb'}`,
|
|
@@ -185,7 +191,7 @@ function BillingTab({ tenant, userActiveApp = null, username, mainPlatformKey, c
|
|
|
185
191
|
? t('profileBilling.enabled')
|
|
186
192
|
: t('profileBilling.disabled') }), jsx(Button, { variant: "outline", onClick: () => setIsAutoRechargeModalOpen(true), className: "h-9 px-4 text-[14px] font-medium", children: t('profileBilling.manageUsage') })] }), children: isAutoRechargeEnabled ? (jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [jsx(Stat, { label: t('profileBilling.thresholdLabel'), value: formatUsd(billing === null || billing === void 0 ? void 0 : billing.auto_recharge_threshold_usd), info: t('profileBilling.thresholdHint') }), jsx(Stat, { label: t('profileBilling.rechargeAmountLabel'), value: formatUsd(billing === null || billing === void 0 ? void 0 : billing.auto_recharge_amount_usd), info: t('profileBilling.rechargeAmountHint') }), jsx(Stat, { label: t('profileBilling.spendingLimitLabel'), value: isUnlimitedSpendingLimit
|
|
187
193
|
? t('profileBilling.unlimited')
|
|
188
|
-
: formatUsd(spendingLimitRaw), info: t('profileBilling.spendingLimitHint') })] })) : (jsx("p", { className: "text-[14px] font-normal leading-5 text-[#4a5565] dark:text-gray-400", children: t('profileBilling.autoRechargeDisabledMessage') })) }))] }) }), jsx(TabsContent, { className: "mt-4", value: "spend-limits", children: jsx(SpendLimitsSection, { tenantKey: tenant }) }), jsx(TabsContent, { className: "mt-4", value: "agent-limits", children: jsx(AgentLimitsSection, { tenantKey: tenant, username: username }) })] }), jsx(AutoRechargeModal, { tenant: tenant, isOpen: isAutoRechargeModalOpen, onClose: () => setIsAutoRechargeModalOpen(false) }), jsx(AddCreditsModal, { tenant: tenant, isOpen: isAddCreditsModalOpen, onClose: () => setIsAddCreditsModalOpen(false) })] }));
|
|
194
|
+
: formatUsd(spendingLimitRaw), info: t('profileBilling.spendingLimitHint') })] })) : (jsx("p", { className: "text-[14px] font-normal leading-5 text-[#4a5565] dark:text-gray-400", children: t('profileBilling.autoRechargeDisabledMessage') })) }))] }) }), jsx(TabsContent, { className: "mt-4", value: "spend-limits", children: jsx(SpendLimitsSection, { tenantKey: tenant }) }), jsx(TabsContent, { className: "mt-4", value: "agent-limits", children: jsx(AgentLimitsSection, { tenantKey: tenant, username: username }) }), jsx(TabsContent, { className: "mt-4", value: "user-limits", children: jsxs("div", { className: "space-y-4", children: [jsx(UserLimitsSection, { tenantKey: tenant }), jsx(NewUserDefaultSection, { tenantKey: tenant })] }) })] }), jsx(AutoRechargeModal, { tenant: tenant, isOpen: isAutoRechargeModalOpen, onClose: () => setIsAutoRechargeModalOpen(false) }), jsx(AddCreditsModal, { tenant: tenant, isOpen: isAddCreditsModalOpen, onClose: () => setIsAddCreditsModalOpen(false) })] }));
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
export { BillingTab as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sources":["../../../../../../../src/components/profile/billing.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","Loader2"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA6BA,SAAS,aAAa,CAAC,OAAkC,EAAA;AACvD,IAAA,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAAE,QAAA,OAAO,GAAG;AAClF,IAAA,OAAO,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC;AACxC;AAEA,SAAS,iBAAiB,CAAC,UAAkB,EAAA;IAC3C,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;AACtD,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA,CAAC;AACJ;AAEA,SAAS,gBAAgB,CAAC,UAAkB,EAAA;AAC1C,IAAA,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC;AACpC,IAAA,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE;IACtB,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE;AAClD,IAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAA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AkB,EAAA,EAAC,SAAS,EAAE,MAAM,EAAA,CAAI,EAAA,CAC7B,EAIdA,GAAA,CAAC,WAAW,EAAA,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc,EAAA,QAAA,EAChDA,GAAA,CAAC,kBAAkB,EAAA,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,EAAA,CACjD,CAAA,EAAA,CACT,EAEPA,GAAA,CAAC,iBAAiB,EAAA,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uBAAuB,EAC/B,OAAO,EAAE,MAAM,0BAA0B,CAAC,KAAK,CAAC,EAAA,CAChD,EAEFA,GAAA,CAAC,eAAe,EAAA,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,MAAM,wBAAwB,CAAC,KAAK,CAAC,EAAA,CAC9C,CAAA,EAAA,CACE;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"billing.js","sources":["../../../../../../../src/components/profile/billing.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","Loader2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAS,aAAa,CAAC,OAAkC,EAAA;AACvD,IAAA,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAAE,QAAA,OAAO,GAAG;AAClF,IAAA,OAAO,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC;AACxC;AAEA,SAAS,iBAAiB,CAAC,UAAkB,EAAA;IAC3C,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;AACtD,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA,CAAC;AACJ;AAEA,SAAS,gBAAgB,CAAC,UAAkB,EAAA;AAC1C,I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