agentic-ui-libs 1.1.0-beta.-1.0 → 1.1.0-beta.10
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/assets/agentic-ui-libs.css +1117 -537
- package/dist/features/dashboard/Dashboard.d.ts.map +1 -1
- package/dist/features/tracing/components/SessionsList.d.ts.map +1 -1
- package/dist/features/tracing/components/TracesList.d.ts.map +1 -1
- package/dist/features/tracing/components/detail/DetailPage.d.ts.map +1 -1
- package/dist/features/tracing/components/detail/ObservationNode.d.ts.map +1 -1
- package/dist/features/tracing/components/detail/TraceTree.d.ts.map +1 -1
- package/dist/features/tracing/components/shared/ColumnCustomization.d.ts +1 -1
- package/dist/features/tracing/components/shared/ColumnCustomization.d.ts.map +1 -1
- package/dist/features/tracing/components/shared/EmptyState.d.ts +2 -2
- package/dist/features/tracing/components/shared/EmptyState.d.ts.map +1 -1
- package/dist/features/tracing/components/shared/FilterPanel.d.ts +1 -1
- package/dist/features/tracing/components/shared/FilterPanel.d.ts.map +1 -1
- package/dist/features/tracing/components/shared/TracingListHeader.d.ts +1 -1
- package/dist/features/tracing/components/shared/TracingListHeader.d.ts.map +1 -1
- package/dist/features/tracing/components/shared/TracingTable.d.ts.map +1 -1
- package/dist/features/tracing/index.d.ts +1 -1
- package/dist/features/tracing/index.d.ts.map +1 -1
- package/dist/features/tracing/services/TracingApiService.d.ts +4 -0
- package/dist/features/tracing/services/TracingApiService.d.ts.map +1 -1
- package/dist/features/tracing/types.d.ts +16 -0
- package/dist/features/tracing/types.d.ts.map +1 -1
- package/dist/index.js +724 -591
- package/dist/shared/ui/CopyButton.d.ts +1 -0
- package/dist/shared/ui/CopyButton.d.ts.map +1 -1
- package/dist/shared/ui/daterangepicker.d.ts.map +1 -1
- package/dist/ui-libs.umd.js +724 -591
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -977,6 +977,23 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
977
977
|
Component2.displayName = `${iconName}`;
|
|
978
978
|
return Component2;
|
|
979
979
|
};
|
|
980
|
+
/**
|
|
981
|
+
* @license lucide-react v0.294.0 - ISC
|
|
982
|
+
*
|
|
983
|
+
* This source code is licensed under the ISC license.
|
|
984
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
985
|
+
*/
|
|
986
|
+
const AlertTriangle = createLucideIcon("AlertTriangle", [
|
|
987
|
+
[
|
|
988
|
+
"path",
|
|
989
|
+
{
|
|
990
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",
|
|
991
|
+
key: "c3ski4"
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
995
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
996
|
+
]);
|
|
980
997
|
/**
|
|
981
998
|
* @license lucide-react v0.294.0 - ISC
|
|
982
999
|
*
|
|
@@ -4314,10 +4331,10 @@ const MetricCard = ({
|
|
|
4314
4331
|
className
|
|
4315
4332
|
),
|
|
4316
4333
|
onClick: handleClick2,
|
|
4317
|
-
"data-id": `dashboard_metric_card_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`,
|
|
4334
|
+
"data-test-id": `dashboard_metric_card_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`,
|
|
4318
4335
|
children: [
|
|
4319
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 mb-[6px]", "data-id": `dashboard_metric_card_header_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: [
|
|
4320
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium text-gray-700", "data-id": `dashboard_metric_card_title_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: title }),
|
|
4336
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 mb-[6px]", "data-test-id": `dashboard_metric_card_header_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: [
|
|
4337
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium text-gray-700", "data-test-id": `dashboard_metric_card_title_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: title }),
|
|
4321
4338
|
info && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative group", children: [
|
|
4322
4339
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Info, { className: "h-[16px] w-[16px] text-gray-400 cursor-help" }),
|
|
4323
4340
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn(
|
|
@@ -4335,8 +4352,8 @@ const MetricCard = ({
|
|
|
4335
4352
|
] })
|
|
4336
4353
|
] })
|
|
4337
4354
|
] }),
|
|
4338
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-baseline gap-3", "data-id": `dashboard_metric_card_value_container_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: [
|
|
4339
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-2xl font-semibold text-gray-900", "data-id": `dashboard_metric_card_value_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: formatValue2(value) }),
|
|
4355
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-baseline gap-3", "data-test-id": `dashboard_metric_card_value_container_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: [
|
|
4356
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-2xl font-semibold text-gray-900", "data-test-id": `dashboard_metric_card_value_${data.metricType || data.title.toLowerCase().replace(/\s+/g, "_")}`, children: formatValue2(value) }),
|
|
4340
4357
|
change && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4341
4358
|
"div",
|
|
4342
4359
|
{
|
|
@@ -28949,8 +28966,8 @@ const AnalyticsChart = ({
|
|
|
28949
28966
|
console.log("Chart lines configuration:", chartLines);
|
|
28950
28967
|
console.log("Sample filled data points:", sortedData.slice(0, 3));
|
|
28951
28968
|
console.log("=== END ANALYTICS CHART DEBUG ===");
|
|
28952
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-id": "dashboard_analytics_chart_root", children: [
|
|
28953
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative bg-gray-50/30", "data-id": "dashboard_analytics_chart_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveContainer, { width: "100%", height, "data-id": "dashboard_analytics_chart_responsive_container", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28969
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-test-id": "dashboard_analytics_chart_root", children: [
|
|
28970
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative bg-gray-50/30", "data-test-id": "dashboard_analytics_chart_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveContainer, { width: "100%", height, "data-test-id": "dashboard_analytics_chart_responsive_container", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28954
28971
|
ComposedChart,
|
|
28955
28972
|
{
|
|
28956
28973
|
data: sortedData,
|
|
@@ -29049,10 +29066,10 @@ const AnalyticsChart = ({
|
|
|
29049
29066
|
]
|
|
29050
29067
|
}
|
|
29051
29068
|
) }) }),
|
|
29052
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 flex items-center justify-between", "data-id": "dashboard_analytics_chart_footer", children: [
|
|
29053
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-id": "dashboard_analytics_chart_date_range", children: dateRange && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "text-xs text-gray-500 flex items-center gap-[4px]", "data-id": "dashboard_analytics_chart_date_range_text", children: [
|
|
29069
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 flex items-center justify-between", "data-test-id": "dashboard_analytics_chart_footer", children: [
|
|
29070
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test-id": "dashboard_analytics_chart_date_range", children: dateRange && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "text-xs text-gray-500 flex items-center gap-[4px]", "data-test-id": "dashboard_analytics_chart_date_range_text", children: [
|
|
29054
29071
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-gray-500", children: "Showing data from" }),
|
|
29055
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "font-medium text-gray-700", "data-id": "dashboard_analytics_chart_date_range_value", children: [
|
|
29072
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "font-medium text-gray-700", "data-test-id": "dashboard_analytics_chart_date_range_value", children: [
|
|
29056
29073
|
new Date(dateRange.start).toLocaleDateString("en-US", {
|
|
29057
29074
|
day: "numeric",
|
|
29058
29075
|
month: "short",
|
|
@@ -29066,16 +29083,16 @@ const AnalyticsChart = ({
|
|
|
29066
29083
|
})
|
|
29067
29084
|
] })
|
|
29068
29085
|
] }) }),
|
|
29069
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-4", "data-id": "dashboard_analytics_chart_legend", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-4 text-sm text-muted-foreground", "data-id": "dashboard_analytics_chart_legend_items", children: chartLines.map((lineConfig) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": `dashboard_analytics_chart_legend_item_${lineConfig.dataKey}`, children: [
|
|
29086
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-4", "data-test-id": "dashboard_analytics_chart_legend", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-4 text-sm text-muted-foreground", "data-test-id": "dashboard_analytics_chart_legend_items", children: chartLines.map((lineConfig) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": `dashboard_analytics_chart_legend_item_${lineConfig.dataKey}`, children: [
|
|
29070
29087
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29071
29088
|
"div",
|
|
29072
29089
|
{
|
|
29073
29090
|
className: "w-[8px] h-[8px] rounded-full",
|
|
29074
29091
|
style: { backgroundColor: lineConfig.color },
|
|
29075
|
-
"data-id": `dashboard_analytics_chart_legend_color_${lineConfig.dataKey}`
|
|
29092
|
+
"data-test-id": `dashboard_analytics_chart_legend_color_${lineConfig.dataKey}`
|
|
29076
29093
|
}
|
|
29077
29094
|
),
|
|
29078
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", "data-id": `dashboard_analytics_chart_legend_label_${lineConfig.dataKey}`, children: lineConfig.label })
|
|
29095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", "data-test-id": `dashboard_analytics_chart_legend_label_${lineConfig.dataKey}`, children: lineConfig.label })
|
|
29079
29096
|
] }, lineConfig.dataKey)) }) })
|
|
29080
29097
|
] })
|
|
29081
29098
|
] });
|
|
@@ -29162,10 +29179,10 @@ const AnalyticsTable = ({
|
|
|
29162
29179
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: "w-[12px] h-[12px] opacity-30 -mt-1" })
|
|
29163
29180
|
] });
|
|
29164
29181
|
};
|
|
29165
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-id": "dashboard_analytics_table_root", children: [
|
|
29166
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mb-4", "data-id": "dashboard_analytics_table_header", children: [
|
|
29167
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-md font-medium text-gray-700", "data-id": "dashboard_analytics_table_title", children: title }),
|
|
29168
|
-
filtering.enabled && filtering.searchable && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative", "data-id": "dashboard_analytics_table_search", children: [
|
|
29182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-test-id": "dashboard_analytics_table_root", children: [
|
|
29183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mb-4", "data-test-id": "dashboard_analytics_table_header", children: [
|
|
29184
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-md font-medium text-gray-700", "data-test-id": "dashboard_analytics_table_title", children: title }),
|
|
29185
|
+
filtering.enabled && filtering.searchable && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative", "data-test-id": "dashboard_analytics_table_search", children: [
|
|
29169
29186
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Search, { className: "absolute left-[12px] top-1/2 transform -translate-y-1/2 w-[16px] h-[16px] text-gray-400" }),
|
|
29170
29187
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29171
29188
|
"input",
|
|
@@ -29175,13 +29192,13 @@ const AnalyticsTable = ({
|
|
|
29175
29192
|
value: searchTerm,
|
|
29176
29193
|
onChange: (e3) => handleSearch(e3.target.value),
|
|
29177
29194
|
className: "pl-[36px] pr-[12px] py-[8px] border border-gray-200 rounded-lg text-xs focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
|
|
29178
|
-
"data-id": "dashboard_analytics_table_search_input"
|
|
29195
|
+
"data-test-id": "dashboard_analytics_table_search_input"
|
|
29179
29196
|
}
|
|
29180
29197
|
)
|
|
29181
29198
|
] })
|
|
29182
29199
|
] }),
|
|
29183
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-x-auto border border-gray-200 rounded-lg", "data-id": "dashboard_analytics_table_wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: "w-full", "data-id": "dashboard_analytics_table", children: [
|
|
29184
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { className: "bg-gray-50", "data-id": "dashboard_analytics_table_head", children: /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { "data-id": "dashboard_analytics_table_head_row", children: columns.map((column) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29200
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-x-auto border border-gray-200 rounded-lg", "data-test-id": "dashboard_analytics_table_wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: "w-full", "data-test-id": "dashboard_analytics_table", children: [
|
|
29201
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { className: "bg-gray-50", "data-test-id": "dashboard_analytics_table_head", children: /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { "data-test-id": "dashboard_analytics_table_head_row", children: columns.map((column) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29185
29202
|
"th",
|
|
29186
29203
|
{
|
|
29187
29204
|
className: cn(
|
|
@@ -29192,19 +29209,19 @@ const AnalyticsTable = ({
|
|
|
29192
29209
|
),
|
|
29193
29210
|
style: { width: column.width },
|
|
29194
29211
|
onClick: () => handleSort(column),
|
|
29195
|
-
"data-id": `dashboard_analytics_table_header_${column.key}`,
|
|
29196
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": `dashboard_analytics_table_header_content_${column.key}`, children: [
|
|
29212
|
+
"data-test-id": `dashboard_analytics_table_header_${column.key}`,
|
|
29213
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": `dashboard_analytics_table_header_content_${column.key}`, children: [
|
|
29197
29214
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: column.title }),
|
|
29198
29215
|
getSortIcon(column)
|
|
29199
29216
|
] })
|
|
29200
29217
|
},
|
|
29201
29218
|
column.key
|
|
29202
29219
|
)) }) }),
|
|
29203
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: "bg-white divide-y divide-gray-200", "data-id": "dashboard_analytics_table_body", children: paginatedData.map((row, rowIndex) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29220
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: "bg-white divide-y divide-gray-200", "data-test-id": "dashboard_analytics_table_body", children: paginatedData.map((row, rowIndex) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29204
29221
|
"tr",
|
|
29205
29222
|
{
|
|
29206
29223
|
className: "hover:bg-gray-50 transition-colors",
|
|
29207
|
-
"data-id": `dashboard_analytics_table_row_${rowIndex}`,
|
|
29224
|
+
"data-test-id": `dashboard_analytics_table_row_${rowIndex}`,
|
|
29208
29225
|
children: columns.map((column) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29209
29226
|
"td",
|
|
29210
29227
|
{
|
|
@@ -29213,7 +29230,7 @@ const AnalyticsTable = ({
|
|
|
29213
29230
|
column.align === "center" && "text-center",
|
|
29214
29231
|
column.align === "right" && "text-right"
|
|
29215
29232
|
),
|
|
29216
|
-
"data-id": `dashboard_analytics_table_cell_${rowIndex}_${column.key}`,
|
|
29233
|
+
"data-test-id": `dashboard_analytics_table_cell_${rowIndex}_${column.key}`,
|
|
29217
29234
|
children: formatCellValue(row[column.key], column, row)
|
|
29218
29235
|
},
|
|
29219
29236
|
column.key
|
|
@@ -29222,8 +29239,8 @@ const AnalyticsTable = ({
|
|
|
29222
29239
|
rowIndex
|
|
29223
29240
|
)) })
|
|
29224
29241
|
] }) }),
|
|
29225
|
-
pagination.enabled && totalPages > 1 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mt-4", "data-id": "dashboard_analytics_table_pagination", children: [
|
|
29226
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-xs text-gray-500", "data-id": "dashboard_analytics_table_pagination_info", children: [
|
|
29242
|
+
pagination.enabled && totalPages > 1 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mt-4", "data-test-id": "dashboard_analytics_table_pagination", children: [
|
|
29243
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-xs text-gray-500", "data-test-id": "dashboard_analytics_table_pagination_info", children: [
|
|
29227
29244
|
"Showing ",
|
|
29228
29245
|
(currentPage - 1) * pagination.pageSize + 1,
|
|
29229
29246
|
" to",
|
|
@@ -29234,14 +29251,14 @@ const AnalyticsTable = ({
|
|
|
29234
29251
|
processedData.length,
|
|
29235
29252
|
" results"
|
|
29236
29253
|
] }),
|
|
29237
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": "dashboard_analytics_table_pagination_controls", children: [
|
|
29254
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": "dashboard_analytics_table_pagination_controls", children: [
|
|
29238
29255
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29239
29256
|
"button",
|
|
29240
29257
|
{
|
|
29241
29258
|
onClick: () => setCurrentPage((prev) => Math.max(1, prev - 1)),
|
|
29242
29259
|
disabled: currentPage === 1,
|
|
29243
29260
|
className: "px-[12px] py-[4px] text-xs border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
29244
|
-
"data-id": "dashboard_analytics_table_pagination_btn_previous",
|
|
29261
|
+
"data-test-id": "dashboard_analytics_table_pagination_btn_previous",
|
|
29245
29262
|
children: "Previous"
|
|
29246
29263
|
}
|
|
29247
29264
|
),
|
|
@@ -29259,7 +29276,7 @@ const AnalyticsTable = ({
|
|
|
29259
29276
|
"px-[12px] py-[4px] text-xs border rounded",
|
|
29260
29277
|
currentPage === pageNum ? "bg-blue-500 text-white border-blue-500" : "border-gray-200 hover:bg-gray-50"
|
|
29261
29278
|
),
|
|
29262
|
-
"data-id": `dashboard_analytics_table_pagination_btn_page_${pageNum}`,
|
|
29279
|
+
"data-test-id": `dashboard_analytics_table_pagination_btn_page_${pageNum}`,
|
|
29263
29280
|
children: pageNum
|
|
29264
29281
|
},
|
|
29265
29282
|
pageNum
|
|
@@ -29271,13 +29288,13 @@ const AnalyticsTable = ({
|
|
|
29271
29288
|
onClick: () => setCurrentPage((prev) => Math.min(totalPages, prev + 1)),
|
|
29272
29289
|
disabled: currentPage === totalPages,
|
|
29273
29290
|
className: "px-[12px] py-[4px] text-xs border border-gray-200 rounded hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
29274
|
-
"data-id": "dashboard_analytics_table_pagination_btn_next",
|
|
29291
|
+
"data-test-id": "dashboard_analytics_table_pagination_btn_next",
|
|
29275
29292
|
children: "Next"
|
|
29276
29293
|
}
|
|
29277
29294
|
)
|
|
29278
29295
|
] })
|
|
29279
29296
|
] }),
|
|
29280
|
-
paginatedData.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center py-[32px] text-gray-500", "data-id": "dashboard_analytics_table_empty_state", children: searchTerm ? "No results found for your search." : "No data available." })
|
|
29297
|
+
paginatedData.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center py-[32px] text-gray-500", "data-test-id": "dashboard_analytics_table_empty_state", children: searchTerm ? "No results found for your search." : "No data available." })
|
|
29281
29298
|
] });
|
|
29282
29299
|
};
|
|
29283
29300
|
const ASSETS_DOMAIN = "https://staging-agent-platform.kore.ai";
|
|
@@ -29571,21 +29588,21 @@ const AgentListView = ({
|
|
|
29571
29588
|
}
|
|
29572
29589
|
return value.toString();
|
|
29573
29590
|
};
|
|
29574
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-id": "dashboard_agent_list_view_root", children: [
|
|
29575
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-id": "dashboard_agent_list_view_header", children: [
|
|
29576
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-id": "dashboard_agent_list_view_header_name", children: "Name" }),
|
|
29577
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_agent_list_view_header_runs", children: "Runs" }),
|
|
29578
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_agent_list_view_header_response_time", children: "Response Time" }),
|
|
29579
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_agent_list_view_header_tokens", children: "Tokens" })
|
|
29591
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-test-id": "dashboard_agent_list_view_root", children: [
|
|
29592
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-test-id": "dashboard_agent_list_view_header", children: [
|
|
29593
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-test-id": "dashboard_agent_list_view_header_name", children: "Name" }),
|
|
29594
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_agent_list_view_header_runs", children: "Runs" }),
|
|
29595
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_agent_list_view_header_response_time", children: "Response Time" }),
|
|
29596
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_agent_list_view_header_tokens", children: "Tokens" })
|
|
29580
29597
|
] }),
|
|
29581
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-id": "dashboard_agent_list_view_body", children: data.slice(0, visibleCount).map((agent2, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29598
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-test-id": "dashboard_agent_list_view_body", children: data.slice(0, visibleCount).map((agent2, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29582
29599
|
"div",
|
|
29583
29600
|
{
|
|
29584
29601
|
className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] cursor-pointer transition-colors duration-150 border-b border-gray-200",
|
|
29585
|
-
"data-id": `dashboard_agent_list_view_row_${index}`,
|
|
29602
|
+
"data-test-id": `dashboard_agent_list_view_row_${index}`,
|
|
29586
29603
|
children: [
|
|
29587
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-id": `dashboard_agent_list_view_row_name_${index}`, children: [
|
|
29588
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-id": `dashboard_agent_list_view_row_avatar_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29604
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-test-id": `dashboard_agent_list_view_row_name_${index}`, children: [
|
|
29605
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-test-id": `dashboard_agent_list_view_row_avatar_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29589
29606
|
IconPreview,
|
|
29590
29607
|
{
|
|
29591
29608
|
icon: agent2.icon,
|
|
@@ -29594,21 +29611,21 @@ const AgentListView = ({
|
|
|
29594
29611
|
name: agent2.name || "Unknown Agent"
|
|
29595
29612
|
}
|
|
29596
29613
|
) }),
|
|
29597
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1 w-full", "data-id": `dashboard_agent_list_view_row_name_text_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", children: agent2.name || "Unknown Agent" }) })
|
|
29614
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1 w-full", "data-test-id": `dashboard_agent_list_view_row_name_text_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", children: agent2.name || "Unknown Agent" }) })
|
|
29598
29615
|
] }),
|
|
29599
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_agent_list_view_row_runs_${index}`, children: agent2.runs ? formatValue2(agent2.runs) : "-" }),
|
|
29600
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_agent_list_view_row_response_time_${index}`, children: agent2.responseTime || "-" }),
|
|
29601
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_agent_list_view_row_tokens_${index}`, children: agent2.tokens ? formatValue2(agent2.tokens) : "-" })
|
|
29616
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_agent_list_view_row_runs_${index}`, children: agent2.runs ? formatValue2(agent2.runs) : "-" }),
|
|
29617
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_agent_list_view_row_response_time_${index}`, children: agent2.responseTime || "-" }),
|
|
29618
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_agent_list_view_row_tokens_${index}`, children: agent2.tokens ? formatValue2(agent2.tokens) : "-" })
|
|
29602
29619
|
]
|
|
29603
29620
|
},
|
|
29604
29621
|
agent2.id || index
|
|
29605
29622
|
)) }),
|
|
29606
|
-
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": "dashboard_agent_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29623
|
+
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": "dashboard_agent_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29607
29624
|
"button",
|
|
29608
29625
|
{
|
|
29609
29626
|
onClick: loadMore,
|
|
29610
29627
|
className: "px-[16px] py-[8px] text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 transition-colors duration-150",
|
|
29611
|
-
"data-id": "dashboard_agent_list_view_load_more_btn",
|
|
29628
|
+
"data-test-id": "dashboard_agent_list_view_load_more_btn",
|
|
29612
29629
|
children: "Load 10 more"
|
|
29613
29630
|
}
|
|
29614
29631
|
) })
|
|
@@ -29652,21 +29669,21 @@ const ToolListView = ({
|
|
|
29652
29669
|
}
|
|
29653
29670
|
return value.toString();
|
|
29654
29671
|
};
|
|
29655
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-id": "dashboard_tool_list_view_root", children: [
|
|
29656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-id": "dashboard_tool_list_view_header", children: [
|
|
29657
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-id": "dashboard_tool_list_view_header_name", children: "Name" }),
|
|
29658
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_tool_list_view_header_type", children: "Type" }),
|
|
29659
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_tool_list_view_header_runs", children: "Runs" }),
|
|
29660
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_tool_list_view_header_response_time", children: "Response Time" })
|
|
29672
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-test-id": "dashboard_tool_list_view_root", children: [
|
|
29673
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-test-id": "dashboard_tool_list_view_header", children: [
|
|
29674
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-test-id": "dashboard_tool_list_view_header_name", children: "Name" }),
|
|
29675
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_tool_list_view_header_type", children: "Type" }),
|
|
29676
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_tool_list_view_header_runs", children: "Runs" }),
|
|
29677
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_tool_list_view_header_response_time", children: "Response Time" })
|
|
29661
29678
|
] }),
|
|
29662
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-id": "dashboard_tool_list_view_body", children: data.slice(0, visibleCount).map((tool, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29679
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-test-id": "dashboard_tool_list_view_body", children: data.slice(0, visibleCount).map((tool, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29663
29680
|
"div",
|
|
29664
29681
|
{
|
|
29665
29682
|
className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] cursor-pointer transition-colors duration-150 border-b border-gray-200",
|
|
29666
|
-
"data-id": `dashboard_tool_list_view_row_${index}`,
|
|
29683
|
+
"data-test-id": `dashboard_tool_list_view_row_${index}`,
|
|
29667
29684
|
children: [
|
|
29668
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-id": `dashboard_tool_list_view_row_name_${index}`, children: [
|
|
29669
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-id": `dashboard_tool_list_view_row_icon_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29685
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-test-id": `dashboard_tool_list_view_row_name_${index}`, children: [
|
|
29686
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-test-id": `dashboard_tool_list_view_row_icon_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29670
29687
|
IconPreview,
|
|
29671
29688
|
{
|
|
29672
29689
|
icon: tool.icon,
|
|
@@ -29676,24 +29693,24 @@ const ToolListView = ({
|
|
|
29676
29693
|
toolType: tool["toolType"] || tool["type"]
|
|
29677
29694
|
}
|
|
29678
29695
|
) }),
|
|
29679
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1 w-full", "data-id": `dashboard_tool_list_view_row_name_text_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", children: tool.name || "Unknown Tool" }) })
|
|
29696
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1 w-full", "data-test-id": `dashboard_tool_list_view_row_name_text_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", children: tool.name || "Unknown Tool" }) })
|
|
29680
29697
|
] }),
|
|
29681
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center", "data-id": `dashboard_tool_list_view_row_type_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cn(
|
|
29698
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center", "data-test-id": `dashboard_tool_list_view_row_type_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cn(
|
|
29682
29699
|
"inline-flex items-center px-[10px] py-[4px] rounded-full text-xs font-medium border",
|
|
29683
29700
|
getToolTypeStyle(tool["toolType"] || tool["type"] || "Default")
|
|
29684
|
-
), "data-id": `dashboard_tool_list_view_row_type_badge_${index}`, children: getToolTypeName(tool["toolType"] || tool["type"] || "Default") }) }),
|
|
29685
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_tool_list_view_row_runs_${index}`, children: tool.runs ? formatValue2(tool.runs) : "-" }),
|
|
29686
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_tool_list_view_row_response_time_${index}`, children: tool.responseTime || "-" })
|
|
29701
|
+
), "data-test-id": `dashboard_tool_list_view_row_type_badge_${index}`, children: getToolTypeName(tool["toolType"] || tool["type"] || "Default") }) }),
|
|
29702
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_tool_list_view_row_runs_${index}`, children: tool.runs ? formatValue2(tool.runs) : "-" }),
|
|
29703
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_tool_list_view_row_response_time_${index}`, children: tool.responseTime || "-" })
|
|
29687
29704
|
]
|
|
29688
29705
|
},
|
|
29689
29706
|
tool.id || index
|
|
29690
29707
|
)) }),
|
|
29691
|
-
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": "dashboard_tool_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29708
|
+
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": "dashboard_tool_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29692
29709
|
"button",
|
|
29693
29710
|
{
|
|
29694
29711
|
onClick: loadMore,
|
|
29695
29712
|
className: "px-[16px] py-[8px] text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 transition-colors duration-150",
|
|
29696
|
-
"data-id": "dashboard_tool_list_view_load_more_btn",
|
|
29713
|
+
"data-test-id": "dashboard_tool_list_view_load_more_btn",
|
|
29697
29714
|
children: "Load 10 more"
|
|
29698
29715
|
}
|
|
29699
29716
|
) })
|
|
@@ -29833,44 +29850,44 @@ const ModelListView = ({
|
|
|
29833
29850
|
}
|
|
29834
29851
|
return value.toString();
|
|
29835
29852
|
};
|
|
29836
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-id": "dashboard_model_list_view_root", children: [
|
|
29837
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-id": "dashboard_model_list_view_header", children: [
|
|
29838
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-id": "dashboard_model_list_view_header_name", children: "Model Name" }),
|
|
29839
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_model_list_view_header_runs", children: "Runs" }),
|
|
29840
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_model_list_view_header_tokens", children: "Tokens" }),
|
|
29841
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-id": "dashboard_model_list_view_header_response_time", children: "Response Time" })
|
|
29853
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full", className), "data-test-id": "dashboard_model_list_view_root", children: [
|
|
29854
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] bg-gray-50 border-b border-gray-200 text-xs font-medium text-gray-600", "data-test-id": "dashboard_model_list_view_header", children: [
|
|
29855
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-left", "data-test-id": "dashboard_model_list_view_header_name", children: "Model Name" }),
|
|
29856
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_model_list_view_header_runs", children: "Runs" }),
|
|
29857
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_model_list_view_header_tokens", children: "Tokens" }),
|
|
29858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", "data-test-id": "dashboard_model_list_view_header_response_time", children: "Response Time" })
|
|
29842
29859
|
] }),
|
|
29843
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-id": "dashboard_model_list_view_body", children: data.slice(0, visibleCount).map((model, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29860
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "divide-y divide-gray-100", "data-test-id": "dashboard_model_list_view_body", children: data.slice(0, visibleCount).map((model, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29844
29861
|
"div",
|
|
29845
29862
|
{
|
|
29846
29863
|
className: "grid grid-cols-4 items-center gap-4 px-[16px] py-[12px] cursor-pointer transition-colors duration-150 border-b border-gray-200",
|
|
29847
|
-
"data-id": `dashboard_model_list_view_row_${index}`,
|
|
29864
|
+
"data-test-id": `dashboard_model_list_view_row_${index}`,
|
|
29848
29865
|
children: [
|
|
29849
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-id": `dashboard_model_list_view_row_name_${index}`, children: [
|
|
29850
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-id": `dashboard_model_list_view_row_icon_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29866
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", "data-test-id": `dashboard_model_list_view_row_name_${index}`, children: [
|
|
29867
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-test-id": `dashboard_model_list_view_row_icon_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29851
29868
|
ModelIcon,
|
|
29852
29869
|
{
|
|
29853
29870
|
provider: model.provider
|
|
29854
29871
|
}
|
|
29855
29872
|
) }),
|
|
29856
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1 w-full", "data-id": `dashboard_model_list_view_row_name_text_${index}`, children: [
|
|
29857
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", "data-id": `dashboard_model_list_view_row_name_value_${index}`, children: model.name || model.modelName || "Unknown Model" }),
|
|
29858
|
-
model.provider && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-gray-500 truncate", "data-id": `dashboard_model_list_view_row_provider_${index}`, children: getProviderDisplayName(model.provider) })
|
|
29873
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1 w-full", "data-test-id": `dashboard_model_list_view_row_name_text_${index}`, children: [
|
|
29874
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-gray-700 truncate", "data-test-id": `dashboard_model_list_view_row_name_value_${index}`, children: model.name || model.modelName || "Unknown Model" }),
|
|
29875
|
+
model.provider && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-gray-500 truncate", "data-test-id": `dashboard_model_list_view_row_provider_${index}`, children: getProviderDisplayName(model.provider) })
|
|
29859
29876
|
] })
|
|
29860
29877
|
] }),
|
|
29861
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_model_list_view_row_runs_${index}`, children: formatValue2(model.runs || 0) }),
|
|
29862
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_model_list_view_row_tokens_${index}`, children: formatValue2(model.tokens || model.totalTokens || 0) }),
|
|
29863
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-id": `dashboard_model_list_view_row_response_time_${index}`, children: model.responseTime || (model.avgResponseTime ? `${model.avgResponseTime}ms` : "N/A") })
|
|
29878
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_model_list_view_row_runs_${index}`, children: formatValue2(model.runs || 0) }),
|
|
29879
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_model_list_view_row_tokens_${index}`, children: formatValue2(model.tokens || model.totalTokens || 0) }),
|
|
29880
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center font-medium text-xs text-gray-700", "data-test-id": `dashboard_model_list_view_row_response_time_${index}`, children: model.responseTime || (model.avgResponseTime ? `${model.avgResponseTime}ms` : "N/A") })
|
|
29864
29881
|
]
|
|
29865
29882
|
},
|
|
29866
29883
|
model.id || index
|
|
29867
29884
|
)) }),
|
|
29868
|
-
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": "dashboard_model_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29885
|
+
visibleCount < data.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": "dashboard_model_list_view_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29869
29886
|
"button",
|
|
29870
29887
|
{
|
|
29871
29888
|
onClick: loadMore,
|
|
29872
29889
|
className: "px-[16px] py-[8px] text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 transition-colors duration-150",
|
|
29873
|
-
"data-id": "dashboard_model_list_view_load_more_btn",
|
|
29890
|
+
"data-test-id": "dashboard_model_list_view_load_more_btn",
|
|
29874
29891
|
children: "Load 10 more"
|
|
29875
29892
|
}
|
|
29876
29893
|
) })
|
|
@@ -29992,7 +30009,7 @@ const RunsSlider = ({
|
|
|
29992
30009
|
{
|
|
29993
30010
|
className: "fixed inset-0 bg-black bg-opacity-50 z-40 transition-opacity duration-300",
|
|
29994
30011
|
onClick: handleClose,
|
|
29995
|
-
"data-id": "dashboard_runs_slider_overlay"
|
|
30012
|
+
"data-test-id": "dashboard_runs_slider_overlay"
|
|
29996
30013
|
}
|
|
29997
30014
|
),
|
|
29998
30015
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -30003,42 +30020,42 @@ const RunsSlider = ({
|
|
|
30003
30020
|
isOpen ? "translate-x-0" : "translate-x-full",
|
|
30004
30021
|
className
|
|
30005
30022
|
),
|
|
30006
|
-
"data-id": "dashboard_runs_slider_panel",
|
|
30023
|
+
"data-test-id": "dashboard_runs_slider_panel",
|
|
30007
30024
|
children: [
|
|
30008
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-6 py-3 border-b border-[#d0d5dd]", "data-id": "dashboard_runs_slider_header", children: [
|
|
30009
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-lg font-semibold text-[#101828]", "data-id": "dashboard_runs_slider_title", children: config2.title }),
|
|
30025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-6 py-3 border-b border-[#d0d5dd]", "data-test-id": "dashboard_runs_slider_header", children: [
|
|
30026
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-lg font-semibold text-[#101828]", "data-test-id": "dashboard_runs_slider_title", children: config2.title }),
|
|
30010
30027
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30011
30028
|
"button",
|
|
30012
30029
|
{
|
|
30013
30030
|
onClick: handleClose,
|
|
30014
30031
|
className: "p-2 hover:bg-gray-100 rounded-lg transition-colors",
|
|
30015
|
-
"data-id": "dashboard_runs_slider_close_btn",
|
|
30032
|
+
"data-test-id": "dashboard_runs_slider_close_btn",
|
|
30016
30033
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "h-5 w-5 text-[#101828]" })
|
|
30017
30034
|
}
|
|
30018
30035
|
)
|
|
30019
30036
|
] }),
|
|
30020
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col h-[calc(100%-64px)] p-6 gap-6", "data-id": "dashboard_runs_slider_content", children: [
|
|
30021
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", "data-id": "dashboard_runs_slider_subheader", children: [
|
|
30022
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-sm font-medium text-[#344054]", "data-id": "dashboard_runs_slider_date_label", children: [
|
|
30037
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col h-[calc(100%-64px)] p-6 gap-6", "data-test-id": "dashboard_runs_slider_content", children: [
|
|
30038
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", "data-test-id": "dashboard_runs_slider_subheader", children: [
|
|
30039
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-sm font-medium text-[#344054]", "data-test-id": "dashboard_runs_slider_date_label", children: [
|
|
30023
30040
|
config2.title,
|
|
30024
30041
|
" (",
|
|
30025
30042
|
formatDate(date2),
|
|
30026
30043
|
")"
|
|
30027
30044
|
] }),
|
|
30028
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[210px] relative filter-dropdown", "data-id": "dashboard_runs_slider_filter_dropdown", children: [
|
|
30045
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[210px] relative filter-dropdown", "data-test-id": "dashboard_runs_slider_filter_dropdown", children: [
|
|
30029
30046
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
30030
30047
|
"button",
|
|
30031
30048
|
{
|
|
30032
30049
|
onClick: () => setShowFilterDropdown(!showFilterDropdown),
|
|
30033
30050
|
className: "w-full bg-white border border-[#d0d5dd] rounded-lg px-3.5 py-2.5 flex items-center justify-between text-sm text-[#101828] hover:bg-gray-50 transition-colors",
|
|
30034
|
-
"data-id": "dashboard_runs_slider_filter_btn",
|
|
30051
|
+
"data-test-id": "dashboard_runs_slider_filter_btn",
|
|
30035
30052
|
children: [
|
|
30036
30053
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: selectedFilterLabel }),
|
|
30037
30054
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: "h-4 w-4 text-[#101828]" })
|
|
30038
30055
|
]
|
|
30039
30056
|
}
|
|
30040
30057
|
),
|
|
30041
|
-
showFilterDropdown && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-full left-0 right-0 mt-1 bg-white border border-[#d0d5dd] rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto", "data-id": "dashboard_runs_slider_filter_menu", children: filterOptions.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30058
|
+
showFilterDropdown && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-full left-0 right-0 mt-1 bg-white border border-[#d0d5dd] rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto", "data-test-id": "dashboard_runs_slider_filter_menu", children: filterOptions.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30042
30059
|
"button",
|
|
30043
30060
|
{
|
|
30044
30061
|
onClick: () => handleFilterSelect(option.value),
|
|
@@ -30046,26 +30063,26 @@ const RunsSlider = ({
|
|
|
30046
30063
|
"w-full px-3.5 py-2.5 text-left text-sm hover:bg-gray-50 transition-colors",
|
|
30047
30064
|
selectedFilter === option.value ? "bg-blue-50 text-blue-700" : "text-[#101828]"
|
|
30048
30065
|
),
|
|
30049
|
-
"data-id": `dashboard_runs_slider_filter_option_${option.value}`,
|
|
30066
|
+
"data-test-id": `dashboard_runs_slider_filter_option_${option.value}`,
|
|
30050
30067
|
children: option.label
|
|
30051
30068
|
},
|
|
30052
30069
|
option.value
|
|
30053
30070
|
)) })
|
|
30054
30071
|
] })
|
|
30055
30072
|
] }),
|
|
30056
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 overflow-hidden", "data-id": "dashboard_runs_slider_table_container", children: [
|
|
30057
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-[#f9fafb] border-b border-[#eaecf0] px-2 py-2", "data-id": "dashboard_runs_slider_table_header", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 gap-3 items-center", "data-id": "dashboard_runs_slider_table_header_row", children: [
|
|
30058
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col-span-2 px-0 py-2", "data-id": "dashboard_runs_slider_table_header_name", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Name" }) }),
|
|
30059
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center px-0 py-2", "data-id": "dashboard_runs_slider_table_header_runs", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Runs" }) }),
|
|
30060
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center px-0 py-2", "data-id": "dashboard_runs_slider_table_header_response_time", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Response Time" }) })
|
|
30073
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 overflow-hidden", "data-test-id": "dashboard_runs_slider_table_container", children: [
|
|
30074
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-[#f9fafb] border-b border-[#eaecf0] px-2 py-2", "data-test-id": "dashboard_runs_slider_table_header", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-4 gap-3 items-center", "data-test-id": "dashboard_runs_slider_table_header_row", children: [
|
|
30075
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col-span-2 px-0 py-2", "data-test-id": "dashboard_runs_slider_table_header_name", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Name" }) }),
|
|
30076
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center px-0 py-2", "data-test-id": "dashboard_runs_slider_table_header_runs", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Runs" }) }),
|
|
30077
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center px-0 py-2", "data-test-id": "dashboard_runs_slider_table_header_response_time", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: "Response Time" }) })
|
|
30061
30078
|
] }) }),
|
|
30062
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-y-auto max-h-[calc(100%-40px)]", "data-id": "dashboard_runs_slider_table_body", children: visibleData.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center h-64 text-center", "data-id": "dashboard_runs_slider_empty_state", children: [
|
|
30063
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("h3", { className: "text-md font-medium text-gray-900 mb-[8px]", "data-id": "dashboard_runs_slider_empty_state_title", children: [
|
|
30079
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-y-auto max-h-[calc(100%-40px)]", "data-test-id": "dashboard_runs_slider_table_body", children: visibleData.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center h-64 text-center", "data-test-id": "dashboard_runs_slider_empty_state", children: [
|
|
30080
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("h3", { className: "text-md font-medium text-gray-900 mb-[8px]", "data-test-id": "dashboard_runs_slider_empty_state_title", children: [
|
|
30064
30081
|
"No ",
|
|
30065
30082
|
config2.title.toLowerCase(),
|
|
30066
30083
|
" for this date"
|
|
30067
30084
|
] }),
|
|
30068
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "text-xs text-gray-500", "data-id": "dashboard_runs_slider_empty_state_message", children: [
|
|
30085
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "text-xs text-gray-500", "data-test-id": "dashboard_runs_slider_empty_state_message", children: [
|
|
30069
30086
|
"There were no ",
|
|
30070
30087
|
config2.title.toLowerCase(),
|
|
30071
30088
|
" recorded on ",
|
|
@@ -30077,10 +30094,10 @@ const RunsSlider = ({
|
|
|
30077
30094
|
"div",
|
|
30078
30095
|
{
|
|
30079
30096
|
className: "grid grid-cols-4 gap-3 items-center px-2 py-3 border-b border-[#eaecf0] hover:bg-gray-50 transition-colors",
|
|
30080
|
-
"data-id": `dashboard_runs_slider_table_row_${index}`,
|
|
30097
|
+
"data-test-id": `dashboard_runs_slider_table_row_${index}`,
|
|
30081
30098
|
children: [
|
|
30082
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "col-span-2 flex items-center gap-2", "data-id": `dashboard_runs_slider_table_row_name_${index}`, children: [
|
|
30083
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-id": `dashboard_runs_slider_table_row_avatar_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30099
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "col-span-2 flex items-center gap-2", "data-test-id": `dashboard_runs_slider_table_row_name_${index}`, children: [
|
|
30100
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-test-id": `dashboard_runs_slider_table_row_avatar_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30084
30101
|
IconPreview,
|
|
30085
30102
|
{
|
|
30086
30103
|
icon: item.icon,
|
|
@@ -30092,23 +30109,23 @@ const RunsSlider = ({
|
|
|
30092
30109
|
modelName: item.modelName
|
|
30093
30110
|
}
|
|
30094
30111
|
) }),
|
|
30095
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", "data-id": `dashboard_runs_slider_table_row_name_text_${index}`, children: [
|
|
30112
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", "data-test-id": `dashboard_runs_slider_table_row_name_text_${index}`, children: [
|
|
30096
30113
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-[#101828] truncate", children: item.name }),
|
|
30097
|
-
metricType === "modelRuns" && item.provider && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-[#475467] truncate", "data-id": `dashboard_runs_slider_table_row_provider_${index}`, children: item.provider })
|
|
30114
|
+
metricType === "modelRuns" && item.provider && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-[#475467] truncate", "data-test-id": `dashboard_runs_slider_table_row_provider_${index}`, children: item.provider })
|
|
30098
30115
|
] })
|
|
30099
30116
|
] }),
|
|
30100
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": `dashboard_runs_slider_table_row_runs_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: formatValue(item.runs) }) }),
|
|
30101
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": `dashboard_runs_slider_table_row_response_time_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: item.responseTime }) })
|
|
30117
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": `dashboard_runs_slider_table_row_runs_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: formatValue(item.runs) }) }),
|
|
30118
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": `dashboard_runs_slider_table_row_response_time_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs font-medium text-[#475467]", children: item.responseTime }) })
|
|
30102
30119
|
]
|
|
30103
30120
|
},
|
|
30104
30121
|
item.id || index
|
|
30105
30122
|
)),
|
|
30106
|
-
visibleCount < filteredData.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-id": "dashboard_runs_slider_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30123
|
+
visibleCount < filteredData.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center", "data-test-id": "dashboard_runs_slider_load_more_container", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30107
30124
|
"button",
|
|
30108
30125
|
{
|
|
30109
30126
|
onClick: loadMore,
|
|
30110
30127
|
className: "bg-white border border-[#d0d5dd] rounded px-3 py-1 text-xs font-medium text-[#344054] hover:bg-gray-50 transition-colors",
|
|
30111
|
-
"data-id": "dashboard_runs_slider_load_more_btn",
|
|
30128
|
+
"data-test-id": "dashboard_runs_slider_load_more_btn",
|
|
30112
30129
|
children: "Load 10 more"
|
|
30113
30130
|
}
|
|
30114
30131
|
) })
|
|
@@ -31726,7 +31743,7 @@ const ViewRenderer = ({
|
|
|
31726
31743
|
}
|
|
31727
31744
|
};
|
|
31728
31745
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
31729
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("w-full", className), "data-id": "dashboard_view_renderer_root", children: renderView() }),
|
|
31746
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("w-full", className), "data-test-id": "dashboard_view_renderer_root", children: renderView() }),
|
|
31730
31747
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31731
31748
|
RunsSlider,
|
|
31732
31749
|
{
|
|
@@ -32139,7 +32156,7 @@ const SectionControls = ({
|
|
|
32139
32156
|
}
|
|
32140
32157
|
return { maxItems: 40, maxLabelLength: 25 };
|
|
32141
32158
|
};
|
|
32142
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex items-center gap-3", className), "data-id": "dashboard_section_controls", children: [
|
|
32159
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("flex items-center gap-3", className), "data-test-id": "dashboard_section_controls", children: [
|
|
32143
32160
|
dropdown && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: dropdown.multiSelect ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32144
32161
|
MultiSelect,
|
|
32145
32162
|
{
|
|
@@ -32167,7 +32184,7 @@ const SectionControls = ({
|
|
|
32167
32184
|
className: "w-48"
|
|
32168
32185
|
}
|
|
32169
32186
|
) }),
|
|
32170
|
-
buttons && buttons.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center border border-gray-200 rounded-lg overflow-hidden", "data-id": "dashboard_section_controls_button_group", children: buttons.map((button, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32187
|
+
buttons && buttons.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center border border-gray-200 rounded-lg overflow-hidden", "data-test-id": "dashboard_section_controls_button_group", children: buttons.map((button, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32171
32188
|
"button",
|
|
32172
32189
|
{
|
|
32173
32190
|
onClick: () => {
|
|
@@ -32180,12 +32197,12 @@ const SectionControls = ({
|
|
|
32180
32197
|
button.active ? "bg-white text-gray-900 shadow-[0 1px 3px 0 rgba(16, 24, 40, 0.08), 0 1px 2px 0 rgba(16, 24, 40, 0.08)]" : "text-gray-500 bg-white",
|
|
32181
32198
|
index > 0 && "border-l border-gray-200"
|
|
32182
32199
|
),
|
|
32183
|
-
"data-id": `dashboard_section_controls_btn_${button.value}`,
|
|
32200
|
+
"data-test-id": `dashboard_section_controls_btn_${button.value}`,
|
|
32184
32201
|
children: button.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mr-[8px]", children: button.icon })
|
|
32185
32202
|
},
|
|
32186
32203
|
button.value
|
|
32187
32204
|
)) }),
|
|
32188
|
-
toggle && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px] border border-gray-200 bg-gray-50 overflow-hidden p-[2px] rounded-[6px]", "data-id": "dashboard_section_controls_view_toggle", children: [
|
|
32205
|
+
toggle && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px] border border-gray-200 bg-gray-50 overflow-hidden p-[2px] rounded-[6px]", "data-test-id": "dashboard_section_controls_view_toggle", children: [
|
|
32189
32206
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32190
32207
|
"button",
|
|
32191
32208
|
{
|
|
@@ -32198,7 +32215,7 @@ const SectionControls = ({
|
|
|
32198
32215
|
"hover:bg-white ",
|
|
32199
32216
|
toggle.chartView ? "bg-white text-gray-900 shadow-md" : "text-gray-500 bg-white"
|
|
32200
32217
|
),
|
|
32201
|
-
"data-id": "dashboard_section_controls_view_toggle_btn_chart",
|
|
32218
|
+
"data-test-id": "dashboard_section_controls_view_toggle_btn_chart",
|
|
32202
32219
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(BarChart3, { className: "w-[16px] h-[16px]" })
|
|
32203
32220
|
}
|
|
32204
32221
|
),
|
|
@@ -32214,7 +32231,7 @@ const SectionControls = ({
|
|
|
32214
32231
|
"hover:bg-white ",
|
|
32215
32232
|
toggle.tableView ? "bg-white text-gray-900 shadow-md" : "text-gray-500 bg-white"
|
|
32216
32233
|
),
|
|
32217
|
-
"data-id": "dashboard_section_controls_view_toggle_btn_table",
|
|
32234
|
+
"data-test-id": "dashboard_section_controls_view_toggle_btn_table",
|
|
32218
32235
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, { className: "w-[16px] h-[16px]" })
|
|
32219
32236
|
}
|
|
32220
32237
|
)
|
|
@@ -32828,18 +32845,18 @@ const DashboardSection = ({
|
|
|
32828
32845
|
gridColumn: (layout == null ? void 0 : layout.span) ? `span ${layout.span}` : void 0,
|
|
32829
32846
|
order: layout == null ? void 0 : layout.order
|
|
32830
32847
|
},
|
|
32831
|
-
"data-id": `dashboard_section_${id}`,
|
|
32848
|
+
"data-test-id": `dashboard_section_${id}`,
|
|
32832
32849
|
children: [
|
|
32833
|
-
title && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full", "data-id": `dashboard_section_header_${id}`, children: [
|
|
32834
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-md font-medium text-gray-700", "data-id": `dashboard_section_title_${id}`, children: title }),
|
|
32835
|
-
description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-gray-500", "data-id": `dashboard_section_description_${id}`, children: description })
|
|
32850
|
+
title && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full", "data-test-id": `dashboard_section_header_${id}`, children: [
|
|
32851
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-md font-medium text-gray-700", "data-test-id": `dashboard_section_title_${id}`, children: title }),
|
|
32852
|
+
description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-gray-500", "data-test-id": `dashboard_section_description_${id}`, children: description })
|
|
32836
32853
|
] }),
|
|
32837
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col sm:flex-row gap-[16px]", "data-id": `dashboard_section_metrics_${id}`, children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
32838
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": `dashboard_section_metric_skeleton_${id}_0`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32839
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": `dashboard_section_metric_skeleton_${id}_1`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32840
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": `dashboard_section_metric_skeleton_${id}_2`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32841
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": `dashboard_section_metric_skeleton_${id}_3`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) })
|
|
32842
|
-
] }) : getUpdatedMetrics().map((metric, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": `dashboard_section_metric_${id}_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32854
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col sm:flex-row gap-[16px]", "data-test-id": `dashboard_section_metrics_${id}`, children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
32855
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": `dashboard_section_metric_skeleton_${id}_0`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32856
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": `dashboard_section_metric_skeleton_${id}_1`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32857
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": `dashboard_section_metric_skeleton_${id}_2`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) }),
|
|
32858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": `dashboard_section_metric_skeleton_${id}_3`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCardSkeleton, {}) })
|
|
32859
|
+
] }) : getUpdatedMetrics().map((metric, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": `dashboard_section_metric_${id}_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32843
32860
|
MetricCard,
|
|
32844
32861
|
{
|
|
32845
32862
|
data: metric,
|
|
@@ -32847,8 +32864,8 @@ const DashboardSection = ({
|
|
|
32847
32864
|
isFirst: index === 0
|
|
32848
32865
|
}
|
|
32849
32866
|
) }, `${id}-metric-${index}`)) }),
|
|
32850
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", "data-id": `dashboard_section_subtitle_${id}`, children: [
|
|
32851
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-id": `dashboard_section_current_metric_${id}`, children: getCurrentMetric() && /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-md font-medium text-gray-700", "data-id": `dashboard_section_current_metric_title_${id}`, children: (_a = getCurrentMetric()) == null ? void 0 : _a.title }) }),
|
|
32867
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", "data-test-id": `dashboard_section_subtitle_${id}`, children: [
|
|
32868
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test-id": `dashboard_section_current_metric_${id}`, children: getCurrentMetric() && /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-md font-medium text-gray-700", "data-test-id": `dashboard_section_current_metric_title_${id}`, children: (_a = getCurrentMetric()) == null ? void 0 : _a.title }) }),
|
|
32852
32869
|
enhancedControls && /* @__PURE__ */ jsxRuntimeExports.jsx(SectionControls, { config: enhancedControls })
|
|
32853
32870
|
] }),
|
|
32854
32871
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -33017,12 +33034,6 @@ function isValid(dirtyDate) {
|
|
|
33017
33034
|
var date2 = toDate(dirtyDate);
|
|
33018
33035
|
return !isNaN(Number(date2));
|
|
33019
33036
|
}
|
|
33020
|
-
function endOfDay(dirtyDate) {
|
|
33021
|
-
requiredArgs(1, arguments);
|
|
33022
|
-
var date2 = toDate(dirtyDate);
|
|
33023
|
-
date2.setHours(23, 59, 59, 999);
|
|
33024
|
-
return date2;
|
|
33025
|
-
}
|
|
33026
33037
|
function startOfMonth(dirtyDate) {
|
|
33027
33038
|
requiredArgs(1, arguments);
|
|
33028
33039
|
var date2 = toDate(dirtyDate);
|
|
@@ -34512,19 +34523,19 @@ function TailwindDateRangePicker({ className, defaultValue, value, presetLabel:
|
|
|
34512
34523
|
});
|
|
34513
34524
|
const presets = [
|
|
34514
34525
|
{
|
|
34515
|
-
label: "
|
|
34516
|
-
value: "
|
|
34526
|
+
label: "Last 24 hours",
|
|
34527
|
+
value: "24h",
|
|
34517
34528
|
dateRange: {
|
|
34518
|
-
from:
|
|
34529
|
+
from: subDays(/* @__PURE__ */ new Date(), 1),
|
|
34519
34530
|
to: /* @__PURE__ */ new Date()
|
|
34520
34531
|
}
|
|
34521
34532
|
},
|
|
34522
34533
|
{
|
|
34523
|
-
label: "
|
|
34524
|
-
value: "
|
|
34534
|
+
label: "Last 48 hours",
|
|
34535
|
+
value: "48h",
|
|
34525
34536
|
dateRange: {
|
|
34526
|
-
from:
|
|
34527
|
-
to:
|
|
34537
|
+
from: subDays(/* @__PURE__ */ new Date(), 2),
|
|
34538
|
+
to: /* @__PURE__ */ new Date()
|
|
34528
34539
|
}
|
|
34529
34540
|
},
|
|
34530
34541
|
{
|
|
@@ -34825,20 +34836,21 @@ function TailwindDateRangePicker({ className, defaultValue, value, presetLabel:
|
|
|
34825
34836
|
const getDropdownClasses = () => {
|
|
34826
34837
|
return "fixed bg-white border border-gray-200 rounded-lg shadow-xl z-[99999]";
|
|
34827
34838
|
};
|
|
34828
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `relative ${className}`, children: [
|
|
34839
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `relative shrink-0 ${className}`, children: [
|
|
34829
34840
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
34830
34841
|
"button",
|
|
34831
34842
|
{
|
|
34832
34843
|
ref: triggerRef,
|
|
34833
34844
|
onClick: () => handleOpenChange(!open),
|
|
34834
|
-
className: `
|
|
34845
|
+
className: `w-full h-[40px] px-[14px] text-left border border-gray-300 rounded-[8px] bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 flex items-center gap-[8px] ${!date2 ? "text-gray-400" : "text-gray-700"}`,
|
|
34835
34846
|
children: [
|
|
34836
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Calendar, { className: "
|
|
34837
|
-
(() => {
|
|
34847
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Calendar, { className: "h-[20px] w-[20px] shrink-0" }),
|
|
34848
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 text-[14px] font-medium leading-[20px] overflow-hidden text-ellipsis whitespace-nowrap", children: (() => {
|
|
34838
34849
|
const displayText = formatDateRange(date2, selectedPresetLabel);
|
|
34839
34850
|
console.log("📅 Button display text:", { displayText, date: date2, selectedPresetLabel });
|
|
34840
34851
|
return displayText;
|
|
34841
|
-
})()
|
|
34852
|
+
})() }),
|
|
34853
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M4 6L8 10L12 6", stroke: "#98A2B3", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
34842
34854
|
]
|
|
34843
34855
|
}
|
|
34844
34856
|
),
|
|
@@ -35200,6 +35212,7 @@ const Dashboard = ({
|
|
|
35200
35212
|
} else if (typeof value === "string") {
|
|
35201
35213
|
const daysMap = {
|
|
35202
35214
|
"24h": 1,
|
|
35215
|
+
"48h": 2,
|
|
35203
35216
|
"7d": 7,
|
|
35204
35217
|
"30d": 30,
|
|
35205
35218
|
"90d": 90
|
|
@@ -35233,13 +35246,13 @@ const Dashboard = ({
|
|
|
35233
35246
|
onExport == null ? void 0 : onExport();
|
|
35234
35247
|
};
|
|
35235
35248
|
const isAnyChartLoading = Object.values(sectionChartLoading).some((loading) => loading);
|
|
35236
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full h-full flex flex-col overflow-hidden", className), "data-id": "dashboard_root", children: [
|
|
35237
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 w-full p-[24px] pb-[12px]", "data-id": "dashboard_header", children: [
|
|
35238
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-lg font-bold text-gray-900 w-full", "data-id": "dashboard_title", children: title }),
|
|
35239
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 w-full", "data-id": "dashboard_header_content", children: [
|
|
35240
|
-
subtitle && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-gray-500 text-xs w-full", "data-id": "dashboard_subtitle", children: subtitle }),
|
|
35241
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 justify-end flex-shrink-0", "data-id": "dashboard_global_controls", children: [
|
|
35242
|
-
(isInitialLoading || isAnyChartLoading) && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-sm medium text-gray-500", "data-id": "dashboard_loading_indicator", children: [
|
|
35249
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full h-full flex flex-col overflow-hidden", className), "data-test-id": "dashboard_root", children: [
|
|
35250
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 w-full p-[24px] pb-[12px]", "data-test-id": "dashboard_header", children: [
|
|
35251
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-lg font-bold text-gray-900 w-full", "data-test-id": "dashboard_title", children: title }),
|
|
35252
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 w-full", "data-test-id": "dashboard_header_content", children: [
|
|
35253
|
+
subtitle && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-gray-500 text-xs w-full", "data-test-id": "dashboard_subtitle", children: subtitle }),
|
|
35254
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 justify-end flex-shrink-0", "data-test-id": "dashboard_global_controls", children: [
|
|
35255
|
+
(isInitialLoading || isAnyChartLoading) && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-sm medium text-gray-500", "data-test-id": "dashboard_loading_indicator", children: [
|
|
35243
35256
|
/* @__PURE__ */ jsxRuntimeExports.jsx(RefreshCw, { className: "h-[16px] w-[16px] animate-spin" }),
|
|
35244
35257
|
"Loading..."
|
|
35245
35258
|
] }),
|
|
@@ -35318,7 +35331,7 @@ const Dashboard = ({
|
|
|
35318
35331
|
gridTemplateColumns: layout.responsive ? void 0 : `repeat(${layout.columns}, minmax(0, 1fr))`,
|
|
35319
35332
|
gap: layout.gap ? `${layout.gap}px` : void 0
|
|
35320
35333
|
},
|
|
35321
|
-
"data-id": "dashboard_sections_grid",
|
|
35334
|
+
"data-test-id": "dashboard_sections_grid",
|
|
35322
35335
|
children: dynamicSections.map((section) => {
|
|
35323
35336
|
var _a2, _b, _c, _d;
|
|
35324
35337
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -35350,7 +35363,8 @@ class TracingApiService {
|
|
|
35350
35363
|
console.log("🔧 TracingApiService initialized:", {
|
|
35351
35364
|
tracingUrl: config2.tracingUrl,
|
|
35352
35365
|
projectId: config2.projectId,
|
|
35353
|
-
hasAuth: !!config2.headers.authorization
|
|
35366
|
+
hasAuth: !!config2.headers.authorization,
|
|
35367
|
+
hasDynamicAuth: !!config2.getAuthHeaders
|
|
35354
35368
|
});
|
|
35355
35369
|
}
|
|
35356
35370
|
/**
|
|
@@ -35360,15 +35374,36 @@ class TracingApiService {
|
|
|
35360
35374
|
const encodedInput = encodeURIComponent(JSON.stringify(input));
|
|
35361
35375
|
return `${this.config.tracingUrl}/tracing/api/trpc/${endpoint}?input=${encodedInput}`;
|
|
35362
35376
|
}
|
|
35377
|
+
/**
|
|
35378
|
+
* Get current headers, refreshing auth token if callback is provided
|
|
35379
|
+
*/
|
|
35380
|
+
async getHeaders() {
|
|
35381
|
+
if (this.config.getAuthHeaders) {
|
|
35382
|
+
try {
|
|
35383
|
+
const authHeaders = await this.config.getAuthHeaders();
|
|
35384
|
+
return {
|
|
35385
|
+
...this.config.headers,
|
|
35386
|
+
authorization: authHeaders.authorization,
|
|
35387
|
+
accountid: authHeaders.accountid,
|
|
35388
|
+
userId: authHeaders.userId || this.config.headers.userId || ""
|
|
35389
|
+
};
|
|
35390
|
+
} catch (error) {
|
|
35391
|
+
console.warn("⚠️ Failed to get fresh auth headers, using static headers:", error);
|
|
35392
|
+
return this.config.headers;
|
|
35393
|
+
}
|
|
35394
|
+
}
|
|
35395
|
+
return this.config.headers;
|
|
35396
|
+
}
|
|
35363
35397
|
/**
|
|
35364
35398
|
* Helper to make GET request with proper headers
|
|
35365
35399
|
*/
|
|
35366
35400
|
async makeRequest(url) {
|
|
35367
35401
|
var _a, _b, _c;
|
|
35368
35402
|
console.log("📤 API Request:", url);
|
|
35403
|
+
const headers = await this.getHeaders();
|
|
35369
35404
|
const response = await fetch(url, {
|
|
35370
35405
|
method: "GET",
|
|
35371
|
-
headers
|
|
35406
|
+
headers
|
|
35372
35407
|
});
|
|
35373
35408
|
console.log("📥 API Response status:", response.status);
|
|
35374
35409
|
if (!response.ok) {
|
|
@@ -35755,9 +35790,10 @@ class TracingApiService {
|
|
|
35755
35790
|
try {
|
|
35756
35791
|
const url = `${this.config.tracingUrl}/aaa/api/v1/apps/${this.config.projectId}/environments?rnd=${Math.random().toString(36).substring(2, 8)}`;
|
|
35757
35792
|
console.log("🌍 Fetching environments for project:", this.config.projectId);
|
|
35793
|
+
const headers = await this.getHeaders();
|
|
35758
35794
|
const response = await fetch(url, {
|
|
35759
35795
|
method: "GET",
|
|
35760
|
-
headers
|
|
35796
|
+
headers
|
|
35761
35797
|
});
|
|
35762
35798
|
if (!response.ok) {
|
|
35763
35799
|
const errorText = await response.text();
|
|
@@ -36428,28 +36464,40 @@ class TracingUtils {
|
|
|
36428
36464
|
}
|
|
36429
36465
|
function EmptyState(props) {
|
|
36430
36466
|
const {
|
|
36431
|
-
icon = "
|
|
36467
|
+
icon = "alert",
|
|
36432
36468
|
title,
|
|
36433
36469
|
description,
|
|
36434
36470
|
actionLabel,
|
|
36435
36471
|
onAction,
|
|
36436
36472
|
className = ""
|
|
36437
36473
|
} = props;
|
|
36438
|
-
const
|
|
36439
|
-
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
-
|
|
36474
|
+
const renderIcon = () => {
|
|
36475
|
+
switch (icon) {
|
|
36476
|
+
case "search":
|
|
36477
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FileSearch, { className: "w-[24px] h-[24px] text-gray-900", strokeWidth: 1.5 });
|
|
36478
|
+
case "filter":
|
|
36479
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Filter, { className: "w-[24px] h-[24px] text-gray-900", strokeWidth: 1.5 });
|
|
36480
|
+
case "alert":
|
|
36481
|
+
default:
|
|
36482
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AlertTriangle, { className: "w-[24px] h-[24px] text-gray-900", strokeWidth: 1.5 });
|
|
36483
|
+
}
|
|
36484
|
+
};
|
|
36485
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex flex-col items-center justify-center h-full w-full px-[24px] py-[16px] ${className}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[16px] items-center w-full", children: [
|
|
36486
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-[48px] h-[48px] border border-gray-300 rounded-[10px] flex items-center justify-center shrink-0", children: renderIcon() }),
|
|
36487
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[4px] items-center text-center max-w-[352px]", children: [
|
|
36488
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[16px] font-semibold leading-[24px] text-gray-900 whitespace-nowrap", children: title }),
|
|
36489
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[14px] font-normal leading-[20px] text-gray-600 w-full", children: description })
|
|
36490
|
+
] }),
|
|
36443
36491
|
actionLabel && onAction && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
36444
36492
|
"button",
|
|
36445
36493
|
{
|
|
36446
36494
|
onClick: onAction,
|
|
36447
|
-
className: "px-
|
|
36495
|
+
className: "mt-[8px] px-[16px] py-[10px] bg-gray-900 border border-gray-700 text-white text-[14px] font-medium leading-[20px] rounded-[8px] hover:bg-gray-800 transition-colors",
|
|
36448
36496
|
"data-test-id": "empty-state-action-btn",
|
|
36449
36497
|
children: actionLabel
|
|
36450
36498
|
}
|
|
36451
36499
|
)
|
|
36452
|
-
] });
|
|
36500
|
+
] }) });
|
|
36453
36501
|
}
|
|
36454
36502
|
function LoadingSpinner(props) {
|
|
36455
36503
|
const { message = "Loading...", className = "" } = props;
|
|
@@ -44069,7 +44117,7 @@ __export(browser_exports, {
|
|
|
44069
44117
|
isInvisibleScrollbar: () => isInvisibleScrollbar,
|
|
44070
44118
|
isMacOsUserAgent: () => isMacOsUserAgent
|
|
44071
44119
|
});
|
|
44072
|
-
var isSafari;
|
|
44120
|
+
var isSafari$1;
|
|
44073
44121
|
var safariVersion;
|
|
44074
44122
|
var isChrome;
|
|
44075
44123
|
var isFirefox;
|
|
@@ -44078,10 +44126,10 @@ var isIOS;
|
|
|
44078
44126
|
var invisibleScrollbar;
|
|
44079
44127
|
var browserScrollbarWidth;
|
|
44080
44128
|
function isBrowserSafari() {
|
|
44081
|
-
if (isSafari === void 0) {
|
|
44082
|
-
isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
44129
|
+
if (isSafari$1 === void 0) {
|
|
44130
|
+
isSafari$1 = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
44083
44131
|
}
|
|
44084
|
-
return isSafari;
|
|
44132
|
+
return isSafari$1;
|
|
44085
44133
|
}
|
|
44086
44134
|
function getSafariVersion() {
|
|
44087
44135
|
if (safariVersion === void 0) {
|
|
@@ -104490,7 +104538,6 @@ function TracingTable(props) {
|
|
|
104490
104538
|
onRowClick,
|
|
104491
104539
|
onSortChange,
|
|
104492
104540
|
className = "",
|
|
104493
|
-
emptyStateMessage = "No data available",
|
|
104494
104541
|
hasInitiallyLoaded: hasInitiallyLoadedProp
|
|
104495
104542
|
} = props;
|
|
104496
104543
|
const hasInitiallyLoaded = hasInitiallyLoadedProp === true;
|
|
@@ -104570,8 +104617,16 @@ function TracingTable(props) {
|
|
|
104570
104617
|
}
|
|
104571
104618
|
);
|
|
104572
104619
|
}
|
|
104620
|
+
const showEmptyState = hasInitiallyLoaded && !loading && data.length === 0;
|
|
104573
104621
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `flex flex-col h-full tracing-table-with-pagination rounded-[8px] border border-gray-300 ${className}`, children: [
|
|
104574
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
104622
|
+
showEmptyState ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104623
|
+
EmptyState,
|
|
104624
|
+
{
|
|
104625
|
+
icon: "alert",
|
|
104626
|
+
title: "There is no data to display for the selected filters",
|
|
104627
|
+
description: "Try adjusting the filters or ensure your agentic app is deployed and receiving traffic."
|
|
104628
|
+
}
|
|
104629
|
+
) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 ag-theme-alpine relative w-full overflow-auto", children: [
|
|
104575
104630
|
loading && hasInitiallyLoaded && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center z-10", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center gap-3", children: [
|
|
104576
104631
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600" }),
|
|
104577
104632
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-gray-600 text-sm font-medium", children: "Loading..." })
|
|
@@ -104591,13 +104646,7 @@ function TracingTable(props) {
|
|
|
104591
104646
|
rowHeight: 52,
|
|
104592
104647
|
animateRows: true,
|
|
104593
104648
|
enableCellTextSelection: true,
|
|
104594
|
-
suppressNoRowsOverlay:
|
|
104595
|
-
overlayNoRowsTemplate: `<div class="flex flex-col items-center justify-center h-full text-gray-500">
|
|
104596
|
-
<svg class="w-12 h-12 mb-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
104597
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
104598
|
-
</svg>
|
|
104599
|
-
<p class="text-sm">${emptyStateMessage}</p>
|
|
104600
|
-
</div>`
|
|
104649
|
+
suppressNoRowsOverlay: true
|
|
104601
104650
|
}
|
|
104602
104651
|
)
|
|
104603
104652
|
] }),
|
|
@@ -104675,7 +104724,7 @@ function TracingListHeader(props) {
|
|
|
104675
104724
|
title,
|
|
104676
104725
|
description,
|
|
104677
104726
|
searchConfig,
|
|
104678
|
-
searchPlaceholder = "Search
|
|
104727
|
+
searchPlaceholder = "Search by Session ID, Trace ID ,...",
|
|
104679
104728
|
searchValue = "",
|
|
104680
104729
|
onSearchChange,
|
|
104681
104730
|
showSearch = true,
|
|
@@ -104757,21 +104806,21 @@ function TracingListHeader(props) {
|
|
|
104757
104806
|
onTimeRangeChange(normalizedDateRange, presetLabel);
|
|
104758
104807
|
}
|
|
104759
104808
|
};
|
|
104760
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-
|
|
104761
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-
|
|
104762
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-
|
|
104763
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-gray-
|
|
104764
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-
|
|
104765
|
-
showSearch && (useAdvancedSearch || onSearchChange) && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-stretch h-[40px] border border-gray-300 bg-white rounded-
|
|
104766
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center
|
|
104809
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[8px] w-full pt-[24px] pb-[8px] px-[24px] bg-white", children: [
|
|
104810
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-[8px]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-[18px] font-semibold leading-[28px] text-gray-900", children: title }) }) }),
|
|
104811
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[16px] justify-end w-full", children: [
|
|
104812
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "flex-1 min-w-0 text-[12px] font-normal leading-[16px] text-gray-600 overflow-hidden text-ellipsis line-clamp-1", children: description }),
|
|
104813
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] shrink-0", children: [
|
|
104814
|
+
showSearch && (useAdvancedSearch || onSearchChange) && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-stretch h-[40px] border border-gray-300 bg-white rounded-[8px] w-[220px] overflow-hidden", children: [
|
|
104815
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center flex-1 px-[14px] py-[10px] gap-[8px]", children: [
|
|
104767
104816
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104768
104817
|
"button",
|
|
104769
104818
|
{
|
|
104770
104819
|
onClick: handleSearchSubmit,
|
|
104771
|
-
className: "flex items-center justify-center
|
|
104820
|
+
className: "flex items-center justify-center text-gray-500 hover:text-gray-600 shrink-0",
|
|
104772
104821
|
title: "Search",
|
|
104773
104822
|
type: "button",
|
|
104774
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Search, { className: "w-
|
|
104823
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Search, { className: "w-[16px] h-[16px]", strokeWidth: 1.5 })
|
|
104775
104824
|
}
|
|
104776
104825
|
),
|
|
104777
104826
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -104786,7 +104835,7 @@ function TracingListHeader(props) {
|
|
|
104786
104835
|
handleSearchSubmit();
|
|
104787
104836
|
}
|
|
104788
104837
|
},
|
|
104789
|
-
className: "
|
|
104838
|
+
className: "flex-1 text-[14px] leading-[20px] text-gray-900 placeholder:text-gray-400 bg-transparent border-none outline-none overflow-hidden text-ellipsis whitespace-nowrap",
|
|
104790
104839
|
"data-test-id": "tracing-list-search-input"
|
|
104791
104840
|
}
|
|
104792
104841
|
)
|
|
@@ -104832,23 +104881,23 @@ function TracingListHeader(props) {
|
|
|
104832
104881
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104833
104882
|
TailwindDateRangePicker,
|
|
104834
104883
|
{
|
|
104835
|
-
defaultValue: typeof timeRange === "string" ? timeRange === "7 days" ? "7d" : timeRange === "30 days" ? "30d" : timeRange === "90 days" ? "30d" : timeRange === "24 hours" ? "
|
|
104884
|
+
defaultValue: typeof timeRange === "string" ? timeRange === "7 days" ? "7d" : timeRange === "30 days" ? "30d" : timeRange === "90 days" ? "30d" : timeRange === "24 hours" ? "24h" : timeRange === "1 hour" ? "24h" : "7d" : "7d",
|
|
104836
104885
|
value: typeof timeRange === "object" ? timeRange : void 0,
|
|
104837
104886
|
presetLabel: timeRangePresetLabel,
|
|
104838
104887
|
onDateRangeChange: handleDateRangeChange,
|
|
104839
|
-
className: "
|
|
104888
|
+
className: "w-[190px]"
|
|
104840
104889
|
}
|
|
104841
104890
|
),
|
|
104842
104891
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
104843
104892
|
"button",
|
|
104844
104893
|
{
|
|
104845
104894
|
onClick: onFiltersClick,
|
|
104846
|
-
className: `inline-flex items-center h-[40px] px-
|
|
104895
|
+
className: `inline-flex items-center justify-center h-[40px] px-[16px] py-[8px] gap-[8px] border rounded-[8px] text-[14px] font-medium leading-[20px] ${TracingUtils.getActiveFiltersCount(filters) > 0 ? "border-blue-600 text-blue-700 bg-blue-50" : "border-gray-300 text-gray-700 bg-white hover:bg-gray-50"}`,
|
|
104847
104896
|
"data-test-id": "tracing-list-filters-btn",
|
|
104848
104897
|
children: [
|
|
104849
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104898
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M1.33325 3.06667C1.33325 2.6933 1.33325 2.50661 1.40599 2.36401C1.46991 2.23856 1.57189 2.13658 1.69734 2.07266C1.83994 2 2.02663 2 2.39992 2H13.5999C13.9732 2 14.1599 2 14.3025 2.07266C14.4279 2.13658 14.5299 2.23856 14.5939 2.36401C14.6666 2.50661 14.6666 2.6933 14.6666 3.06667V3.51294C14.6666 3.69214 14.6666 3.78173 14.6447 3.86505C14.6253 3.93888 14.5933 4.00882 14.5503 4.07184C14.5016 4.14295 14.4339 4.20164 14.2986 4.31901L10.0348 8.01433C9.89929 8.1317 9.83154 8.19039 9.78291 8.26149C9.73989 8.32451 9.70798 8.39445 9.68859 8.46828C9.66659 8.5516 9.66659 8.64119 9.66659 8.82039V12.3056C9.66659 12.4359 9.66659 12.5011 9.64556 12.5575C9.62697 12.6073 9.59675 12.6519 9.55749 12.6877C9.51299 12.7281 9.45246 12.7524 9.33139 12.8008L7.06472 13.7074C6.81963 13.8054 6.69709 13.8545 6.59876 13.834C6.51276 13.8161 6.43728 13.765 6.38875 13.6918C6.33325 13.6081 6.33325 13.4761 6.33325 13.2122V8.82039C6.33325 8.64119 6.33325 8.5516 6.31126 8.46828C6.29187 8.39445 6.25996 8.32451 6.21693 8.26149C6.16831 8.19039 6.10055 8.1317 5.96505 8.01433L1.70127 4.319C1.56591 4.20164 1.49823 4.14295 1.44959 4.07184C1.40656 4.00882 1.37456 3.93888 1.35516 3.86505C1.33325 3.78173 1.33325 3.69214 1.33325 3.51294V3.06667Z", stroke: "currentColor", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
104850
104899
|
"Filters",
|
|
104851
|
-
TracingUtils.getActiveFiltersCount(filters) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "
|
|
104900
|
+
TracingUtils.getActiveFiltersCount(filters) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "px-[8px] py-[2px] bg-blue-600 text-white text-[12px] leading-[16px] rounded-full", "data-test-id": "tracing-list-active-filters-count", children: TracingUtils.getActiveFiltersCount(filters) })
|
|
104852
104901
|
]
|
|
104853
104902
|
}
|
|
104854
104903
|
),
|
|
@@ -104856,10 +104905,10 @@ function TracingListHeader(props) {
|
|
|
104856
104905
|
"button",
|
|
104857
104906
|
{
|
|
104858
104907
|
onClick: onModifyColumnsClick,
|
|
104859
|
-
className: "inline-flex items-center justify-center w-
|
|
104908
|
+
className: "inline-flex items-center justify-center w-[40px] h-[40px] p-[8px] border border-gray-300 rounded-[8px] bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
104860
104909
|
title: "Modify Columns",
|
|
104861
104910
|
"data-test-id": "tracing-list-modify-columns-btn",
|
|
104862
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M3.33333 14L3.33333 10M3.33333 10C4.06971 10 4.66667 9.40305 4.66667 8.66667C4.66667 7.93029 4.06971 7.33333 3.33333 7.33333C2.59695 7.33333 2 7.93029 2 8.66667C2 9.40305 2.59695 10 3.33333 10ZM3.33333 4.66667V2M8 14V10M8 4.66667V2M8 4.66667C7.26362 4.66667 6.66667 5.26362 6.66667 6C6.66667 6.73638 7.26362 7.33333 8 7.33333C8.73638 7.33333 9.33333 6.73638 9.33333 6C9.33333 5.26362 8.73638 4.66667 8 4.66667ZM12.6667 14V11.3333M12.6667 11.3333C13.403 11.3333 14 10.7364 14 10C14 9.26362 13.403 8.66667 12.6667 8.66667C11.9303 8.66667 11.3333 9.26362 11.3333 10C11.3333 10.7364 11.9303 11.3333 12.6667 11.3333ZM12.6667 6V2", stroke: "#344054", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
104911
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M3.33333 14L3.33333 10M3.33333 10C4.06971 10 4.66667 9.40305 4.66667 8.66667C4.66667 7.93029 4.06971 7.33333 3.33333 7.33333C2.59695 7.33333 2 7.93029 2 8.66667C2 9.40305 2.59695 10 3.33333 10ZM3.33333 4.66667V2M8 14V10M8 4.66667V2M8 4.66667C7.26362 4.66667 6.66667 5.26362 6.66667 6C6.66667 6.73638 7.26362 7.33333 8 7.33333C8.73638 7.33333 9.33333 6.73638 9.33333 6C9.33333 5.26362 8.73638 4.66667 8 4.66667ZM12.6667 14V11.3333M12.6667 11.3333C13.403 11.3333 14 10.7364 14 10C14 9.26362 13.403 8.66667 12.6667 8.66667C11.9303 8.66667 11.3333 9.26362 11.3333 10C11.3333 10.7364 11.9303 11.3333 12.6667 11.3333ZM12.6667 6V2", stroke: "#344054", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
104863
104912
|
}
|
|
104864
104913
|
)
|
|
104865
104914
|
] })
|
|
@@ -104907,42 +104956,45 @@ function ColumnCustomization(props) {
|
|
|
104907
104956
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104908
104957
|
"div",
|
|
104909
104958
|
{
|
|
104910
|
-
className: "fixed inset-0 bg-black bg-opacity-50 z-40 transition-opacity duration-300 ease-in-out"
|
|
104959
|
+
className: "fixed inset-0 bg-black bg-opacity-50 z-40 transition-opacity duration-300 ease-in-out",
|
|
104960
|
+
onClick: handleCancel
|
|
104911
104961
|
}
|
|
104912
104962
|
),
|
|
104913
104963
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
104914
104964
|
"div",
|
|
104915
104965
|
{
|
|
104916
|
-
className: `fixed top-0 right-0 bottom-0 z-50 bg-white shadow-
|
|
104966
|
+
className: `fixed top-0 right-0 bottom-0 z-50 bg-white shadow-[0px_20px_24px_-4px_rgba(16,24,40,0.08),0px_8px_8px_-4px_rgba(16,24,40,0.03)] flex flex-col animate-slideIn ${className}`,
|
|
104917
104967
|
style: { width: "540px" },
|
|
104918
104968
|
children: [
|
|
104919
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center
|
|
104920
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-
|
|
104969
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[16px] px-[24px] py-[12px] border_default_bottom shrink-0", children: [
|
|
104970
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-[16px] flex-1 h-[44px]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-[18px] font-semibold leading-[28px] text-gray-900 flex-1", children: "Modify Columns" }) }),
|
|
104921
104971
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104922
104972
|
"button",
|
|
104923
104973
|
{
|
|
104924
104974
|
onClick: handleCancel,
|
|
104925
|
-
className: "
|
|
104975
|
+
className: "w-[32px] h-[32px] flex items-center justify-center rounded-md hover:bg-gray-100",
|
|
104926
104976
|
title: "Close",
|
|
104927
104977
|
"data-test-id": "column-customization-close-btn",
|
|
104928
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-
|
|
104978
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-[16px] h-[16px] text-gray-900", strokeWidth: 2 })
|
|
104929
104979
|
}
|
|
104930
104980
|
)
|
|
104931
104981
|
] }),
|
|
104932
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto
|
|
104933
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-
|
|
104934
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-
|
|
104935
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-
|
|
104936
|
-
|
|
104937
|
-
|
|
104938
|
-
|
|
104982
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-[24px]", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[16px]", children: [
|
|
104983
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-center gap-[10px] w-full", children: [
|
|
104984
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] flex-1 whitespace-nowrap", children: [
|
|
104985
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-[14px] leading-[20px]", children: [
|
|
104986
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "font-medium text-gray-900", children: [
|
|
104987
|
+
visibleCount,
|
|
104988
|
+
"/",
|
|
104989
|
+
totalCount
|
|
104990
|
+
] }),
|
|
104991
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-gray-600", children: " columns selected" })
|
|
104939
104992
|
] }),
|
|
104940
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-gray-600", children: "columns selected" }),
|
|
104941
104993
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104942
104994
|
"button",
|
|
104943
104995
|
{
|
|
104944
104996
|
onClick: handleClearSelection,
|
|
104945
|
-
className: "text-
|
|
104997
|
+
className: "text-[14px] font-medium leading-[20px] text-blue-600 hover:text-blue-700",
|
|
104946
104998
|
"data-test-id": "column-customization-clear-selection-btn",
|
|
104947
104999
|
children: "Clear selection"
|
|
104948
105000
|
}
|
|
@@ -104952,7 +105004,7 @@ function ColumnCustomization(props) {
|
|
|
104952
105004
|
"button",
|
|
104953
105005
|
{
|
|
104954
105006
|
onClick: handleRevertToDefault,
|
|
104955
|
-
className: "text-
|
|
105007
|
+
className: "text-[14px] font-medium leading-[20px] text-gray-700 hover:text-gray-900 shrink-0",
|
|
104956
105008
|
"data-test-id": "column-customization-revert-default-btn",
|
|
104957
105009
|
children: "Revert to default"
|
|
104958
105010
|
}
|
|
@@ -104964,57 +105016,64 @@ function ColumnCustomization(props) {
|
|
|
104964
105016
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104965
105017
|
"div",
|
|
104966
105018
|
{
|
|
104967
|
-
className: "
|
|
104968
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: `flex items-
|
|
104969
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
104970
|
-
|
|
104971
|
-
|
|
104972
|
-
|
|
104973
|
-
|
|
104974
|
-
|
|
104975
|
-
|
|
104976
|
-
|
|
104977
|
-
|
|
104978
|
-
|
|
104979
|
-
|
|
104980
|
-
|
|
104981
|
-
|
|
104982
|
-
|
|
104983
|
-
|
|
104984
|
-
|
|
104985
|
-
|
|
104986
|
-
|
|
105019
|
+
className: "border_secondary_top border_secondary_bottom p-[12px] -mb-px first:mb-0",
|
|
105020
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: `flex items-start gap-[12px] ${isDisabled ? "cursor-not-allowed" : "cursor-pointer"}`, children: [
|
|
105021
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-center shrink-0", children: [
|
|
105022
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105023
|
+
"div",
|
|
105024
|
+
{
|
|
105025
|
+
className: `w-[20px] h-[20px] rounded-[6px] flex items-center justify-center transition-colors ${isChecked ? isDisabled ? "bg-blue-200 border border-blue-200" : "bg-blue-600 border border-blue-600" : "bg-white border border-gray-300"} ${isDisabled ? "opacity-50" : ""}`,
|
|
105026
|
+
onClick: () => !isDisabled && toggleColumn(col.field),
|
|
105027
|
+
children: isChecked && /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "w-[14px] h-[14px] text-white", strokeWidth: 2.5 })
|
|
105028
|
+
}
|
|
105029
|
+
),
|
|
105030
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105031
|
+
"input",
|
|
105032
|
+
{
|
|
105033
|
+
type: "checkbox",
|
|
105034
|
+
checked: isChecked,
|
|
105035
|
+
disabled: isDisabled,
|
|
105036
|
+
onChange: () => !isDisabled && toggleColumn(col.field),
|
|
105037
|
+
className: "sr-only",
|
|
105038
|
+
"data-test-id": `column-customization-checkbox-${col.field}`
|
|
105039
|
+
}
|
|
105040
|
+
)
|
|
105041
|
+
] }),
|
|
105042
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
104987
105043
|
"span",
|
|
104988
105044
|
{
|
|
104989
|
-
className: `text-
|
|
105045
|
+
className: `flex-1 text-[14px] font-medium leading-[20px] ${isDisabled ? "text-gray-700" : "text-gray-700"}`,
|
|
104990
105046
|
children: col.headerName
|
|
104991
105047
|
}
|
|
104992
|
-
)
|
|
105048
|
+
)
|
|
104993
105049
|
] })
|
|
104994
105050
|
},
|
|
104995
105051
|
col.field
|
|
104996
105052
|
);
|
|
104997
105053
|
}) })
|
|
104998
105054
|
] }) }),
|
|
104999
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "
|
|
105000
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105001
|
-
|
|
105002
|
-
|
|
105003
|
-
|
|
105004
|
-
|
|
105005
|
-
|
|
105006
|
-
|
|
105007
|
-
|
|
105008
|
-
|
|
105009
|
-
|
|
105010
|
-
|
|
105011
|
-
|
|
105012
|
-
|
|
105013
|
-
|
|
105014
|
-
|
|
105015
|
-
|
|
105016
|
-
|
|
105017
|
-
|
|
105055
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] px-[24px] py-[12px] border_default_top shrink-0", children: [
|
|
105056
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1" }),
|
|
105057
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
105058
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105059
|
+
"button",
|
|
105060
|
+
{
|
|
105061
|
+
onClick: handleCancel,
|
|
105062
|
+
className: "px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-gray-700 bg-white border border-gray-300 rounded-[8px] hover:bg-gray-50",
|
|
105063
|
+
"data-test-id": "column-customization-cancel-btn",
|
|
105064
|
+
children: "Cancel"
|
|
105065
|
+
}
|
|
105066
|
+
),
|
|
105067
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105068
|
+
"button",
|
|
105069
|
+
{
|
|
105070
|
+
onClick: handleSave,
|
|
105071
|
+
className: "px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-white bg-gray-900 border border-gray-700 rounded-[8px] hover:bg-gray-800",
|
|
105072
|
+
"data-test-id": "column-customization-save-btn",
|
|
105073
|
+
children: "Save"
|
|
105074
|
+
}
|
|
105075
|
+
)
|
|
105076
|
+
] })
|
|
105018
105077
|
] })
|
|
105019
105078
|
]
|
|
105020
105079
|
}
|
|
@@ -105127,8 +105186,8 @@ function FilterPanel(props) {
|
|
|
105127
105186
|
{
|
|
105128
105187
|
type: "text",
|
|
105129
105188
|
disabled: true,
|
|
105130
|
-
placeholder: "Enter
|
|
105131
|
-
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-
|
|
105189
|
+
placeholder: "Enter Value",
|
|
105190
|
+
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-[8px] text-[14px] leading-[20px] text-gray-400 bg-white"
|
|
105132
105191
|
}
|
|
105133
105192
|
);
|
|
105134
105193
|
}
|
|
@@ -105160,7 +105219,7 @@ function FilterPanel(props) {
|
|
|
105160
105219
|
const date2 = e3.target.value ? new Date(e3.target.value).toISOString() : "";
|
|
105161
105220
|
handleFilterChange(index, "value", date2);
|
|
105162
105221
|
},
|
|
105163
|
-
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-
|
|
105222
|
+
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-[8px] text-[14px] leading-[20px] text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
|
|
105164
105223
|
"data-test-id": `filter-panel-datetime-input-${index}`
|
|
105165
105224
|
}
|
|
105166
105225
|
);
|
|
@@ -105174,8 +105233,8 @@ function FilterPanel(props) {
|
|
|
105174
105233
|
const numValue = e3.target.value === "" ? void 0 : Number(e3.target.value);
|
|
105175
105234
|
handleFilterChange(index, "value", numValue);
|
|
105176
105235
|
},
|
|
105177
|
-
placeholder: "Enter
|
|
105178
|
-
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-
|
|
105236
|
+
placeholder: "Enter Value",
|
|
105237
|
+
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-[8px] text-[14px] leading-[20px] text-gray-900 bg-white placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
|
|
105179
105238
|
"data-test-id": `filter-panel-number-input-${index}`
|
|
105180
105239
|
}
|
|
105181
105240
|
);
|
|
@@ -105202,8 +105261,8 @@ function FilterPanel(props) {
|
|
|
105202
105261
|
type: "text",
|
|
105203
105262
|
value: filter.value ?? "",
|
|
105204
105263
|
onChange: (e3) => handleFilterChange(index, "value", e3.target.value),
|
|
105205
|
-
placeholder: "Enter
|
|
105206
|
-
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-
|
|
105264
|
+
placeholder: "Enter Value",
|
|
105265
|
+
className: "w-full h-[40px] px-[14px] py-[10px] border border-gray-300 rounded-[8px] text-[14px] leading-[20px] text-gray-900 bg-white placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
|
|
105207
105266
|
"data-test-id": `filter-panel-text-input-${index}`
|
|
105208
105267
|
}
|
|
105209
105268
|
);
|
|
@@ -105213,24 +105272,24 @@ function FilterPanel(props) {
|
|
|
105213
105272
|
return operator;
|
|
105214
105273
|
};
|
|
105215
105274
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `bg-white shadow-[0px_20px_24px_-4px_rgba(16,24,40,0.08),0px_8px_8px_-4px_rgba(16,24,40,0.03)] w-full h-full flex flex-col ${className}`, children: [
|
|
105216
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center
|
|
105217
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-
|
|
105218
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-
|
|
105219
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-
|
|
105275
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[16px] px-[24px] py-[12px] border_default_bottom shrink-0", children: [
|
|
105276
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[16px] flex-1 h-[44px]", children: [
|
|
105277
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-[40px] h-[40px] border border-gray-300 rounded-[8px] flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M1.66675 3.83333C1.66675 3.36662 1.66675 3.13327 1.75758 2.95501C1.83747 2.79821 1.96496 2.67072 2.12175 2.59083C2.30001 2.5 2.53337 2.5 3.00008 2.5H17.0001C17.4668 2.5 17.7001 2.5 17.8784 2.59083C18.0352 2.67072 18.1627 2.79821 18.2426 2.95501C18.3334 3.13327 18.3334 3.36662 18.3334 3.83333V4.39117C18.3334 4.61517 18.3334 4.72716 18.306 4.83131C18.2818 4.9236 18.2418 5.01103 18.188 5.0898C18.1272 5.17869 18.0426 5.25205 17.8733 5.39876L12.5435 10.0179C12.3742 10.1646 12.2896 10.238 12.2288 10.3269C12.175 10.4057 12.135 10.4931 12.1108 10.5854C12.0834 10.6895 12.0834 10.8015 12.0834 11.0255V15.382C12.0834 15.5449 12.0834 15.6263 12.0571 15.6969C12.0338 15.7591 11.9961 15.8149 11.947 15.8596C11.8913 15.9102 11.8157 15.9405 11.6643 16.001L8.83099 17.1343C8.52471 17.2568 8.37156 17.3181 8.24862 17.2925C8.14112 17.2702 8.04678 17.2063 7.98611 17.1148C7.91675 17.0101 7.91675 16.8452 7.91675 16.5153V11.0255C7.91675 10.8015 7.91675 10.6895 7.88937 10.5854C7.86511 10.4931 7.82518 10.4057 7.77133 10.3269C7.71055 10.238 7.62593 10.1646 7.45665 10.0179L2.12684 5.39875C1.95756 5.25205 1.87293 5.17869 1.81215 5.0898C1.75829 5.01103 1.71837 4.9236 1.69411 4.83131C1.66675 4.72716 1.66675 4.61517 1.66675 4.39117V3.83333Z", stroke: "#475467", strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
105278
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-[18px] font-semibold leading-[28px] text-gray-900", children: title })
|
|
105220
105279
|
] }),
|
|
105221
105280
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105222
105281
|
"button",
|
|
105223
105282
|
{
|
|
105224
105283
|
onClick: handleCancel,
|
|
105225
|
-
className: "
|
|
105284
|
+
className: "w-[32px] h-[32px] flex items-center justify-center rounded-md hover:bg-gray-100",
|
|
105226
105285
|
title: "Close",
|
|
105227
105286
|
"data-test-id": "filter-panel-close-btn",
|
|
105228
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-
|
|
105287
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-[16px] h-[16px] text-gray-900", strokeWidth: 2 })
|
|
105229
105288
|
}
|
|
105230
105289
|
)
|
|
105231
105290
|
] }),
|
|
105232
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto
|
|
105233
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105291
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-[24px]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col gap-[16px]", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[16px]", children: [
|
|
105292
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col gap-[8px]", children: wipFilters.map((filter, index) => {
|
|
105234
105293
|
const column = filter.column ? availableColumns.find((c3) => c3.field === filter.column) : void 0;
|
|
105235
105294
|
const operators = column ? column.operators : filter.type ? getOperatorsForType(filter.type) : [];
|
|
105236
105295
|
const parameterOptions = availableColumns.map((col) => ({
|
|
@@ -105241,71 +105300,72 @@ function FilterPanel(props) {
|
|
|
105241
105300
|
label: formatOperator(op),
|
|
105242
105301
|
value: op
|
|
105243
105302
|
}));
|
|
105244
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("
|
|
105245
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105246
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105303
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
105304
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-[50px] shrink-0 text-[14px] font-medium leading-[20px] text-gray-900 whitespace-nowrap overflow-hidden text-ellipsis", children: index === 0 ? "Where" : "And" }),
|
|
105305
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105247
105306
|
Select,
|
|
105248
105307
|
{
|
|
105249
105308
|
options: parameterOptions,
|
|
105250
105309
|
value: filter.column || "",
|
|
105251
105310
|
onChange: (value) => handleFilterChange(index, "column", value),
|
|
105252
|
-
placeholder: "
|
|
105253
|
-
className: "
|
|
105311
|
+
placeholder: "Select Parameter",
|
|
105312
|
+
className: "w-full"
|
|
105254
105313
|
}
|
|
105255
105314
|
) }),
|
|
105256
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105315
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105257
105316
|
Select,
|
|
105258
105317
|
{
|
|
105259
105318
|
options: operatorOptions,
|
|
105260
105319
|
value: filter.operator || "",
|
|
105261
105320
|
onChange: (value) => handleFilterChange(index, "operator", value),
|
|
105262
|
-
placeholder: "Operator",
|
|
105321
|
+
placeholder: "Select Operator",
|
|
105263
105322
|
disabled: !filter.column,
|
|
105264
|
-
className: "
|
|
105323
|
+
className: "w-full"
|
|
105265
105324
|
}
|
|
105266
105325
|
) }),
|
|
105267
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105268
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
105326
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: renderValueInput(filter, index) }),
|
|
105327
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center py-[10px] shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105269
105328
|
"button",
|
|
105270
105329
|
{
|
|
105271
105330
|
onClick: () => handleRemoveFilter(index),
|
|
105272
|
-
className: "
|
|
105331
|
+
className: "text-gray-500 hover:text-gray-700",
|
|
105273
105332
|
title: "Remove filter",
|
|
105274
105333
|
"data-test-id": `filter-panel-delete-filter-${index}`,
|
|
105275
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "w-
|
|
105334
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "w-[16px] h-[16px]", strokeWidth: 1.5 })
|
|
105276
105335
|
}
|
|
105277
105336
|
) })
|
|
105278
105337
|
] }, `filter-${index}`);
|
|
105279
|
-
}) })
|
|
105280
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex gap-
|
|
105338
|
+
}) }),
|
|
105339
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex gap-[8px] items-start", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
105281
105340
|
"button",
|
|
105282
105341
|
{
|
|
105283
105342
|
onClick: handleAddFilter,
|
|
105284
|
-
className: "inline-flex items-center gap-
|
|
105343
|
+
className: "inline-flex items-center gap-[8px] px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-blue-700 bg-white border border-blue-300 rounded-[8px] hover:bg-blue-50",
|
|
105285
105344
|
"data-test-id": "filter-panel-add-filter-btn",
|
|
105286
105345
|
children: [
|
|
105287
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { className: "w-
|
|
105346
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { className: "w-[16px] h-[16px]", strokeWidth: 2 }),
|
|
105288
105347
|
"New filter"
|
|
105289
105348
|
]
|
|
105290
105349
|
}
|
|
105291
105350
|
) })
|
|
105292
|
-
] }) }),
|
|
105293
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "
|
|
105351
|
+
] }) }) }),
|
|
105352
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] px-[24px] py-[12px] border_default_top shrink-0", children: [
|
|
105294
105353
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105295
105354
|
"button",
|
|
105296
105355
|
{
|
|
105297
105356
|
onClick: handleReset,
|
|
105298
|
-
className: "px-
|
|
105357
|
+
className: "px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-gray-700 bg-white border border-gray-300 rounded-[8px] hover:bg-gray-50",
|
|
105299
105358
|
"data-test-id": "filter-panel-reset-btn",
|
|
105300
105359
|
children: "Reset filters"
|
|
105301
105360
|
}
|
|
105302
105361
|
),
|
|
105303
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
105362
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1" }),
|
|
105363
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
105304
105364
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
105305
105365
|
"button",
|
|
105306
105366
|
{
|
|
105307
105367
|
onClick: handleCancel,
|
|
105308
|
-
className: "px-
|
|
105368
|
+
className: "px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-gray-700 bg-white border border-gray-300 rounded-[8px] hover:bg-gray-50",
|
|
105309
105369
|
"data-test-id": "filter-panel-cancel-btn",
|
|
105310
105370
|
children: "Cancel"
|
|
105311
105371
|
}
|
|
@@ -105314,7 +105374,7 @@ function FilterPanel(props) {
|
|
|
105314
105374
|
"button",
|
|
105315
105375
|
{
|
|
105316
105376
|
onClick: handleApply,
|
|
105317
|
-
className: "px-
|
|
105377
|
+
className: "px-[16px] py-[10px] text-[14px] font-medium leading-[20px] text-white bg-gray-900 border border-gray-700 rounded-[8px] hover:bg-gray-800",
|
|
105318
105378
|
"data-test-id": "filter-panel-apply-btn",
|
|
105319
105379
|
children: "Apply"
|
|
105320
105380
|
}
|
|
@@ -106507,27 +106567,16 @@ function TraceTree({
|
|
|
106507
106567
|
showTraceId && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-[8px] items-center justify-end px-0 py-[4px] w-full", children: [
|
|
106508
106568
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[10px] leading-[12px] text-[#98A2B3]", children: "Trace ID" }),
|
|
106509
106569
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium text-[10px] leading-[12px] text-[#667085]", children: trace.id }),
|
|
106510
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
106511
|
-
|
|
106512
|
-
|
|
106513
|
-
|
|
106514
|
-
|
|
106515
|
-
|
|
106516
|
-
|
|
106517
|
-
|
|
106518
|
-
|
|
106519
|
-
|
|
106520
|
-
),
|
|
106521
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
106522
|
-
"button",
|
|
106523
|
-
{
|
|
106524
|
-
className: "p-0 opacity-60 hover:opacity-100 transition-opacity",
|
|
106525
|
-
title: "Open trace details",
|
|
106526
|
-
"data-test-id": `trace-tree-external-link-btn-${trace.id}`,
|
|
106527
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "w-[12px] h-[12px] text-[#98A2B3]" })
|
|
106528
|
-
}
|
|
106529
|
-
)
|
|
106530
|
-
] })
|
|
106570
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
106571
|
+
"button",
|
|
106572
|
+
{
|
|
106573
|
+
onClick: handleCopyTraceId,
|
|
106574
|
+
className: "p-0 opacity-60 hover:opacity-100 transition-opacity",
|
|
106575
|
+
title: "Copy trace ID",
|
|
106576
|
+
"data-test-id": `trace-tree-copy-id-btn-${trace.id}`,
|
|
106577
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { className: `w-[12px] h-[12px] ${copied ? "text-[#17B26A]" : "text-[#98A2B3]"}` })
|
|
106578
|
+
}
|
|
106579
|
+
)
|
|
106531
106580
|
] })
|
|
106532
106581
|
] });
|
|
106533
106582
|
}
|
|
@@ -106535,6 +106584,7 @@ const CopyButton$1 = ({
|
|
|
106535
106584
|
text,
|
|
106536
106585
|
className = "",
|
|
106537
106586
|
iconClassName = "",
|
|
106587
|
+
iconStyle,
|
|
106538
106588
|
title = "Copy to clipboard",
|
|
106539
106589
|
onCopySuccess,
|
|
106540
106590
|
onCopyError,
|
|
@@ -106548,19 +106598,19 @@ const CopyButton$1 = ({
|
|
|
106548
106598
|
case "sm":
|
|
106549
106599
|
return {
|
|
106550
106600
|
button: "p-1",
|
|
106551
|
-
icon: "w-
|
|
106601
|
+
icon: "w-[12px] h-[12px]",
|
|
106552
106602
|
tooltip: "text-xs py-1 px-2"
|
|
106553
106603
|
};
|
|
106554
106604
|
case "lg":
|
|
106555
106605
|
return {
|
|
106556
106606
|
button: "p-2",
|
|
106557
|
-
icon: "w-
|
|
106607
|
+
icon: "w-[20px] h-[20px]",
|
|
106558
106608
|
tooltip: "text-sm py-2 px-3"
|
|
106559
106609
|
};
|
|
106560
106610
|
default:
|
|
106561
106611
|
return {
|
|
106562
106612
|
button: "p-1.5",
|
|
106563
|
-
icon: "w-
|
|
106613
|
+
icon: "w-[16px] h-[16px]",
|
|
106564
106614
|
tooltip: "text-xs py-1 px-2"
|
|
106565
106615
|
};
|
|
106566
106616
|
}
|
|
@@ -106623,7 +106673,7 @@ const CopyButton$1 = ({
|
|
|
106623
106673
|
onClick: copyToClipboard2,
|
|
106624
106674
|
className: `${sizeClasses2.button} hover:bg-gray-100 rounded transition-colors ${className}`,
|
|
106625
106675
|
title,
|
|
106626
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { className: `${sizeClasses2.icon} text-gray-400 ${iconClassName}
|
|
106676
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { className: `${sizeClasses2.icon} text-gray-400 ${iconClassName}`, style: iconStyle })
|
|
106627
106677
|
}
|
|
106628
106678
|
),
|
|
106629
106679
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -107757,7 +107807,7 @@ const DataModal = ({
|
|
|
107757
107807
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between p-4 border-b border-gray-700", children: [
|
|
107758
107808
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
107759
107809
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
107760
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FileCode, { className: "w-
|
|
107810
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FileCode, { className: "w-[20px] h-[20px] text-[#9CA3AF]" }),
|
|
107761
107811
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-semibold text-gray-100", children: title })
|
|
107762
107812
|
] }),
|
|
107763
107813
|
isValidJson && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1 ml-4 pl-4 border-l border-gray-700", children: [
|
|
@@ -107767,7 +107817,7 @@ const DataModal = ({
|
|
|
107767
107817
|
onClick: () => setViewMode("interactive"),
|
|
107768
107818
|
className: `p-1.5 hover:bg-gray-700 rounded transition-colors ${viewMode === "interactive" ? "bg-gray-700" : ""}`,
|
|
107769
107819
|
title: "Collapsed JSON view (fold/unfold)",
|
|
107770
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ListTree, { className: "w-
|
|
107820
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ListTree, { className: "w-[16px] h-[16px] text-[#9CA3AF]" })
|
|
107771
107821
|
}
|
|
107772
107822
|
),
|
|
107773
107823
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -107776,7 +107826,7 @@ const DataModal = ({
|
|
|
107776
107826
|
onClick: () => setViewMode("plain"),
|
|
107777
107827
|
className: `p-1.5 hover:bg-gray-700 rounded transition-colors ${viewMode === "plain" ? "bg-gray-700" : ""}`,
|
|
107778
107828
|
title: "Plain JSON view",
|
|
107779
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlignLeft, { className: "w-
|
|
107829
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlignLeft, { className: "w-[16px] h-[16px] text-[#9CA3AF]" })
|
|
107780
107830
|
}
|
|
107781
107831
|
)
|
|
107782
107832
|
] })
|
|
@@ -107788,7 +107838,7 @@ const DataModal = ({
|
|
|
107788
107838
|
text: stringifyJsonNode(parsedData),
|
|
107789
107839
|
title: "Copy content",
|
|
107790
107840
|
className: "p-2 rounded-lg hover:bg-gray-700",
|
|
107791
|
-
|
|
107841
|
+
iconStyle: { width: "16px", height: "16px", stroke: "#9CA3AF" }
|
|
107792
107842
|
}
|
|
107793
107843
|
),
|
|
107794
107844
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -107797,7 +107847,7 @@ const DataModal = ({
|
|
|
107797
107847
|
onClick: onClose,
|
|
107798
107848
|
className: "p-2 hover:bg-gray-700 rounded-lg transition-colors",
|
|
107799
107849
|
title: "Close",
|
|
107800
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-
|
|
107850
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "w-[16px] h-[16px] text-[#9CA3AF]" })
|
|
107801
107851
|
}
|
|
107802
107852
|
)
|
|
107803
107853
|
] })
|
|
@@ -107875,7 +107925,7 @@ const JsonViewer = ({
|
|
|
107875
107925
|
onClick: () => onToggleKey == null ? void 0 : onToggleKey(fullPath),
|
|
107876
107926
|
className: `flex items-center gap-1 p-1 rounded transition-colors ${darkMode ? "hover:bg-gray-700" : "hover:bg-gray-100"}`,
|
|
107877
107927
|
children: [
|
|
107878
|
-
isExpanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: `w-
|
|
107928
|
+
isExpanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: `w-[12px] h-[12px] ${darkMode ? "text-[#6B7280]" : "text-[#9CA3AF]"}` }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { className: `w-[12px] h-[12px] ${darkMode ? "text-[#6B7280]" : "text-[#9CA3AF]"}` }),
|
|
107879
107929
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: `text-xs ${darkMode ? "text-gray-300" : "text-gray-600"}`, children: [
|
|
107880
107930
|
"Array[",
|
|
107881
107931
|
value.length,
|
|
@@ -107910,7 +107960,7 @@ const JsonViewer = ({
|
|
|
107910
107960
|
onClick: () => onToggleKey == null ? void 0 : onToggleKey(fullPath),
|
|
107911
107961
|
className: `flex items-center gap-1 p-1 rounded transition-colors ${darkMode ? "hover:bg-gray-700" : "hover:bg-gray-100"}`,
|
|
107912
107962
|
children: [
|
|
107913
|
-
isExpanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: `w-
|
|
107963
|
+
isExpanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: `w-[12px] h-[12px] ${darkMode ? "text-[#6B7280]" : "text-[#9CA3AF]"}` }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { className: `w-[12px] h-[12px] ${darkMode ? "text-[#6B7280]" : "text-[#9CA3AF]"}` }),
|
|
107914
107964
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: `text-xs ${darkMode ? "text-gray-300" : "text-gray-600"}`, children: [
|
|
107915
107965
|
"Object ",
|
|
107916
107966
|
"{",
|
|
@@ -108077,17 +108127,17 @@ const DataViewer = ({
|
|
|
108077
108127
|
] });
|
|
108078
108128
|
}
|
|
108079
108129
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
108080
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${darkMode ? "bg-gray-800 border-gray-700" : "bg-white border-gray-200"} border rounded-md overflow-hidden ${className}`, "data-id": "data_viewer_root", children: [
|
|
108081
|
-
showHeader && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-[#F9FAFB]
|
|
108082
|
-
isValidJson && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": "data_viewer_header_view_toggles", children: [
|
|
108130
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${darkMode ? "bg-gray-800 border-gray-700" : "bg-white border-gray-200"} border rounded-md overflow-hidden ${className}`, "data-test-id": "data_viewer_root", children: [
|
|
108131
|
+
showHeader && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-[#F9FAFB] border_secondary_bottom px-4 py-2 flex items-center justify-between", "data-test-id": "data_viewer_header", children: [
|
|
108132
|
+
isValidJson && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": "data_viewer_header_view_toggles", children: [
|
|
108083
108133
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
108084
108134
|
"button",
|
|
108085
108135
|
{
|
|
108086
108136
|
onClick: () => handleViewModeChange("interactive"),
|
|
108087
108137
|
className: `p-1 hover:bg-gray-200 rounded transition-colors ${currentViewMode === "interactive" ? "bg-gray-200" : ""}`,
|
|
108088
108138
|
title: "Collapsed JSON view (fold/unfold)",
|
|
108089
|
-
"data-id": "data_viewer_header_btn_interactive",
|
|
108090
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ListTree, { className: "w-
|
|
108139
|
+
"data-test-id": "data_viewer_header_btn_interactive",
|
|
108140
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ListTree, { className: "w-[16px] h-[16px] text-[#98A2B3]" })
|
|
108091
108141
|
}
|
|
108092
108142
|
),
|
|
108093
108143
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -108096,21 +108146,21 @@ const DataViewer = ({
|
|
|
108096
108146
|
onClick: () => handleViewModeChange("plain"),
|
|
108097
108147
|
className: `p-1 hover:bg-gray-200 rounded transition-colors ${currentViewMode === "plain" ? "bg-gray-200" : ""}`,
|
|
108098
108148
|
title: "Plain JSON view",
|
|
108099
|
-
"data-id": "data_viewer_header_btn_plain",
|
|
108100
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlignLeft, { className: "w-
|
|
108149
|
+
"data-test-id": "data_viewer_header_btn_plain",
|
|
108150
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlignLeft, { className: "w-[16px] h-[16px] text-[#98A2B3]" })
|
|
108101
108151
|
}
|
|
108102
108152
|
)
|
|
108103
108153
|
] }),
|
|
108104
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-id": "data_viewer_header_spacer" }),
|
|
108105
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": "data_viewer_header_actions", children: [
|
|
108154
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", "data-test-id": "data_viewer_header_spacer" }),
|
|
108155
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": "data_viewer_header_actions", children: [
|
|
108106
108156
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
108107
108157
|
"button",
|
|
108108
108158
|
{
|
|
108109
108159
|
onClick: handleExpand,
|
|
108110
108160
|
className: "p-1 hover:bg-gray-200 rounded transition-colors",
|
|
108111
108161
|
title: "Expand to full screen",
|
|
108112
|
-
"data-id": "data_viewer_header_btn_expand",
|
|
108113
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Maximize2, { className: "w-
|
|
108162
|
+
"data-test-id": "data_viewer_header_btn_expand",
|
|
108163
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Maximize2, { className: "w-[16px] h-[16px] text-[#98A2B3]" })
|
|
108114
108164
|
}
|
|
108115
108165
|
),
|
|
108116
108166
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -108119,7 +108169,7 @@ const DataViewer = ({
|
|
|
108119
108169
|
text: stringifyJsonNode(parsedData),
|
|
108120
108170
|
title: "Copy content",
|
|
108121
108171
|
className: "p-1",
|
|
108122
|
-
|
|
108172
|
+
iconStyle: { width: "16px", height: "16px", stroke: "#98A2B3" }
|
|
108123
108173
|
}
|
|
108124
108174
|
)
|
|
108125
108175
|
] })
|
|
@@ -108129,7 +108179,7 @@ const DataViewer = ({
|
|
|
108129
108179
|
{
|
|
108130
108180
|
className: `${padding ? padding : "p-3"} overflow-auto ${darkMode ? "bg-gray-800" : "bg-white"}`,
|
|
108131
108181
|
style: { maxHeight },
|
|
108132
|
-
"data-id": "data_viewer_content",
|
|
108182
|
+
"data-test-id": "data_viewer_content",
|
|
108133
108183
|
children: [
|
|
108134
108184
|
isValidJson ? currentViewMode === "interactive" ? useEnhancedJsonView ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
108135
108185
|
JsonView,
|
|
@@ -108157,7 +108207,7 @@ const DataViewer = ({
|
|
|
108157
108207
|
darkMode
|
|
108158
108208
|
}
|
|
108159
108209
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-xs whitespace-pre font-mono ${darkMode ? "text-gray-300" : "text-[#344054]"}`, children: stringifyJsonNode(parsedData) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-xs whitespace-pre-wrap font-mono ${darkMode ? "text-gray-300" : "text-[#344054]"}`, children: displayContent }),
|
|
108160
|
-
!displayContent && displayContent !== 0 && displayContent !== false && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-center text-sm py-8 ${darkMode ? "text-gray-500" : "text-gray-400"}`, "data-id": "data_viewer_empty_state", children: "No data available" })
|
|
108210
|
+
!displayContent && displayContent !== 0 && displayContent !== false && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-center text-sm py-8 ${darkMode ? "text-gray-500" : "text-gray-400"}`, "data-test-id": "data_viewer_empty_state", children: "No data available" })
|
|
108161
108211
|
]
|
|
108162
108212
|
}
|
|
108163
108213
|
)
|
|
@@ -109150,45 +109200,61 @@ function DetailPage({
|
|
|
109150
109200
|
] })
|
|
109151
109201
|
] }),
|
|
109152
109202
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex overflow-hidden", children: [
|
|
109153
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
109154
|
-
|
|
109155
|
-
|
|
109156
|
-
|
|
109157
|
-
|
|
109158
|
-
|
|
109159
|
-
const filteredObservations = getFilteredObservations(trace.id, observations);
|
|
109160
|
-
const autoExpandIds = index === 0 ? getAutoExpandIds(trace.id, filteredObservations) : void 0;
|
|
109161
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
109162
|
-
TraceTree,
|
|
109163
|
-
{
|
|
109164
|
-
trace,
|
|
109165
|
-
observations: filteredObservations,
|
|
109166
|
-
isExpanded: mode === "trace" || index === 0,
|
|
109167
|
-
selectedNodeId: selectedNode && "traceId" in selectedNode ? selectedNode.id : null,
|
|
109168
|
-
onNodeSelect: handleNodeSelect,
|
|
109169
|
-
onExpandToggle: () => handleTraceExpand(trace.id, trace.timestamp),
|
|
109170
|
-
showTraceId: mode === "session",
|
|
109171
|
-
isLoading: isLoadingObservations,
|
|
109172
|
-
defaultExpandedNodeIds: autoExpandIds
|
|
109173
|
-
},
|
|
109174
|
-
trace.id
|
|
109175
|
-
);
|
|
109176
|
-
}),
|
|
109177
|
-
mode === "session" && progressiveState.pendingTraceIds.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: progressiveState.pendingTraceIds.map((pendingTraceId, index) => {
|
|
109178
|
-
const isFirstPending = index === 0 && !progressiveState.firstTraceLoaded;
|
|
109179
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
109180
|
-
TreeSkeleton,
|
|
109203
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[480px] min-w-[400px] max-w-[600px] border-r border-[#E4E7EC] flex flex-col bg-[#F9FAFB] overflow-auto", children: [
|
|
109204
|
+
mode === "session" && sessionId && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] px-[24px] py-[4px] bg-white border-b border-[#EAECF0]", children: [
|
|
109205
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[12px] text-[#667085]", children: "Session ID" }),
|
|
109206
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-mono text-[12px] text-[#344054]", children: sessionId }),
|
|
109207
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
109208
|
+
"button",
|
|
109181
109209
|
{
|
|
109182
|
-
|
|
109183
|
-
|
|
109184
|
-
|
|
109185
|
-
|
|
109186
|
-
className: "
|
|
109187
|
-
}
|
|
109188
|
-
|
|
109189
|
-
|
|
109190
|
-
|
|
109191
|
-
|
|
109210
|
+
onClick: handleCopyId,
|
|
109211
|
+
className: "p-[2px] rounded-[4px] hover:bg-[#F2F4F7] transition-opacity opacity-60 hover:opacity-100",
|
|
109212
|
+
title: "Copy Session ID",
|
|
109213
|
+
"data-test-id": "session-id-copy-btn",
|
|
109214
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { className: `w-[12px] h-[12px] ${copiedId ? "text-[#17B26A]" : "text-[#98A2B3]"}` })
|
|
109215
|
+
}
|
|
109216
|
+
)
|
|
109217
|
+
] }),
|
|
109218
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 p-[16px]", children: [
|
|
109219
|
+
traces.length === 0 && loadingState === "success" && progressiveState.traceCount === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-[32px] text-center text-[13px] text-[#667085]", children: "No traces available" }),
|
|
109220
|
+
traces.map((trace, index) => {
|
|
109221
|
+
var _a, _b, _c, _d;
|
|
109222
|
+
const observations = ((_b = (_a = traceObservations[trace.id]) == null ? void 0 : _a.observations) == null ? void 0 : _b.length) > 0 ? traceObservations[trace.id].observations : mode === "trace" ? (traceData == null ? void 0 : traceData.observations) || [] : [];
|
|
109223
|
+
const isLoadingObservations = ((_c = traceObservations[trace.id]) == null ? void 0 : _c.loading) || mode === "trace" && (((_d = traceData == null ? void 0 : traceData.observations) == null ? void 0 : _d.length) || 0) === 0;
|
|
109224
|
+
const filteredObservations = getFilteredObservations(trace.id, observations);
|
|
109225
|
+
const autoExpandIds = index === 0 ? getAutoExpandIds(trace.id, filteredObservations) : void 0;
|
|
109226
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
109227
|
+
TraceTree,
|
|
109228
|
+
{
|
|
109229
|
+
trace,
|
|
109230
|
+
observations: filteredObservations,
|
|
109231
|
+
isExpanded: mode === "trace" || index === 0,
|
|
109232
|
+
selectedNodeId: selectedNode && "traceId" in selectedNode ? selectedNode.id : null,
|
|
109233
|
+
onNodeSelect: handleNodeSelect,
|
|
109234
|
+
onExpandToggle: () => handleTraceExpand(trace.id, trace.timestamp),
|
|
109235
|
+
showTraceId: mode === "session",
|
|
109236
|
+
isLoading: isLoadingObservations,
|
|
109237
|
+
defaultExpandedNodeIds: autoExpandIds
|
|
109238
|
+
},
|
|
109239
|
+
trace.id
|
|
109240
|
+
);
|
|
109241
|
+
}),
|
|
109242
|
+
mode === "session" && progressiveState.pendingTraceIds.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: progressiveState.pendingTraceIds.map((pendingTraceId, index) => {
|
|
109243
|
+
const isFirstPending = index === 0 && !progressiveState.firstTraceLoaded;
|
|
109244
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
109245
|
+
TreeSkeleton,
|
|
109246
|
+
{
|
|
109247
|
+
traceCount: 1,
|
|
109248
|
+
observationsPerTrace: 4,
|
|
109249
|
+
isExpanded: isFirstPending,
|
|
109250
|
+
showTraceId: true,
|
|
109251
|
+
className: "!p-0"
|
|
109252
|
+
},
|
|
109253
|
+
`skeleton-${pendingTraceId}`
|
|
109254
|
+
);
|
|
109255
|
+
}) })
|
|
109256
|
+
] })
|
|
109257
|
+
] }),
|
|
109192
109258
|
!selectedNode && !hasAutoSelected ? /* @__PURE__ */ jsxRuntimeExports.jsx(NodeDetailSkeleton, { showFullSummary: true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NodeDetailPanel, { node: selectedNode, nodeType, apiConfig })
|
|
109193
109259
|
] })
|
|
109194
109260
|
] });
|
|
@@ -109821,14 +109887,18 @@ function SessionsListContent(props) {
|
|
|
109821
109887
|
}
|
|
109822
109888
|
},
|
|
109823
109889
|
// === ADDITIONAL COLUMNS (HIDDEN BY DEFAULT) ===
|
|
109824
|
-
{
|
|
109825
|
-
|
|
109826
|
-
|
|
109827
|
-
|
|
109828
|
-
|
|
109829
|
-
|
|
109830
|
-
|
|
109831
|
-
}
|
|
109890
|
+
// {
|
|
109891
|
+
// field: 'bookmarked',
|
|
109892
|
+
// headerName: '⭐️',
|
|
109893
|
+
// width: 50,
|
|
109894
|
+
// hide: true,
|
|
109895
|
+
// disabled: true,
|
|
109896
|
+
// cellRenderer: (params: any) => (
|
|
109897
|
+
// <span className={`cursor-pointer ${params.value ? 'text-yellow-500' : 'text-gray-300'}`}>
|
|
109898
|
+
// {params.value ? '★' : '☆'}
|
|
109899
|
+
// </span>
|
|
109900
|
+
// ),
|
|
109901
|
+
// },
|
|
109832
109902
|
{
|
|
109833
109903
|
field: "appvId",
|
|
109834
109904
|
headerName: "App Version ID",
|
|
@@ -109837,6 +109907,13 @@ function SessionsListContent(props) {
|
|
|
109837
109907
|
disabled: true,
|
|
109838
109908
|
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: params.value || "-" })
|
|
109839
109909
|
},
|
|
109910
|
+
{
|
|
109911
|
+
field: "source",
|
|
109912
|
+
headerName: "Source",
|
|
109913
|
+
width: 150,
|
|
109914
|
+
hide: false,
|
|
109915
|
+
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: params.value || "-" })
|
|
109916
|
+
},
|
|
109840
109917
|
{
|
|
109841
109918
|
field: "inputCost",
|
|
109842
109919
|
headerName: "Input Cost ($)",
|
|
@@ -109872,21 +109949,24 @@ function SessionsListContent(props) {
|
|
|
109872
109949
|
disabled: true,
|
|
109873
109950
|
valueFormatter: (params) => TracingUtils.formatTokens(params.value),
|
|
109874
109951
|
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-700", children: TracingUtils.formatTokens(params.value) })
|
|
109875
|
-
},
|
|
109876
|
-
{
|
|
109877
|
-
field: "traceTags",
|
|
109878
|
-
headerName: "Trace Tags",
|
|
109879
|
-
width: 180,
|
|
109880
|
-
hide: true,
|
|
109881
|
-
disabled: true,
|
|
109882
|
-
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap gap-1", children: [
|
|
109883
|
-
(params.value || []).slice(0, 3).map((tag, i2) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "px-1.5 py-0.5 text-xs bg-gray-100 rounded", children: tag }, i2)),
|
|
109884
|
-
(params.value || []).length > 3 && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-xs text-gray-500", children: [
|
|
109885
|
-
"+",
|
|
109886
|
-
params.value.length - 3
|
|
109887
|
-
] })
|
|
109888
|
-
] })
|
|
109889
109952
|
}
|
|
109953
|
+
// {
|
|
109954
|
+
// field: 'traceTags',
|
|
109955
|
+
// headerName: 'Trace Tags',
|
|
109956
|
+
// width: 180,
|
|
109957
|
+
// hide: true,
|
|
109958
|
+
// disabled: true,
|
|
109959
|
+
// cellRenderer: (params: any) => (
|
|
109960
|
+
// <div className="flex flex-wrap gap-1">
|
|
109961
|
+
// {(params.value || []).slice(0, 3).map((tag: string, i: number) => (
|
|
109962
|
+
// <span key={i} className="px-1.5 py-0.5 text-xs bg-gray-100 rounded">{tag}</span>
|
|
109963
|
+
// ))}
|
|
109964
|
+
// {(params.value || []).length > 3 && (
|
|
109965
|
+
// <span className="text-xs text-gray-500">+{params.value.length - 3}</span>
|
|
109966
|
+
// )}
|
|
109967
|
+
// </div>
|
|
109968
|
+
// ),
|
|
109969
|
+
// },
|
|
109890
109970
|
],
|
|
109891
109971
|
[]
|
|
109892
109972
|
);
|
|
@@ -109968,6 +110048,12 @@ function SessionsListContent(props) {
|
|
|
109968
110048
|
type: "string",
|
|
109969
110049
|
operators: ["=", "!=", "contains"]
|
|
109970
110050
|
},
|
|
110051
|
+
{
|
|
110052
|
+
field: "source",
|
|
110053
|
+
label: "Source",
|
|
110054
|
+
type: "string",
|
|
110055
|
+
operators: ["=", "!=", "contains"]
|
|
110056
|
+
},
|
|
109971
110057
|
{
|
|
109972
110058
|
field: "tags",
|
|
109973
110059
|
label: "Trace Tags",
|
|
@@ -110342,7 +110428,9 @@ function TracesListContent(props) {
|
|
|
110342
110428
|
newMap.set(traceId, {
|
|
110343
110429
|
input: detail["input"],
|
|
110344
110430
|
output: detail["output"],
|
|
110345
|
-
totalCost: detail["totalCost"]
|
|
110431
|
+
totalCost: detail["totalCost"],
|
|
110432
|
+
envId: detail["envId"],
|
|
110433
|
+
source: detail["source"]
|
|
110346
110434
|
});
|
|
110347
110435
|
return newMap;
|
|
110348
110436
|
});
|
|
@@ -110453,28 +110541,39 @@ function TracesListContent(props) {
|
|
|
110453
110541
|
headerName: "Environment",
|
|
110454
110542
|
width: 150,
|
|
110455
110543
|
hide: false,
|
|
110456
|
-
cellRenderer: (params) =>
|
|
110544
|
+
cellRenderer: (params) => {
|
|
110545
|
+
const detailData = detailedTraceData.get(params.data.id);
|
|
110546
|
+
const envId = detailData == null ? void 0 : detailData.envId;
|
|
110547
|
+
if (envId === void 0) {
|
|
110548
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-400 italic", children: "Loading..." });
|
|
110549
|
+
}
|
|
110550
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(EnvironmentNameCell, { envId });
|
|
110551
|
+
}
|
|
110457
110552
|
}
|
|
110458
110553
|
);
|
|
110459
110554
|
baseColumns.push(
|
|
110460
|
-
{
|
|
110461
|
-
|
|
110462
|
-
|
|
110463
|
-
|
|
110464
|
-
|
|
110465
|
-
|
|
110466
|
-
|
|
110467
|
-
|
|
110468
|
-
}
|
|
110469
|
-
|
|
110470
|
-
|
|
110471
|
-
|
|
110472
|
-
|
|
110473
|
-
|
|
110474
|
-
|
|
110475
|
-
|
|
110476
|
-
|
|
110477
|
-
|
|
110555
|
+
// {
|
|
110556
|
+
// field: 'bookmarked',
|
|
110557
|
+
// headerName: '⭐️',
|
|
110558
|
+
// width: 50,
|
|
110559
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110560
|
+
// disabled: true,
|
|
110561
|
+
// cellRenderer: (params: any) => (
|
|
110562
|
+
// <span className={`cursor-pointer ${params.value ? 'text-yellow-500' : 'text-gray-300'}`}>
|
|
110563
|
+
// {params.value ? '★' : '☆'}
|
|
110564
|
+
// </span>
|
|
110565
|
+
// ),
|
|
110566
|
+
// },
|
|
110567
|
+
// {
|
|
110568
|
+
// field: 'name',
|
|
110569
|
+
// headerName: 'Name',
|
|
110570
|
+
// width: 180,
|
|
110571
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110572
|
+
// disabled: true,
|
|
110573
|
+
// cellRenderer: (params: any) => (
|
|
110574
|
+
// <span className="text-sm text-gray-900">{TracingUtils.truncate(params.value || '-', 25)}</span>
|
|
110575
|
+
// ),
|
|
110576
|
+
// },
|
|
110478
110577
|
{
|
|
110479
110578
|
field: "timestamp",
|
|
110480
110579
|
headerName: "Timestamp",
|
|
@@ -110510,15 +110609,20 @@ function TracesListContent(props) {
|
|
|
110510
110609
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `px-2 py-0.5 text-xs rounded ${levelColors[params.value] || levelColors["DEFAULT"]}`, children: params.value || "DEFAULT" });
|
|
110511
110610
|
}
|
|
110512
110611
|
},
|
|
110513
|
-
{
|
|
110514
|
-
|
|
110515
|
-
|
|
110516
|
-
|
|
110517
|
-
|
|
110518
|
-
|
|
110519
|
-
|
|
110520
|
-
|
|
110521
|
-
|
|
110612
|
+
// {
|
|
110613
|
+
// field: 'tags',
|
|
110614
|
+
// headerName: 'Tags',
|
|
110615
|
+
// width: 180,
|
|
110616
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110617
|
+
// disabled: true,
|
|
110618
|
+
// cellRenderer: (params: any) => (
|
|
110619
|
+
// <div className="flex flex-wrap gap-1">
|
|
110620
|
+
// {(params.value || []).slice(0, 3).map((tag: string, i: number) => (
|
|
110621
|
+
// <span key={i} className="px-1.5 py-0.5 text-xs bg-gray-100 rounded">{tag}</span>
|
|
110622
|
+
// ))}
|
|
110623
|
+
// </div>
|
|
110624
|
+
// ),
|
|
110625
|
+
// },
|
|
110522
110626
|
{
|
|
110523
110627
|
field: "appvId",
|
|
110524
110628
|
headerName: "App Version ID",
|
|
@@ -110537,6 +110641,20 @@ function TracesListContent(props) {
|
|
|
110537
110641
|
disabled: true,
|
|
110538
110642
|
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: params.value || "-" })
|
|
110539
110643
|
},
|
|
110644
|
+
{
|
|
110645
|
+
field: "source",
|
|
110646
|
+
headerName: "Source",
|
|
110647
|
+
width: 150,
|
|
110648
|
+
hide: false,
|
|
110649
|
+
cellRenderer: (params) => {
|
|
110650
|
+
const detailData = detailedTraceData.get(params.data.id);
|
|
110651
|
+
const source = detailData == null ? void 0 : detailData.source;
|
|
110652
|
+
if (source === void 0) {
|
|
110653
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-400 italic", children: "Loading..." });
|
|
110654
|
+
}
|
|
110655
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: source || "-" });
|
|
110656
|
+
}
|
|
110657
|
+
},
|
|
110540
110658
|
{
|
|
110541
110659
|
field: "promptTokens",
|
|
110542
110660
|
headerName: "Input Tokens",
|
|
@@ -110572,34 +110690,39 @@ function TracesListContent(props) {
|
|
|
110572
110690
|
// DISABLED - Enable when ready
|
|
110573
110691
|
disabled: true,
|
|
110574
110692
|
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-xs font-medium ${TracingUtils.getCostColor(params.value || 0)}`, children: TracingUtils.formatCost(params.value) })
|
|
110575
|
-
},
|
|
110576
|
-
{
|
|
110577
|
-
field: "version",
|
|
110578
|
-
headerName: "Version",
|
|
110579
|
-
width: 100,
|
|
110580
|
-
hide: true,
|
|
110581
|
-
// DISABLED - Enable when ready
|
|
110582
|
-
disabled: true,
|
|
110583
|
-
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: params.value || "-" })
|
|
110584
|
-
},
|
|
110585
|
-
{
|
|
110586
|
-
field: "release",
|
|
110587
|
-
headerName: "Release",
|
|
110588
|
-
width: 100,
|
|
110589
|
-
hide: true,
|
|
110590
|
-
// DISABLED - Enable when ready
|
|
110591
|
-
disabled: true,
|
|
110592
|
-
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600", children: params.value || "-" })
|
|
110593
|
-
},
|
|
110594
|
-
{
|
|
110595
|
-
field: "metadata",
|
|
110596
|
-
headerName: "Metadata",
|
|
110597
|
-
width: 200,
|
|
110598
|
-
hide: true,
|
|
110599
|
-
// DISABLED - Enable when ready
|
|
110600
|
-
disabled: true,
|
|
110601
|
-
cellRenderer: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-600 font-mono", children: params.value ? TracingUtils.truncate(JSON.stringify(params.value), 30) : "-" })
|
|
110602
110693
|
}
|
|
110694
|
+
// {
|
|
110695
|
+
// field: 'version',
|
|
110696
|
+
// headerName: 'Version',
|
|
110697
|
+
// width: 100,
|
|
110698
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110699
|
+
// disabled: true,
|
|
110700
|
+
// cellRenderer: (params: any) => (
|
|
110701
|
+
// <span className="text-xs text-gray-600">{params.value || '-'}</span>
|
|
110702
|
+
// ),
|
|
110703
|
+
// },
|
|
110704
|
+
// {
|
|
110705
|
+
// field: 'release',
|
|
110706
|
+
// headerName: 'Release',
|
|
110707
|
+
// width: 100,
|
|
110708
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110709
|
+
// disabled: true,
|
|
110710
|
+
// cellRenderer: (params: any) => (
|
|
110711
|
+
// <span className="text-xs text-gray-600">{params.value || '-'}</span>
|
|
110712
|
+
// ),
|
|
110713
|
+
// },
|
|
110714
|
+
// {
|
|
110715
|
+
// field: 'metadata',
|
|
110716
|
+
// headerName: 'Metadata',
|
|
110717
|
+
// width: 200,
|
|
110718
|
+
// hide: true, // DISABLED - Enable when ready
|
|
110719
|
+
// disabled: true,
|
|
110720
|
+
// cellRenderer: (params: any) => (
|
|
110721
|
+
// <span className="text-xs text-gray-600 font-mono">
|
|
110722
|
+
// {params.value ? TracingUtils.truncate(JSON.stringify(params.value), 30) : '-'}
|
|
110723
|
+
// </span>
|
|
110724
|
+
// ),
|
|
110725
|
+
// },
|
|
110603
110726
|
);
|
|
110604
110727
|
return baseColumns;
|
|
110605
110728
|
},
|
|
@@ -110725,6 +110848,12 @@ function TracesListContent(props) {
|
|
|
110725
110848
|
type: "string",
|
|
110726
110849
|
operators: ["=", "!=", "contains"]
|
|
110727
110850
|
},
|
|
110851
|
+
{
|
|
110852
|
+
field: "source",
|
|
110853
|
+
label: "Source",
|
|
110854
|
+
type: "string",
|
|
110855
|
+
operators: ["=", "!=", "contains"]
|
|
110856
|
+
},
|
|
110728
110857
|
{
|
|
110729
110858
|
field: "version",
|
|
110730
110859
|
label: "Version",
|
|
@@ -110813,6 +110942,7 @@ function TracesListContent(props) {
|
|
|
110813
110942
|
title: "Traces",
|
|
110814
110943
|
description: "Inspect execution traces to analyze model reasoning, tool usage, and performance insights.",
|
|
110815
110944
|
searchPlaceholder: "Search...",
|
|
110945
|
+
showSearch: totalCount > 0 || searchTerm.length > 0,
|
|
110816
110946
|
searchConfig: {
|
|
110817
110947
|
metadataSearchFields: ["ID", "Input", "User ID"],
|
|
110818
110948
|
updateQuery: handleSearch,
|
|
@@ -113384,15 +113514,15 @@ function DebugCard({
|
|
|
113384
113514
|
};
|
|
113385
113515
|
return (
|
|
113386
113516
|
// bg-white w-full border-t border-gray-200
|
|
113387
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white w-full", "data-id": `debug_card_${node.id}`, children: [
|
|
113517
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white w-full", "data-test-id": `debug_card_${node.id}`, children: [
|
|
113388
113518
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113389
113519
|
"div",
|
|
113390
113520
|
{
|
|
113391
113521
|
className: `flex items-center pl-[8px] pr-[8px] relative transition-colors cursor-pointer w-full
|
|
113392
113522
|
${isSelected ? "" : ""}`,
|
|
113393
113523
|
onClick: handleNodeClick,
|
|
113394
|
-
"data-id": `debug_card_header_${node.id}`,
|
|
113395
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[10px] w-full", "data-id": `debug_card_header_content_${node.id}`, children: [
|
|
113524
|
+
"data-test-id": `debug_card_header_${node.id}`,
|
|
113525
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[10px] w-full", "data-test-id": `debug_card_header_content_${node.id}`, children: [
|
|
113396
113526
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113397
113527
|
"div",
|
|
113398
113528
|
{
|
|
@@ -113406,7 +113536,7 @@ function DebugCard({
|
|
|
113406
113536
|
}
|
|
113407
113537
|
},
|
|
113408
113538
|
title: hasChildren ? isExpanded ? "Collapse" : "Expand" : "Show details",
|
|
113409
|
-
"data-id": `debug_card_toggle_${node.id}`,
|
|
113539
|
+
"data-test-id": `debug_card_toggle_${node.id}`,
|
|
113410
113540
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113411
113541
|
ChevronRight,
|
|
113412
113542
|
{
|
|
@@ -113415,18 +113545,18 @@ function DebugCard({
|
|
|
113415
113545
|
)
|
|
113416
113546
|
}
|
|
113417
113547
|
),
|
|
113418
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] w-full py-[8px] border-b border-gray-200", "data-id": `debug_card_node_info_${node.id}`, children: [
|
|
113419
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 rounded-[8px] bg-[#B2DDFF]", "data-id": `debug_card_node_icon_${node.id}`, children: getNodeIcon() }),
|
|
113548
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] w-full py-[8px] border-b border-gray-200", "data-test-id": `debug_card_node_info_${node.id}`, children: [
|
|
113549
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 rounded-[8px] bg-[#B2DDFF]", "data-test-id": `debug_card_node_icon_${node.id}`, children: getNodeIcon() }),
|
|
113420
113550
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113421
113551
|
"span",
|
|
113422
113552
|
{
|
|
113423
113553
|
className: "font-semibold text-gray-900 text-xs truncate w-full",
|
|
113424
113554
|
title: node.type === "llm" ? node.name : void 0,
|
|
113425
|
-
"data-id": `debug_card_node_name_${node.id}`,
|
|
113555
|
+
"data-test-id": `debug_card_node_name_${node.id}`,
|
|
113426
113556
|
children: isGuardrailsNode ? node.type === "GuardrailsInputScan" ? "Input Guardrails Scanner" : "Output Guardrails Scanner" : node.type === "llm" ? "AI Model Call" : node.type === "tool" ? formatToolName(node.name) : node.name
|
|
113427
113557
|
}
|
|
113428
113558
|
),
|
|
113429
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[12px] text-[10px] text-gray-500", "data-id": `debug_card_node_metadata_${node.id}`, children: [
|
|
113559
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[12px] text-[10px] text-gray-500", "data-test-id": `debug_card_node_metadata_${node.id}`, children: [
|
|
113430
113560
|
node.type === "Agent" && (() => {
|
|
113431
113561
|
var _a;
|
|
113432
113562
|
const llmChild = (_a = node.children) == null ? void 0 : _a.find((child) => child.type === "llm");
|
|
@@ -113436,7 +113566,7 @@ function DebugCard({
|
|
|
113436
113566
|
{
|
|
113437
113567
|
className: "text-[10px] text-gray-500 truncate max-w-[100px]",
|
|
113438
113568
|
title: llmChild.name,
|
|
113439
|
-
"data-id": `debug_card_node_model_name_${node.id}`,
|
|
113569
|
+
"data-test-id": `debug_card_node_model_name_${node.id}`,
|
|
113440
113570
|
children: llmChild.name
|
|
113441
113571
|
}
|
|
113442
113572
|
);
|
|
@@ -113469,7 +113599,7 @@ function DebugCard({
|
|
|
113469
113599
|
title: `Input: ${((_a = llmUsage.input_tokens) == null ? void 0 : _a.toLocaleString()) || 0} tokens
|
|
113470
113600
|
Output: ${((_b = llmUsage.output_tokens) == null ? void 0 : _b.toLocaleString()) || 0} tokens
|
|
113471
113601
|
Total: ${((_c = llmUsage.total_tokens) == null ? void 0 : _c.toLocaleString()) || 0} tokens`,
|
|
113472
|
-
"data-id": `debug_card_node_tokens_${node.id}`,
|
|
113602
|
+
"data-test-id": `debug_card_node_tokens_${node.id}`,
|
|
113473
113603
|
children: [
|
|
113474
113604
|
llmUsage.total_tokens.toLocaleString(),
|
|
113475
113605
|
" Tokens"
|
|
@@ -113479,34 +113609,34 @@ Total: ${((_c = llmUsage.total_tokens) == null ? void 0 : _c.toLocaleString()) |
|
|
|
113479
113609
|
}
|
|
113480
113610
|
return null;
|
|
113481
113611
|
})(),
|
|
113482
|
-
node.duration && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px]", "data-id": `debug_card_node_duration_${node.id}`, children: [
|
|
113612
|
+
node.duration && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px]", "data-test-id": `debug_card_node_duration_${node.id}`, children: [
|
|
113483
113613
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "w-[12px] h-[12px]" }),
|
|
113484
113614
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: formatDuration(node.duration) })
|
|
113485
113615
|
] })
|
|
113486
113616
|
] }),
|
|
113487
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-id": `debug_card_node_status_${node.id}`, children: getStatusIcon() })
|
|
113617
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", "data-test-id": `debug_card_node_status_${node.id}`, children: getStatusIcon() })
|
|
113488
113618
|
] })
|
|
113489
113619
|
] })
|
|
113490
113620
|
}
|
|
113491
113621
|
),
|
|
113492
|
-
isSelected && availableTabs.length > 0 && showDetailView && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full pl-[32px] relative", "data-id": `debug_card_detail_panel_${node.id}`, children: [
|
|
113493
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]", "data-id": `debug_card_detail_panel_connector_${node.id}` }),
|
|
113494
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-[4px] py-[8px] w-full", "data-id": `debug_card_detail_panel_content_${node.id}`, children: [
|
|
113495
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-gray-50 rounded-[4px] p-[4px] inline-flex gap-[4px] mb-[8px] border border-gray-200", "data-id": `debug_card_detail_panel_tabs_${node.id}`, children: getTabsForNodeType().map((tab) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113622
|
+
isSelected && availableTabs.length > 0 && showDetailView && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full pl-[32px] relative", "data-test-id": `debug_card_detail_panel_${node.id}`, children: [
|
|
113623
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]", "data-test-id": `debug_card_detail_panel_connector_${node.id}` }),
|
|
113624
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-[4px] py-[8px] w-full", "data-test-id": `debug_card_detail_panel_content_${node.id}`, children: [
|
|
113625
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-gray-50 rounded-[4px] p-[4px] inline-flex gap-[4px] mb-[8px] border border-gray-200", "data-test-id": `debug_card_detail_panel_tabs_${node.id}`, children: getTabsForNodeType().map((tab) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113496
113626
|
"button",
|
|
113497
113627
|
{
|
|
113498
113628
|
onClick: () => handleTabClick(tab),
|
|
113499
113629
|
className: `px-[8px] py-[4px] text-xs font-medium rounded-[4px] text-gray-500 hover:text-gray-700 hover:shadow-tab hover:bg-white transition-colors ${activeTab === tab ? "bg-white text-gray-900 shadow-tab" : "text-gray-500 hover:text-gray-700 hover:bg-white"}`,
|
|
113500
|
-
"data-id": `debug_card_detail_panel_tab_${node.id}_${tab}`,
|
|
113630
|
+
"data-test-id": `debug_card_detail_panel_tab_${node.id}_${tab}`,
|
|
113501
113631
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
113502
113632
|
},
|
|
113503
113633
|
tab
|
|
113504
113634
|
)) }),
|
|
113505
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-[4px]", "data-id": `debug_card_detail_panel_tab_content_${node.id}`, children: renderTabContent() })
|
|
113635
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-[4px]", "data-test-id": `debug_card_detail_panel_tab_content_${node.id}`, children: renderTabContent() })
|
|
113506
113636
|
] })
|
|
113507
113637
|
] }),
|
|
113508
|
-
isExpanded && hasChildren && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full pl-[32px] relative", "data-id": `debug_card_children_${node.id}`, children: [
|
|
113509
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]", "data-id": `debug_card_children_connector_${node.id}` }),
|
|
113638
|
+
isExpanded && hasChildren && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full pl-[32px] relative", "data-test-id": `debug_card_children_${node.id}`, children: [
|
|
113639
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-[-40px] left-[16px] w-[1px] border-l border-dashed border-gray-200 h-[calc(100%+40px)] z-[1]", "data-test-id": `debug_card_children_connector_${node.id}` }),
|
|
113510
113640
|
node.children.map((child, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113511
113641
|
DebugCard,
|
|
113512
113642
|
{
|
|
@@ -113810,14 +113940,14 @@ const DebugPanel = forwardRef(({
|
|
|
113810
113940
|
return `${tokens} tokens`;
|
|
113811
113941
|
};
|
|
113812
113942
|
if (!sessionTree.runs.length) {
|
|
113813
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex flex-col h-full ${className}`, "data-id": "debug_panel_empty_state", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full", "data-id": "debug_panel_empty_state_content", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-gray-500 text-sm", "data-id": "debug_panel_empty_state_message", children: "No execution events to display" }) }) });
|
|
113814
|
-
}
|
|
113815
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex flex-col h-full bg-white ${className}`, "data-id": "debug_panel_root", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[16px] p-[24px] overflow-y-auto overflow-x-hidden", ref: scrollContainerRef, "data-id": "debug_panel_content", children: [
|
|
113816
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center w-full gap-[16px]", "data-id": "debug_panel_session_header", children: [
|
|
113817
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-gray-400 whitespace-nowrap flex-shrink-0", "data-id": "debug_panel_session_header_label", children: "Session initiated" }),
|
|
113818
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 h-[1px] border-t border-dashed border-gray-300 w-full", "data-id": "debug_panel_session_header_divider" }),
|
|
113819
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-gray-400 flex-shrink-0", "data-id": "debug_panel_session_header_actions", children: [
|
|
113820
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { "data-id": "debug_panel_session_id", children: sessionTree.sessionId }),
|
|
113943
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex flex-col h-full ${className}`, "data-test-id": "debug_panel_empty_state", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full", "data-test-id": "debug_panel_empty_state_content", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-gray-500 text-sm", "data-test-id": "debug_panel_empty_state_message", children: "No execution events to display" }) }) });
|
|
113944
|
+
}
|
|
113945
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex flex-col h-full bg-white ${className}`, "data-test-id": "debug_panel_root", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-[16px] p-[24px] overflow-y-auto overflow-x-hidden", ref: scrollContainerRef, "data-test-id": "debug_panel_content", children: [
|
|
113946
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center w-full gap-[16px]", "data-test-id": "debug_panel_session_header", children: [
|
|
113947
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-gray-400 whitespace-nowrap flex-shrink-0", "data-test-id": "debug_panel_session_header_label", children: "Session initiated" }),
|
|
113948
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 h-[1px] border-t border-dashed border-gray-300 w-full", "data-test-id": "debug_panel_session_header_divider" }),
|
|
113949
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-gray-400 flex-shrink-0", "data-test-id": "debug_panel_session_header_actions", children: [
|
|
113950
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { "data-test-id": "debug_panel_session_id", children: sessionTree.sessionId }),
|
|
113821
113951
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113822
113952
|
CopyButton$1,
|
|
113823
113953
|
{
|
|
@@ -113843,22 +113973,22 @@ const DebugPanel = forwardRef(({
|
|
|
113843
113973
|
}
|
|
113844
113974
|
}
|
|
113845
113975
|
},
|
|
113846
|
-
"data-id": "debug_panel_session_external_link_btn",
|
|
113976
|
+
"data-test-id": "debug_panel_session_external_link_btn",
|
|
113847
113977
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "w-[12px] h-[12px]" })
|
|
113848
113978
|
}
|
|
113849
113979
|
)
|
|
113850
113980
|
] })
|
|
113851
113981
|
] }),
|
|
113852
|
-
showExpansionControls && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-4 p-3 bg-gray-50 rounded-lg border border-gray-200", "data-id": "debug_panel_expansion_controls", children: [
|
|
113853
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": "debug_panel_expansion_controls_buttons", children: [
|
|
113854
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-medium text-gray-700", "data-id": "debug_panel_expansion_controls_label", children: "Expansion:" }),
|
|
113982
|
+
showExpansionControls && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-4 p-3 bg-gray-50 rounded-lg border border-gray-200", "data-test-id": "debug_panel_expansion_controls", children: [
|
|
113983
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": "debug_panel_expansion_controls_buttons", children: [
|
|
113984
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-medium text-gray-700", "data-test-id": "debug_panel_expansion_controls_label", children: "Expansion:" }),
|
|
113855
113985
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
113856
113986
|
"button",
|
|
113857
113987
|
{
|
|
113858
113988
|
onClick: handleExpandAll,
|
|
113859
113989
|
className: "flex items-center gap-1 px-2 py-1 text-xs bg-white hover:bg-gray-50 border border-gray-300 rounded transition-colors",
|
|
113860
113990
|
title: "Expand all nodes",
|
|
113861
|
-
"data-id": "debug_panel_expansion_controls_btn_expand_all",
|
|
113991
|
+
"data-test-id": "debug_panel_expansion_controls_btn_expand_all",
|
|
113862
113992
|
children: [
|
|
113863
113993
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { className: "w-3 h-3" }),
|
|
113864
113994
|
"Expand All"
|
|
@@ -113871,7 +114001,7 @@ const DebugPanel = forwardRef(({
|
|
|
113871
114001
|
onClick: handleExpandLast,
|
|
113872
114002
|
className: "flex items-center gap-1 px-2 py-1 text-xs bg-white hover:bg-gray-50 border border-gray-300 rounded transition-colors",
|
|
113873
114003
|
title: "Expand only the last execution path",
|
|
113874
|
-
"data-id": "debug_panel_expansion_controls_btn_expand_last",
|
|
114004
|
+
"data-test-id": "debug_panel_expansion_controls_btn_expand_last",
|
|
113875
114005
|
children: [
|
|
113876
114006
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Expand, { className: "w-3 h-3" }),
|
|
113877
114007
|
"Expand Last"
|
|
@@ -113884,7 +114014,7 @@ const DebugPanel = forwardRef(({
|
|
|
113884
114014
|
onClick: handleCollapseAll,
|
|
113885
114015
|
className: "flex items-center gap-1 px-2 py-1 text-xs bg-white hover:bg-gray-50 border border-gray-300 rounded transition-colors",
|
|
113886
114016
|
title: "Collapse all nodes",
|
|
113887
|
-
"data-id": "debug_panel_expansion_controls_btn_collapse_all",
|
|
114017
|
+
"data-test-id": "debug_panel_expansion_controls_btn_collapse_all",
|
|
113888
114018
|
children: [
|
|
113889
114019
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Minus, { className: "w-3 h-3" }),
|
|
113890
114020
|
"Collapse All"
|
|
@@ -113892,8 +114022,8 @@ const DebugPanel = forwardRef(({
|
|
|
113892
114022
|
}
|
|
113893
114023
|
)
|
|
113894
114024
|
] }),
|
|
113895
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": "debug_panel_expansion_controls_live_mode", children: [
|
|
113896
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-medium text-gray-700", "data-id": "debug_panel_expansion_controls_live_mode_label", children: "Live Mode:" }),
|
|
114025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": "debug_panel_expansion_controls_live_mode", children: [
|
|
114026
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-medium text-gray-700", "data-test-id": "debug_panel_expansion_controls_live_mode_label", children: "Live Mode:" }),
|
|
113897
114027
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
113898
114028
|
"select",
|
|
113899
114029
|
{
|
|
@@ -113901,7 +114031,7 @@ const DebugPanel = forwardRef(({
|
|
|
113901
114031
|
onChange: (e3) => setLiveExpansionMode(e3.target.value),
|
|
113902
114032
|
className: "text-xs px-2 py-1 bg-white border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500",
|
|
113903
114033
|
title: "Control auto-expansion behavior during live updates",
|
|
113904
|
-
"data-id": "debug_panel_expansion_controls_live_mode_select",
|
|
114034
|
+
"data-test-id": "debug_panel_expansion_controls_live_mode_select",
|
|
113905
114035
|
children: [
|
|
113906
114036
|
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "all", children: "Expand All" }),
|
|
113907
114037
|
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "last", children: "Expand Last" }),
|
|
@@ -113911,18 +114041,18 @@ const DebugPanel = forwardRef(({
|
|
|
113911
114041
|
)
|
|
113912
114042
|
] })
|
|
113913
114043
|
] }),
|
|
113914
|
-
sessionTree.runs.map((run2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", "data-id": `debug_panel_run_${run2.runId}`, children: [
|
|
113915
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded-[8px] border border-gray-300 bg-white overflow-hidden", "data-id": `debug_panel_run_container_${run2.runId}`, children: [
|
|
113916
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col w-full", "data-id": `debug_panel_run_header_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 p-[8px] bg-gray-50", "data-id": `debug_panel_run_header_content_${run2.runId}`, children: [
|
|
113917
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", "data-id": `debug_panel_run_header_icon_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM10.4715 4.52924C10.2112 4.2689 9.78906 4.26889 9.52872 4.52924L6.66681 7.39114V5.6673C6.6668 5.29912 6.36834 5.00064 6.00015 5.00064C5.63197 5.00064 5.33351 5.29912 5.3335 5.6673V9.00064C5.3335 9.17745 5.40373 9.34702 5.52875 9.47205C5.65377 9.59707 5.82334 9.6673 6.00015 9.6673H9.3335L9.35068 9.66708C9.71092 9.65796 10.0002 9.36308 10.0002 9.00064C10.0001 8.63821 9.71092 8.34332 9.35068 8.3342L9.3335 8.33398H7.60962L10.4715 5.47205C10.7319 5.2117 10.7319 4.78958 10.4715 4.52924Z", fill: "#079455" }) }),
|
|
114044
|
+
sessionTree.runs.map((run2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", "data-test-id": `debug_panel_run_${run2.runId}`, children: [
|
|
114045
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded-[8px] border border-gray-300 bg-white overflow-hidden", "data-test-id": `debug_panel_run_container_${run2.runId}`, children: [
|
|
114046
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col w-full", "data-test-id": `debug_panel_run_header_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 p-[8px] bg-gray-50", "data-test-id": `debug_panel_run_header_content_${run2.runId}`, children: [
|
|
114047
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", "data-test-id": `debug_panel_run_header_icon_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM10.4715 4.52924C10.2112 4.2689 9.78906 4.26889 9.52872 4.52924L6.66681 7.39114V5.6673C6.6668 5.29912 6.36834 5.00064 6.00015 5.00064C5.63197 5.00064 5.33351 5.29912 5.3335 5.6673V9.00064C5.3335 9.17745 5.40373 9.34702 5.52875 9.47205C5.65377 9.59707 5.82334 9.6673 6.00015 9.6673H9.3335L9.35068 9.66708C9.71092 9.65796 10.0002 9.36308 10.0002 9.00064C10.0001 8.63821 9.71092 8.34332 9.35068 8.3342L9.3335 8.33398H7.60962L10.4715 5.47205C10.7319 5.2117 10.7319 4.78958 10.4715 4.52924Z", fill: "#079455" }) }),
|
|
113918
114048
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113919
114049
|
"div",
|
|
113920
114050
|
{
|
|
113921
114051
|
className: "flex-1 cursor-pointer select-none truncate",
|
|
113922
114052
|
onClick: () => handleRunToggle(run2.runId),
|
|
113923
114053
|
title: run2.userInput,
|
|
113924
|
-
"data-id": `debug_panel_run_title_${run2.runId}`,
|
|
113925
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-900 truncate", "data-id": `debug_panel_run_title_text_${run2.runId}`, children: run2.userInput || `Run ${run2.runId}` })
|
|
114054
|
+
"data-test-id": `debug_panel_run_title_${run2.runId}`,
|
|
114055
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-900 truncate", "data-test-id": `debug_panel_run_title_text_${run2.runId}`, children: run2.userInput || `Run ${run2.runId}` })
|
|
113926
114056
|
}
|
|
113927
114057
|
),
|
|
113928
114058
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -113943,7 +114073,7 @@ const DebugPanel = forwardRef(({
|
|
|
113943
114073
|
const anyDetailsVisible = Array.from(runNodeIds).some((nodeId) => selectedNodeIds.has(nodeId));
|
|
113944
114074
|
return anyDetailsVisible ? "Hide all node details in this run" : "Show all node details in this run";
|
|
113945
114075
|
})(),
|
|
113946
|
-
"data-id": `debug_panel_run_details_toggle_${run2.runId}`,
|
|
114076
|
+
"data-test-id": `debug_panel_run_details_toggle_${run2.runId}`,
|
|
113947
114077
|
children: (() => {
|
|
113948
114078
|
const runNodeIds = /* @__PURE__ */ new Set();
|
|
113949
114079
|
const collectNodeIds = (node) => {
|
|
@@ -113971,14 +114101,14 @@ const DebugPanel = forwardRef(({
|
|
|
113971
114101
|
},
|
|
113972
114102
|
className: "p-1 hover:bg-gray-200 rounded transition-colors flex-shrink-0",
|
|
113973
114103
|
title: expandedRuns.has(run2.runId) ? "Collapse run" : "Expand run",
|
|
113974
|
-
"data-id": `debug_panel_run_toggle_${run2.runId}`,
|
|
114104
|
+
"data-test-id": `debug_panel_run_toggle_${run2.runId}`,
|
|
113975
114105
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: `w-[16px] h-[16px] text-gray-400 transition-transform ${expandedRuns.has(run2.runId) ? "rotate-180" : ""}` })
|
|
113976
114106
|
}
|
|
113977
114107
|
)
|
|
113978
114108
|
] }) }),
|
|
113979
|
-
expandedRuns.has(run2.runId) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-white w-full flex flex-col", "data-id": `debug_panel_run_execution_trees_${run2.runId}`, children: run2.rootNodes && run2.rootNodes.map((rootNode, index) => {
|
|
114109
|
+
expandedRuns.has(run2.runId) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-white w-full flex flex-col", "data-test-id": `debug_panel_run_execution_trees_${run2.runId}`, children: run2.rootNodes && run2.rootNodes.map((rootNode, index) => {
|
|
113980
114110
|
var _a;
|
|
113981
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full", "data-id": `debug_panel_run_root_node_${run2.runId}_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
114111
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full", "data-test-id": `debug_panel_run_root_node_${run2.runId}_${index}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
113982
114112
|
DebugCard,
|
|
113983
114113
|
{
|
|
113984
114114
|
node: updateTreeExpansion(rootNode),
|
|
@@ -114064,22 +114194,22 @@ const DebugPanel = forwardRef(({
|
|
|
114064
114194
|
};
|
|
114065
114195
|
const outputFromNodes = run2.rootNodes ? findFinalOutput(run2.rootNodes) : void 0;
|
|
114066
114196
|
const finalOutput = outputFromNodes || run2.finalOutput;
|
|
114067
|
-
return finalOutput ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-[8px] bg-gray-50 flex items-center gap-[8px] w-full border-t border-gray-200", "data-id": `debug_panel_run_final_output_${run2.runId}`, children: [
|
|
114068
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", "data-id": `debug_panel_run_final_output_icon_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM6.66653 4.33398C6.29835 4.334 5.99988 4.63246 5.99988 5.00064C5.99988 5.36882 6.29835 5.66729 6.66653 5.6673H8.39041L5.52847 8.52924C5.26813 8.78958 5.26813 9.2117 5.52847 9.47205C5.78882 9.73239 6.21093 9.73239 6.47128 9.47205L9.33322 6.61011V8.33398C9.33323 8.70217 9.6317 9.00064 9.99988 9.00064C10.3681 9.00064 10.6665 8.70217 10.6665 8.33398V5.00064C10.6665 4.63821 10.3773 4.34333 10.0171 4.3342L9.99988 4.33398H6.66653Z", fill: "#155EEF" }) }),
|
|
114069
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 text-xs text-gray-900 truncate", title: convertToString(finalOutput), "data-id": `debug_panel_run_final_output_text_${run2.runId}`, children: convertToString(finalOutput) }),
|
|
114070
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] flex-shrink-0", "data-id": `debug_panel_run_final_output_metadata_${run2.runId}`, children: [
|
|
114071
|
-
run2.duration && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px]", "data-id": `debug_panel_run_final_output_duration_${run2.runId}`, children: [
|
|
114197
|
+
return finalOutput ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-[8px] bg-gray-50 flex items-center gap-[8px] w-full border-t border-gray-200", "data-test-id": `debug_panel_run_final_output_${run2.runId}`, children: [
|
|
114198
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "flex-shrink-0", "data-test-id": `debug_panel_run_final_output_icon_${run2.runId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.8277 1.33398C11.3643 1.33398 11.8072 1.33396 12.168 1.36343C12.5428 1.39405 12.8872 1.45978 13.2108 1.62463C13.7125 1.8803 14.1205 2.28825 14.3762 2.79001C14.541 3.11356 14.6067 3.45803 14.6374 3.83276C14.6668 4.19356 14.6668 4.63646 14.6668 5.1731V9.0235C14.6668 9.47003 14.6668 9.83861 14.6462 10.1404C14.6249 10.4532 14.5792 10.7426 14.4638 11.0211C14.1932 11.6746 13.674 12.1937 13.0206 12.4643C12.7421 12.5797 12.4527 12.6254 12.1399 12.6467C11.8381 12.6673 11.4695 12.6673 11.023 12.6673H11.0002C10.6424 12.6673 10.5714 12.6715 10.5136 12.6852C10.4129 12.7089 10.3191 12.7558 10.2397 12.8221C10.1941 12.8602 10.1481 12.9145 9.9335 13.2007L8.94888 14.5135C8.88665 14.5965 8.81628 14.6904 8.74857 14.7657C8.6739 14.8487 8.54979 14.971 8.36264 15.0438C8.1295 15.1344 7.87083 15.1344 7.6377 15.0438C7.45054 14.971 7.32641 14.8487 7.25174 14.7657C7.18403 14.6904 7.11368 14.5965 7.05145 14.5135L6.06683 13.2007C5.85221 12.9145 5.80624 12.8602 5.76065 12.8221C5.68119 12.7558 5.58739 12.7089 5.48666 12.6852C5.42887 12.6715 5.35786 12.6673 5.00015 12.6673H4.9773C4.53078 12.6673 4.16221 12.6673 3.86047 12.6467C3.54762 12.6254 3.25822 12.5797 2.97968 12.4643C2.32627 12.1937 1.80712 11.6746 1.53647 11.0211C1.42109 10.7426 1.37541 10.4532 1.35407 10.1404C1.33348 9.83861 1.33349 9.47003 1.3335 9.0235V5.17313C1.33349 4.63648 1.33347 4.19356 1.36295 3.83276C1.39356 3.45803 1.45929 3.11356 1.62415 2.79001C1.87981 2.28825 2.28776 1.8803 2.78952 1.62463C3.11308 1.45978 3.45755 1.39405 3.83228 1.36343C4.19307 1.33396 4.63599 1.33398 5.17264 1.33398H10.8277ZM6.66653 4.33398C6.29835 4.334 5.99988 4.63246 5.99988 5.00064C5.99988 5.36882 6.29835 5.66729 6.66653 5.6673H8.39041L5.52847 8.52924C5.26813 8.78958 5.26813 9.2117 5.52847 9.47205C5.78882 9.73239 6.21093 9.73239 6.47128 9.47205L9.33322 6.61011V8.33398C9.33323 8.70217 9.6317 9.00064 9.99988 9.00064C10.3681 9.00064 10.6665 8.70217 10.6665 8.33398V5.00064C10.6665 4.63821 10.3773 4.34333 10.0171 4.3342L9.99988 4.33398H6.66653Z", fill: "#155EEF" }) }),
|
|
114199
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 text-xs text-gray-900 truncate", title: convertToString(finalOutput), "data-test-id": `debug_panel_run_final_output_text_${run2.runId}`, children: convertToString(finalOutput) }),
|
|
114200
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[8px] flex-shrink-0", "data-test-id": `debug_panel_run_final_output_metadata_${run2.runId}`, children: [
|
|
114201
|
+
run2.duration && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-[4px]", "data-test-id": `debug_panel_run_final_output_duration_${run2.runId}`, children: [
|
|
114072
114202
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "w-[12px] h-[12px] text-gray-400" }),
|
|
114073
114203
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", children: formatDuration(run2.duration) })
|
|
114074
114204
|
] }),
|
|
114075
|
-
run2.totalTokens && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", "data-id": `debug_panel_run_final_output_tokens_${run2.runId}`, children: formatTokens(run2.totalTokens) })
|
|
114205
|
+
run2.totalTokens && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[10px] text-gray-500 whitespace-nowrap", "data-test-id": `debug_panel_run_final_output_tokens_${run2.runId}`, children: formatTokens(run2.totalTokens) })
|
|
114076
114206
|
] })
|
|
114077
114207
|
] }) : null;
|
|
114078
114208
|
})()
|
|
114079
114209
|
] }),
|
|
114080
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-2 py-1", "data-id": `debug_panel_run_footer_${run2.runId}`, children: [
|
|
114081
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-400", "data-id": `debug_panel_run_footer_id_${run2.runId}`, children: run2.runId }),
|
|
114082
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-id": `debug_panel_run_footer_actions_${run2.runId}`, children: [
|
|
114210
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-2 py-1", "data-test-id": `debug_panel_run_footer_${run2.runId}`, children: [
|
|
114211
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-gray-400", "data-test-id": `debug_panel_run_footer_id_${run2.runId}`, children: run2.runId }),
|
|
114212
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", "data-test-id": `debug_panel_run_footer_actions_${run2.runId}`, children: [
|
|
114083
114213
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
114084
114214
|
CopyButton$1,
|
|
114085
114215
|
{
|
|
@@ -114105,7 +114235,7 @@ const DebugPanel = forwardRef(({
|
|
|
114105
114235
|
}
|
|
114106
114236
|
}
|
|
114107
114237
|
},
|
|
114108
|
-
"data-id": `debug_panel_run_footer_external_link_${run2.runId}`,
|
|
114238
|
+
"data-test-id": `debug_panel_run_footer_external_link_${run2.runId}`,
|
|
114109
114239
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "w-3 h-3 text-gray-400" })
|
|
114110
114240
|
}
|
|
114111
114241
|
)
|
|
@@ -127754,6 +127884,9 @@ function isiOS() {
|
|
|
127754
127884
|
"iPod"
|
|
127755
127885
|
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
127756
127886
|
}
|
|
127887
|
+
function isSafari() {
|
|
127888
|
+
return typeof navigator !== "undefined" ? /^((?!chrome|android).)*safari/i.test(navigator.userAgent) : false;
|
|
127889
|
+
}
|
|
127757
127890
|
const focus = (position = null, options = {}) => ({ editor, view, tr: tr2, dispatch }) => {
|
|
127758
127891
|
options = {
|
|
127759
127892
|
scrollIntoView: true,
|
|
@@ -127766,8 +127899,8 @@ const focus = (position = null, options = {}) => ({ editor, view, tr: tr2, dispa
|
|
|
127766
127899
|
requestAnimationFrame(() => {
|
|
127767
127900
|
if (!editor.isDestroyed) {
|
|
127768
127901
|
view.focus();
|
|
127769
|
-
if (
|
|
127770
|
-
|
|
127902
|
+
if (isSafari() && !isiOS() && !isAndroid()) {
|
|
127903
|
+
view.dom.focus({ preventScroll: true });
|
|
127771
127904
|
}
|
|
127772
127905
|
}
|
|
127773
127906
|
});
|
|
@@ -139399,7 +139532,7 @@ function handlePaste(view, _2, slice2) {
|
|
|
139399
139532
|
return true;
|
|
139400
139533
|
} else return false;
|
|
139401
139534
|
}
|
|
139402
|
-
function handleMouseDown(view, startEvent) {
|
|
139535
|
+
function handleMouseDown$1(view, startEvent) {
|
|
139403
139536
|
var _cellUnderMouse;
|
|
139404
139537
|
if (startEvent.button != 0) return;
|
|
139405
139538
|
if (startEvent.ctrlKey || startEvent.metaKey) return;
|
|
@@ -139469,8 +139602,8 @@ function cellUnderMouse(view, event) {
|
|
|
139469
139602
|
top: event.clientY
|
|
139470
139603
|
});
|
|
139471
139604
|
if (!mousePos) return null;
|
|
139472
|
-
|
|
139473
|
-
return cellAround(view.state.doc.resolve(pos));
|
|
139605
|
+
let { inside, pos } = mousePos;
|
|
139606
|
+
return inside >= 0 && cellAround(view.state.doc.resolve(inside)) || cellAround(view.state.doc.resolve(pos));
|
|
139474
139607
|
}
|
|
139475
139608
|
var TableView$1 = class TableView {
|
|
139476
139609
|
constructor(node, defaultCellMinWidth) {
|
|
@@ -139562,7 +139695,7 @@ function columnResizing({ handleWidth = 5, cellMinWidth = 25, defaultCellMinWidt
|
|
|
139562
139695
|
handleMouseLeave(view);
|
|
139563
139696
|
},
|
|
139564
139697
|
mousedown: (view, event) => {
|
|
139565
|
-
handleMouseDown
|
|
139698
|
+
handleMouseDown(view, event, cellMinWidth, defaultCellMinWidth);
|
|
139566
139699
|
}
|
|
139567
139700
|
},
|
|
139568
139701
|
decorations: (state) => {
|
|
@@ -139621,7 +139754,7 @@ function handleMouseLeave(view) {
|
|
|
139621
139754
|
const pluginState = columnResizingPluginKey.getState(view.state);
|
|
139622
139755
|
if (pluginState && pluginState.activeHandle > -1 && !pluginState.dragging) updateHandle(view, -1);
|
|
139623
139756
|
}
|
|
139624
|
-
function handleMouseDown
|
|
139757
|
+
function handleMouseDown(view, event, cellMinWidth, defaultCellMinWidth) {
|
|
139625
139758
|
var _view$dom$ownerDocume;
|
|
139626
139759
|
if (!view.editable) return false;
|
|
139627
139760
|
const win = (_view$dom$ownerDocume = view.dom.ownerDocument.defaultView) !== null && _view$dom$ownerDocume !== void 0 ? _view$dom$ownerDocume : window;
|
|
@@ -139768,7 +139901,7 @@ function tableEditing({ allowTableNodeSelection = false } = {}) {
|
|
|
139768
139901
|
},
|
|
139769
139902
|
props: {
|
|
139770
139903
|
decorations: drawCellSelection,
|
|
139771
|
-
handleDOMEvents: { mousedown: handleMouseDown },
|
|
139904
|
+
handleDOMEvents: { mousedown: handleMouseDown$1 },
|
|
139772
139905
|
createSelectionBetween(view) {
|
|
139773
139906
|
return tableEditingKey.getState(view.state) != null ? view.state.selection : null;
|
|
139774
139907
|
},
|
|
@@ -140958,7 +141091,7 @@ const VariableChipComponent = ({
|
|
|
140958
141091
|
backgroundColor: config2.bgColor,
|
|
140959
141092
|
borderColor: config2.borderColor
|
|
140960
141093
|
},
|
|
140961
|
-
"data-id": `md-editor-variable-${variableType}-${path}`,
|
|
141094
|
+
"data-test-id": `md-editor-variable-${variableType}-${path}`,
|
|
140962
141095
|
"data-variable-type": variableType,
|
|
140963
141096
|
"data-path": path,
|
|
140964
141097
|
title: displayName || fullSyntax,
|
|
@@ -141183,7 +141316,7 @@ const MentionChipComponent = ({
|
|
|
141183
141316
|
backgroundColor: config2.bgColor,
|
|
141184
141317
|
color: config2.color
|
|
141185
141318
|
},
|
|
141186
|
-
"data-id": `md-editor-mention-${mentionType}-${name.toLowerCase().replace(/\s+/g, "-")}`,
|
|
141319
|
+
"data-test-id": `md-editor-mention-${mentionType}-${name.toLowerCase().replace(/\s+/g, "-")}`,
|
|
141187
141320
|
"data-mention-type": mentionType,
|
|
141188
141321
|
"data-name": name,
|
|
141189
141322
|
title: name,
|
|
@@ -141254,9 +141387,9 @@ const MentionChipExtension = Node$1.create({
|
|
|
141254
141387
|
},
|
|
141255
141388
|
id: {
|
|
141256
141389
|
default: "",
|
|
141257
|
-
parseHTML: (element) => element.getAttribute("data-id"),
|
|
141390
|
+
parseHTML: (element) => element.getAttribute("data-test-id"),
|
|
141258
141391
|
renderHTML: (attributes) => ({
|
|
141259
|
-
"data-id": attributes["id"]
|
|
141392
|
+
"data-test-id": attributes["id"]
|
|
141260
141393
|
})
|
|
141261
141394
|
},
|
|
141262
141395
|
name: {
|
|
@@ -142066,7 +142199,7 @@ const SlashMenu = forwardRef(
|
|
|
142066
142199
|
{
|
|
142067
142200
|
ref: menuRef,
|
|
142068
142201
|
className: "k-md-editor-slash-menu w-[300px] max-h-[360px] bg-white rounded-lg shadow-lg overflow-hidden flex flex-col",
|
|
142069
|
-
"data-id": "md-editor-slash-menu",
|
|
142202
|
+
"data-test-id": "md-editor-slash-menu",
|
|
142070
142203
|
children: [
|
|
142071
142204
|
hasBlockItems && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
142072
142205
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-2 pt-2 pb-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[11px] font-semibold text-gray-400 uppercase tracking-wide pl-1", children: "Blocks" }) }),
|
|
@@ -142088,7 +142221,7 @@ const SlashMenu = forwardRef(
|
|
|
142088
142221
|
title: `${item.label}${item.shortcut ? ` (${item.shortcut})` : ""}`,
|
|
142089
142222
|
className: `flex items-center justify-center w-9 h-9 p-0 border-0 rounded-lg cursor-pointer transition-all duration-150 shrink-0 ${isSelected ? "bg-gray-200 text-gray-800" : "bg-gray-50 text-gray-500 hover:bg-gray-200 hover:text-gray-800"}`,
|
|
142090
142223
|
onMouseEnter: () => setSelectedIndex(index),
|
|
142091
|
-
"data-id": `md-editor-slash-block-${item.id}`,
|
|
142224
|
+
"data-test-id": `md-editor-slash-block-${item.id}`,
|
|
142092
142225
|
children: item.icon
|
|
142093
142226
|
},
|
|
142094
142227
|
item.id
|
|
@@ -142107,7 +142240,7 @@ const SlashMenu = forwardRef(
|
|
|
142107
142240
|
onClick: handleBack,
|
|
142108
142241
|
className: "flex items-center justify-center w-6 h-6 p-0 border-0 bg-gray-100 rounded cursor-pointer text-gray-500 hover:bg-gray-200",
|
|
142109
142242
|
"aria-label": "Go back",
|
|
142110
|
-
"data-id": "md-editor-slash-back-btn",
|
|
142243
|
+
"data-test-id": "md-editor-slash-back-btn",
|
|
142111
142244
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronLeft, { size: 16 })
|
|
142112
142245
|
}
|
|
142113
142246
|
),
|
|
@@ -142127,7 +142260,7 @@ const SlashMenu = forwardRef(
|
|
|
142127
142260
|
},
|
|
142128
142261
|
placeholder: "Search...",
|
|
142129
142262
|
className: "flex-1 bg-transparent text-sm border-0 outline-none text-gray-700 placeholder:text-gray-400",
|
|
142130
|
-
"data-id": "md-editor-slash-search"
|
|
142263
|
+
"data-test-id": "md-editor-slash-search"
|
|
142131
142264
|
}
|
|
142132
142265
|
)
|
|
142133
142266
|
] }) })
|
|
@@ -142162,7 +142295,7 @@ const SlashMenu = forwardRef(
|
|
|
142162
142295
|
title: isDisabled ? disabledReason : void 0,
|
|
142163
142296
|
className: `flex items-center gap-2.5 w-full py-2 px-2.5 border-0 rounded-md text-left transition-colors duration-100 ${isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${isSelected && !isDisabled ? "bg-gray-100" : "bg-transparent hover:bg-gray-100"}`,
|
|
142164
142297
|
onMouseEnter: () => !isDisabled && setSelectedIndex(adjustedIndex),
|
|
142165
|
-
"data-id": `md-editor-slash-item-${"id" in item ? item.id : label.toLowerCase().replace(/\s+/g, "-")}`,
|
|
142298
|
+
"data-test-id": `md-editor-slash-item-${"id" in item ? item.id : label.toLowerCase().replace(/\s+/g, "-")}`,
|
|
142166
142299
|
children: [
|
|
142167
142300
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `flex items-center justify-center w-7 h-7 rounded-md bg-gray-100 shrink-0 ${isDisabled ? "text-gray-300" : "text-gray-500"}`, children: getIcon(item) }),
|
|
142168
142301
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-[13px] font-medium truncate ${isDisabled ? "text-gray-400" : "text-gray-800"}`, children: label }) }),
|
|
@@ -142806,7 +142939,7 @@ const VariableMenu = ({
|
|
|
142806
142939
|
ref: menuRef,
|
|
142807
142940
|
className: "k-md-editor-variable-menu fixed w-[280px] max-h-[320px] bg-white rounded-lg shadow-lg z-[9999] overflow-hidden flex flex-col",
|
|
142808
142941
|
style: { top: adjustedPosition.top, left: adjustedPosition.left },
|
|
142809
|
-
"data-id": "md-editor-variable-menu",
|
|
142942
|
+
"data-test-id": "md-editor-variable-menu",
|
|
142810
142943
|
children: [
|
|
142811
142944
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-3 py-2 border-b border-gray-200 flex items-center gap-2", children: [
|
|
142812
142945
|
activeCategory && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -142816,7 +142949,7 @@ const VariableMenu = ({
|
|
|
142816
142949
|
onClick: handleBack,
|
|
142817
142950
|
className: "flex items-center justify-center w-6 h-6 p-0 border-0 bg-gray-100 rounded cursor-pointer text-gray-500 hover:bg-gray-200",
|
|
142818
142951
|
"aria-label": "Go back",
|
|
142819
|
-
"data-id": "md-editor-variable-back-btn",
|
|
142952
|
+
"data-test-id": "md-editor-variable-back-btn",
|
|
142820
142953
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronLeft, { size: 16 })
|
|
142821
142954
|
}
|
|
142822
142955
|
),
|
|
@@ -142844,7 +142977,7 @@ const VariableMenu = ({
|
|
|
142844
142977
|
},
|
|
142845
142978
|
placeholder: "memory.store.field",
|
|
142846
142979
|
className: "flex-1 border border-blue-300 bg-white rounded px-2 py-1.5 outline-none text-[13px] text-gray-700 font-mono focus:border-blue-500 focus:ring-1 focus:ring-blue-500",
|
|
142847
|
-
"data-id": "md-editor-custom-variable-input"
|
|
142980
|
+
"data-test-id": "md-editor-custom-variable-input"
|
|
142848
142981
|
}
|
|
142849
142982
|
),
|
|
142850
142983
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[14px] font-mono text-gray-500", children: "}}" })
|
|
@@ -142882,7 +143015,7 @@ const VariableMenu = ({
|
|
|
142882
143015
|
onChange: (e3) => onQueryChange(e3.target.value),
|
|
142883
143016
|
placeholder: "Search...",
|
|
142884
143017
|
className: "flex-1 border-0 bg-transparent outline-none text-[13px] text-gray-700",
|
|
142885
|
-
"data-id": "md-editor-variable-search"
|
|
143018
|
+
"data-test-id": "md-editor-variable-search"
|
|
142886
143019
|
}
|
|
142887
143020
|
)
|
|
142888
143021
|
] }) }),
|
|
@@ -142904,7 +143037,7 @@ const VariableMenu = ({
|
|
|
142904
143037
|
onClick: () => handleItemClick(item),
|
|
142905
143038
|
className: `flex items-center gap-2.5 w-full py-2 px-2.5 border-0 rounded-md text-left cursor-pointer transition-colors duration-100 ${index === selectedIndex ? "bg-gray-100" : "bg-transparent hover:bg-gray-100"}`,
|
|
142906
143039
|
onMouseEnter: () => setSelectedIndex(index),
|
|
142907
|
-
"data-id": `md-editor-variable-item-${isCategory ? item.id : item.id}`,
|
|
143040
|
+
"data-test-id": `md-editor-variable-item-${isCategory ? item.id : item.id}`,
|
|
142908
143041
|
children: [
|
|
142909
143042
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex items-center justify-center w-7 h-7 rounded-md bg-gray-100 text-gray-500 shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { size: 16 }) }),
|
|
142910
143043
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -142924,7 +143057,7 @@ const VariableMenu = ({
|
|
|
142924
143057
|
onClick: () => handleItemClick("custom"),
|
|
142925
143058
|
className: `flex items-center gap-2.5 w-full py-2 px-2.5 border-0 rounded-md text-left cursor-pointer transition-colors duration-100 border-t border-gray-100 mt-1 pt-2 ${selectedIndex === items.length ? "bg-blue-50" : "bg-transparent hover:bg-blue-50"}`,
|
|
142926
143059
|
onMouseEnter: () => setSelectedIndex(items.length),
|
|
142927
|
-
"data-id": "md-editor-variable-custom",
|
|
143060
|
+
"data-test-id": "md-editor-variable-custom",
|
|
142928
143061
|
children: [
|
|
142929
143062
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex items-center justify-center w-7 h-7 rounded-md bg-blue-100 text-blue-600 shrink-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 16 }) }),
|
|
142930
143063
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -143008,7 +143141,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143008
143141
|
"div",
|
|
143009
143142
|
{
|
|
143010
143143
|
className: "k-md-editor-link-editor flex items-center gap-1.5 p-1 bg-gray-800 rounded-lg shadow-lg min-w-[280px]",
|
|
143011
|
-
"data-id": "md-editor-link-editor",
|
|
143144
|
+
"data-test-id": "md-editor-link-editor",
|
|
143012
143145
|
onMouseDown: (e3) => e3.stopPropagation(),
|
|
143013
143146
|
children: [
|
|
143014
143147
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center flex-1 bg-gray-700 rounded-md px-2 gap-1.5", children: [
|
|
@@ -143023,7 +143156,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143023
143156
|
onKeyDown: handleKeyDown2,
|
|
143024
143157
|
placeholder: "Enter URL...",
|
|
143025
143158
|
className: "flex-1 h-8 bg-transparent border-none outline-none text-gray-100 text-[13px] font-inherit min-w-[150px]",
|
|
143026
|
-
"data-id": "md-editor-link-input"
|
|
143159
|
+
"data-test-id": "md-editor-link-input"
|
|
143027
143160
|
}
|
|
143028
143161
|
)
|
|
143029
143162
|
] }),
|
|
@@ -143034,7 +143167,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143034
143167
|
onClick: handleOpenLink,
|
|
143035
143168
|
title: "Open link",
|
|
143036
143169
|
className: "flex items-center justify-center w-7 h-7 p-0 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 transition-all duration-150 hover:bg-gray-700 hover:text-blue-400",
|
|
143037
|
-
"data-id": "md-editor-link-open",
|
|
143170
|
+
"data-test-id": "md-editor-link-open",
|
|
143038
143171
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { size: 14 })
|
|
143039
143172
|
}
|
|
143040
143173
|
),
|
|
@@ -143045,7 +143178,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143045
143178
|
onClick: handleRemoveLink,
|
|
143046
143179
|
title: "Remove link",
|
|
143047
143180
|
className: "flex items-center justify-center w-7 h-7 p-0 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 transition-all duration-150 hover:bg-gray-700 hover:text-red-500",
|
|
143048
|
-
"data-id": "md-editor-link-remove",
|
|
143181
|
+
"data-test-id": "md-editor-link-remove",
|
|
143049
143182
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Link2Off, { size: 14 })
|
|
143050
143183
|
}
|
|
143051
143184
|
),
|
|
@@ -143056,7 +143189,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143056
143189
|
onClick: handleSubmit,
|
|
143057
143190
|
title: "Apply link",
|
|
143058
143191
|
className: "flex items-center justify-center w-7 h-7 p-0 border-0 rounded-md cursor-pointer bg-blue-500 text-white transition-all duration-150 hover:bg-blue-600",
|
|
143059
|
-
"data-id": "md-editor-link-apply",
|
|
143192
|
+
"data-test-id": "md-editor-link-apply",
|
|
143060
143193
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { size: 14 })
|
|
143061
143194
|
}
|
|
143062
143195
|
),
|
|
@@ -143067,7 +143200,7 @@ const LinkEditor = ({ editor, initialUrl = "", onClose }) => {
|
|
|
143067
143200
|
onClick: onClose,
|
|
143068
143201
|
title: "Cancel",
|
|
143069
143202
|
className: "flex items-center justify-center w-7 h-7 p-0 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 transition-all duration-150 hover:bg-gray-700 hover:text-white",
|
|
143070
|
-
"data-id": "md-editor-link-cancel",
|
|
143203
|
+
"data-test-id": "md-editor-link-cancel",
|
|
143071
143204
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { size: 14 })
|
|
143072
143205
|
}
|
|
143073
143206
|
)
|
|
@@ -143194,7 +143327,7 @@ const InlineToolbar = ({
|
|
|
143194
143327
|
"div",
|
|
143195
143328
|
{
|
|
143196
143329
|
className: "k-md-editor-inline-toolbar flex items-center gap-0.5 p-1 bg-gray-800 rounded-lg shadow-lg pointer-events-auto",
|
|
143197
|
-
"data-id": "md-editor-inline-toolbar",
|
|
143330
|
+
"data-test-id": "md-editor-inline-toolbar",
|
|
143198
143331
|
onMouseDown: (e3) => {
|
|
143199
143332
|
e3.stopPropagation();
|
|
143200
143333
|
},
|
|
@@ -143218,7 +143351,7 @@ const InlineToolbar = ({
|
|
|
143218
143351
|
title: `${item.label}${item.shortcut ? ` (${item.shortcut})` : ""}`,
|
|
143219
143352
|
"aria-label": item.label,
|
|
143220
143353
|
"aria-pressed": isActive2,
|
|
143221
|
-
"data-id": `md-editor-toolbar-${item.id}`,
|
|
143354
|
+
"data-test-id": `md-editor-toolbar-${item.id}`,
|
|
143222
143355
|
children: item.icon
|
|
143223
143356
|
}
|
|
143224
143357
|
),
|
|
@@ -143238,7 +143371,7 @@ const InlineToolbar = ({
|
|
|
143238
143371
|
className: `flex items-center justify-center w-8 h-8 p-0 border-0 rounded-md cursor-pointer transition-colors duration-150 pointer-events-auto ${isLinkActive ? "bg-gray-700 text-blue-400" : "bg-transparent text-gray-400 hover:bg-gray-700 hover:text-blue-400"}`,
|
|
143239
143372
|
"aria-label": "Link",
|
|
143240
143373
|
"aria-pressed": isLinkActive,
|
|
143241
|
-
"data-id": "md-editor-toolbar-link",
|
|
143374
|
+
"data-test-id": "md-editor-toolbar-link",
|
|
143242
143375
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, { size: 16 })
|
|
143243
143376
|
}
|
|
143244
143377
|
),
|
|
@@ -143256,7 +143389,7 @@ const InlineToolbar = ({
|
|
|
143256
143389
|
title: "Refine with AI (⌘⇧R)",
|
|
143257
143390
|
className: "k-md-editor-inline-toolbar__ai-btn flex items-center justify-center gap-1 h-8 px-2.5 border-0 rounded-md cursor-pointer transition-colors duration-150 bg-transparent text-violet-400 text-xs font-medium pointer-events-auto hover:bg-violet-900 hover:text-white",
|
|
143258
143391
|
"aria-label": "Refine with AI",
|
|
143259
|
-
"data-id": "md-editor-toolbar-ai-refine",
|
|
143392
|
+
"data-test-id": "md-editor-toolbar-ai-refine",
|
|
143260
143393
|
children: [
|
|
143261
143394
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Sparkles, { size: 14 }),
|
|
143262
143395
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "AI" })
|
|
@@ -143277,7 +143410,7 @@ const InlineToolbar = ({
|
|
|
143277
143410
|
title: "Delete selection",
|
|
143278
143411
|
className: "flex items-center justify-center w-8 h-8 p-0 border-0 rounded-md cursor-pointer transition-colors duration-150 bg-transparent text-gray-400 pointer-events-auto hover:bg-red-500/20 hover:text-red-400",
|
|
143279
143412
|
"aria-label": "Delete",
|
|
143280
|
-
"data-id": "md-editor-toolbar-delete",
|
|
143413
|
+
"data-test-id": "md-editor-toolbar-delete",
|
|
143281
143414
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { size: 16 })
|
|
143282
143415
|
}
|
|
143283
143416
|
)
|
|
@@ -143574,7 +143707,7 @@ const DragHandle = ({ editor }) => {
|
|
|
143574
143707
|
{
|
|
143575
143708
|
className: "k-md-editor-drag-handle-container absolute left-1 flex items-center gap-0.5 z-10 opacity-100 pointer-events-auto h-6 px-1.5 py-1 -ml-1 mt-0.5 rounded-md hover:bg-black/[0.03]",
|
|
143576
143709
|
style: { top: handleTop },
|
|
143577
|
-
"data-id": "md-editor-drag-handle",
|
|
143710
|
+
"data-test-id": "md-editor-drag-handle",
|
|
143578
143711
|
onMouseEnter: () => {
|
|
143579
143712
|
},
|
|
143580
143713
|
onMouseLeave: () => {
|
|
@@ -143594,7 +143727,7 @@ const DragHandle = ({ editor }) => {
|
|
|
143594
143727
|
className: "flex items-center justify-center w-[22px] h-[22px] p-0 border-0 rounded bg-transparent text-gray-400 cursor-pointer transition-all duration-150 hover:bg-black/[0.08] hover:text-gray-700",
|
|
143595
143728
|
onClick: handleAddClick,
|
|
143596
143729
|
title: "Add block below",
|
|
143597
|
-
"data-id": "md-editor-add-block-btn",
|
|
143730
|
+
"data-test-id": "md-editor-add-block-btn",
|
|
143598
143731
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 14 })
|
|
143599
143732
|
}
|
|
143600
143733
|
),
|
|
@@ -143605,7 +143738,7 @@ const DragHandle = ({ editor }) => {
|
|
|
143605
143738
|
draggable: "true",
|
|
143606
143739
|
onDragStart: handleDragStart,
|
|
143607
143740
|
title: "Drag to reorder",
|
|
143608
|
-
"data-id": "md-editor-drag-grip",
|
|
143741
|
+
"data-test-id": "md-editor-drag-grip",
|
|
143609
143742
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GripVertical, { size: 14 })
|
|
143610
143743
|
}
|
|
143611
143744
|
)
|
|
@@ -143651,7 +143784,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143651
143784
|
"div",
|
|
143652
143785
|
{
|
|
143653
143786
|
className: `inline-flex items-center gap-1.5 px-2 py-1.5 rounded-lg shadow-lg z-50 ${isDark ? "bg-gray-800 border border-gray-700" : "bg-white border border-gray-200"}`,
|
|
143654
|
-
"data-id": "md-editor-table-toolbar",
|
|
143787
|
+
"data-test-id": "md-editor-table-toolbar",
|
|
143655
143788
|
children: [
|
|
143656
143789
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [
|
|
143657
143790
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-[10px] font-medium uppercase tracking-wide mr-1 ${isDark ? "text-gray-500" : "text-gray-400"}`, children: "Row" }),
|
|
@@ -143662,7 +143795,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143662
143795
|
onClick: addRowBefore2,
|
|
143663
143796
|
className: btnBase,
|
|
143664
143797
|
title: "Add row above",
|
|
143665
|
-
"data-id": "md-editor-table-add-row-above",
|
|
143798
|
+
"data-test-id": "md-editor-table-add-row-above",
|
|
143666
143799
|
children: [
|
|
143667
143800
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ArrowUp, { size: 14 }),
|
|
143668
143801
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 10 })
|
|
@@ -143676,7 +143809,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143676
143809
|
onClick: addRowAfter2,
|
|
143677
143810
|
className: btnBase,
|
|
143678
143811
|
title: "Add row below",
|
|
143679
|
-
"data-id": "md-editor-table-add-row-below",
|
|
143812
|
+
"data-test-id": "md-editor-table-add-row-below",
|
|
143680
143813
|
children: [
|
|
143681
143814
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ArrowDown, { size: 14 }),
|
|
143682
143815
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 10 })
|
|
@@ -143690,7 +143823,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143690
143823
|
onClick: deleteRow2,
|
|
143691
143824
|
className: btnDanger,
|
|
143692
143825
|
title: "Delete row",
|
|
143693
|
-
"data-id": "md-editor-table-delete-row",
|
|
143826
|
+
"data-test-id": "md-editor-table-delete-row",
|
|
143694
143827
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Minus, { size: 14 })
|
|
143695
143828
|
}
|
|
143696
143829
|
)
|
|
@@ -143705,7 +143838,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143705
143838
|
onClick: addColumnBefore2,
|
|
143706
143839
|
className: btnBase,
|
|
143707
143840
|
title: "Add column left",
|
|
143708
|
-
"data-id": "md-editor-table-add-col-left",
|
|
143841
|
+
"data-test-id": "md-editor-table-add-col-left",
|
|
143709
143842
|
children: [
|
|
143710
143843
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ArrowLeft, { size: 14 }),
|
|
143711
143844
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 10 })
|
|
@@ -143719,7 +143852,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143719
143852
|
onClick: addColumnAfter2,
|
|
143720
143853
|
className: btnBase,
|
|
143721
143854
|
title: "Add column right",
|
|
143722
|
-
"data-id": "md-editor-table-add-col-right",
|
|
143855
|
+
"data-test-id": "md-editor-table-add-col-right",
|
|
143723
143856
|
children: [
|
|
143724
143857
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ArrowRight, { size: 14 }),
|
|
143725
143858
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Plus, { size: 10 })
|
|
@@ -143733,7 +143866,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143733
143866
|
onClick: deleteColumn2,
|
|
143734
143867
|
className: btnDanger,
|
|
143735
143868
|
title: "Delete column",
|
|
143736
|
-
"data-id": "md-editor-table-delete-col",
|
|
143869
|
+
"data-test-id": "md-editor-table-delete-col",
|
|
143737
143870
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Minus, { size: 14 })
|
|
143738
143871
|
}
|
|
143739
143872
|
)
|
|
@@ -143746,7 +143879,7 @@ const TableToolbar = ({ editor, theme = "light" }) => {
|
|
|
143746
143879
|
onClick: deleteTable2,
|
|
143747
143880
|
className: `${btnDanger} shrink-0`,
|
|
143748
143881
|
title: "Delete table",
|
|
143749
|
-
"data-id": "md-editor-table-delete",
|
|
143882
|
+
"data-test-id": "md-editor-table-delete",
|
|
143750
143883
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { size: 14 })
|
|
143751
143884
|
}
|
|
143752
143885
|
)
|
|
@@ -144223,7 +144356,7 @@ const AIRefinePanel = ({
|
|
|
144223
144356
|
"div",
|
|
144224
144357
|
{
|
|
144225
144358
|
className: `shrink-0 rounded-xl mb-2 border overflow-hidden transition-all duration-300 ${isDark ? "bg-gray-800/80 border-white/10 backdrop-blur-sm" : "bg-white/90 border-black/[0.08] backdrop-blur-sm shadow-sm"}`,
|
|
144226
|
-
"data-id": "md-editor-ai-tips-section",
|
|
144359
|
+
"data-test-id": "md-editor-ai-tips-section",
|
|
144227
144360
|
children: [
|
|
144228
144361
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
144229
144362
|
"button",
|
|
@@ -144231,7 +144364,7 @@ const AIRefinePanel = ({
|
|
|
144231
144364
|
type: "button",
|
|
144232
144365
|
onClick: () => setIsTipsExpanded(!isTipsExpanded),
|
|
144233
144366
|
className: `w-full flex items-center justify-between px-3.5 py-2 transition-colors ${isDark ? "hover:bg-white/5" : "hover:bg-black/[0.02]"}`,
|
|
144234
|
-
"data-id": "md-editor-ai-tips-toggle",
|
|
144367
|
+
"data-test-id": "md-editor-ai-tips-toggle",
|
|
144235
144368
|
children: [
|
|
144236
144369
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
144237
144370
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex items-center justify-center w-5 h-5 rounded-md ${isDark ? "bg-amber-500/20 text-amber-400" : "bg-amber-500/15 text-amber-600"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Zap, { size: 12 }) }),
|
|
@@ -144351,7 +144484,7 @@ const AIRefinePanel = ({
|
|
|
144351
144484
|
className: "flex items-center justify-center w-8 h-8 rounded-lg bg-white/15 text-white cursor-pointer transition-all hover:bg-white/25 hover:scale-105",
|
|
144352
144485
|
onClick: handleReset,
|
|
144353
144486
|
title: "Start over",
|
|
144354
|
-
"data-id": "md-editor-ai-reset-btn",
|
|
144487
|
+
"data-test-id": "md-editor-ai-reset-btn",
|
|
144355
144488
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(RefreshCw, { size: 16 })
|
|
144356
144489
|
}
|
|
144357
144490
|
),
|
|
@@ -144361,7 +144494,7 @@ const AIRefinePanel = ({
|
|
|
144361
144494
|
className: "flex items-center justify-center w-8 h-8 rounded-lg bg-white/15 text-white cursor-pointer transition-all hover:bg-red-500/80",
|
|
144362
144495
|
onClick: onClose,
|
|
144363
144496
|
title: "Close",
|
|
144364
|
-
"data-id": "md-editor-ai-close-btn",
|
|
144497
|
+
"data-test-id": "md-editor-ai-close-btn",
|
|
144365
144498
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, { size: 18 })
|
|
144366
144499
|
}
|
|
144367
144500
|
)
|
|
@@ -144375,7 +144508,7 @@ const AIRefinePanel = ({
|
|
|
144375
144508
|
"div",
|
|
144376
144509
|
{
|
|
144377
144510
|
className: `relative flex items-start gap-2 w-full px-3 py-2.5 rounded-lg text-left mt-2 transition-all duration-300 border ${isDark ? "bg-white/5 border-white/10" : "bg-black/[0.03] border-black/5"} ${showSelectionHighlight ? "k-md-editor-snake-border" : ""}`,
|
|
144378
|
-
"data-id": "md-editor-ai-selection-box",
|
|
144511
|
+
"data-test-id": "md-editor-ai-selection-box",
|
|
144379
144512
|
children: [
|
|
144380
144513
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `shrink-0 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide rounded-md transition-all duration-300 ${showSelectionHighlight ? "text-white bg-gradient-to-r from-violet-500 to-indigo-500 scale-105 shadow-md" : isDark ? "text-violet-400 bg-violet-500/20" : "text-violet-600 bg-violet-500/10"}`, children: context.type === "selection" ? "Selection" : "Full" }),
|
|
144381
144514
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-xs leading-snug break-words ${isDark ? "text-gray-300" : "text-gray-600"} ${isContentExpanded ? "" : "line-clamp-4"}`, children: context.originalText || "(No content selected)" }) }),
|
|
@@ -144386,7 +144519,7 @@ const AIRefinePanel = ({
|
|
|
144386
144519
|
onClick: () => setIsContentExpanded(!isContentExpanded),
|
|
144387
144520
|
className: `shrink-0 p-1 rounded transition-all duration-200 ${isDark ? "text-gray-500 hover:text-gray-300 hover:bg-white/10" : "text-gray-400 hover:text-gray-600 hover:bg-black/5"}`,
|
|
144388
144521
|
title: isContentExpanded ? "Show less" : "Show more",
|
|
144389
|
-
"data-id": "md-editor-ai-expand-btn",
|
|
144522
|
+
"data-test-id": "md-editor-ai-expand-btn",
|
|
144390
144523
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
144391
144524
|
ChevronDown,
|
|
144392
144525
|
{
|
|
@@ -144411,13 +144544,13 @@ const AIRefinePanel = ({
|
|
|
144411
144544
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: messagesEndRef })
|
|
144412
144545
|
] }),
|
|
144413
144546
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `flex flex-col gap-2.5 px-3.5 py-3 border-t shrink-0 rounded-b-xl ${isDark ? "bg-gradient-to-b from-transparent to-black/20 border-white/5" : "bg-gradient-to-b from-transparent to-black/[0.02] border-black/5"}`, children: [
|
|
144414
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-1.5", "data-id": "md-editor-ai-quick-actions", children: QUICK_ACTIONS.map((action) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
144547
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-1.5", "data-test-id": "md-editor-ai-quick-actions", children: QUICK_ACTIONS.map((action) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
144415
144548
|
"button",
|
|
144416
144549
|
{
|
|
144417
144550
|
className: `flex items-center gap-1 px-2.5 py-1.5 text-xs font-medium rounded-full cursor-pointer transition-all disabled:opacity-50 disabled:cursor-not-allowed ${isDark ? "bg-gray-700 text-gray-300 hover:bg-violet-500 hover:text-white" : "bg-gray-100 text-gray-600 hover:bg-violet-500 hover:text-white"} active:scale-95`,
|
|
144418
144551
|
onClick: () => handleQuickAction(action),
|
|
144419
144552
|
disabled: isLoading,
|
|
144420
|
-
"data-id": `md-editor-ai-action-${action.id}`,
|
|
144553
|
+
"data-test-id": `md-editor-ai-action-${action.id}`,
|
|
144421
144554
|
children: [
|
|
144422
144555
|
action.icon,
|
|
144423
144556
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: action.label })
|
|
@@ -144430,7 +144563,7 @@ const AIRefinePanel = ({
|
|
|
144430
144563
|
{
|
|
144431
144564
|
ref: mentionMenuRef,
|
|
144432
144565
|
className: `rounded-lg border shadow-lg overflow-hidden max-h-[280px] flex flex-col ${isDark ? "bg-gray-800 border-gray-600" : "bg-white border-gray-200"}`,
|
|
144433
|
-
"data-id": "md-editor-ai-mention-menu",
|
|
144566
|
+
"data-test-id": "md-editor-ai-mention-menu",
|
|
144434
144567
|
children: [
|
|
144435
144568
|
mentionQuery && !selectedCategory && searchResults.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "py-1 overflow-y-auto", children: [
|
|
144436
144569
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide ${isDark ? "text-gray-500" : "text-gray-400"}`, children: "Results" }),
|
|
@@ -144441,7 +144574,7 @@ const AIRefinePanel = ({
|
|
|
144441
144574
|
{
|
|
144442
144575
|
className: `w-full flex items-center gap-2 px-3 py-2 text-left transition-colors ${index === selectedMentionIndex ? isDark ? "bg-violet-500/20 text-violet-300" : "bg-violet-50 text-violet-700" : isDark ? "text-gray-300 hover:bg-white/5" : "text-gray-700 hover:bg-gray-50"}`,
|
|
144443
144576
|
onClick: () => insertMentionItem(item, item.category),
|
|
144444
|
-
"data-id": `md-editor-ai-mention-${isVariable ? item.path : item.id}`,
|
|
144577
|
+
"data-test-id": `md-editor-ai-mention-${isVariable ? item.path : item.id}`,
|
|
144445
144578
|
children: [
|
|
144446
144579
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-xs px-1.5 py-0.5 rounded ${isDark ? "bg-gray-700 text-gray-400" : "bg-gray-100 text-gray-500"}`, children: item.category }),
|
|
144447
144580
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium truncate", children: item.name }),
|
|
@@ -144467,7 +144600,7 @@ const AIRefinePanel = ({
|
|
|
144467
144600
|
{
|
|
144468
144601
|
className: `w-full flex items-center justify-between gap-2 px-3 py-2 text-left transition-colors ${index === selectedMentionIndex ? isDark ? "bg-violet-500/20 text-violet-300" : "bg-violet-50 text-violet-700" : isDark ? "text-gray-300 hover:bg-white/5" : "text-gray-700 hover:bg-gray-50"}`,
|
|
144469
144602
|
onClick: () => handleCategorySelect(category.type),
|
|
144470
|
-
"data-id": `md-editor-ai-mention-category-${category.type}`,
|
|
144603
|
+
"data-test-id": `md-editor-ai-mention-category-${category.type}`,
|
|
144471
144604
|
children: [
|
|
144472
144605
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
144473
144606
|
category.icon,
|
|
@@ -144492,7 +144625,7 @@ const AIRefinePanel = ({
|
|
|
144492
144625
|
{
|
|
144493
144626
|
className: `flex items-center gap-1 text-xs transition-colors ${isDark ? "text-gray-400 hover:text-gray-200" : "text-gray-500 hover:text-gray-700"}`,
|
|
144494
144627
|
onClick: handleBackToCategories,
|
|
144495
|
-
"data-id": "md-editor-ai-mention-back",
|
|
144628
|
+
"data-test-id": "md-editor-ai-mention-back",
|
|
144496
144629
|
children: [
|
|
144497
144630
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { size: 14, className: "rotate-180" }),
|
|
144498
144631
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Back" })
|
|
@@ -144525,7 +144658,7 @@ const AIRefinePanel = ({
|
|
|
144525
144658
|
(_a2 = inputRef.current) == null ? void 0 : _a2.dispatchEvent(new KeyboardEvent("keydown", { key: e3.key, bubbles: true }));
|
|
144526
144659
|
}
|
|
144527
144660
|
},
|
|
144528
|
-
"data-id": "md-editor-ai-mention-search"
|
|
144661
|
+
"data-test-id": "md-editor-ai-mention-search"
|
|
144529
144662
|
}
|
|
144530
144663
|
)
|
|
144531
144664
|
] }) }),
|
|
@@ -144536,7 +144669,7 @@ const AIRefinePanel = ({
|
|
|
144536
144669
|
{
|
|
144537
144670
|
className: `w-full flex flex-col gap-0.5 px-3 py-2 text-left transition-colors ${index === selectedMentionIndex ? isDark ? "bg-violet-500/20 text-violet-300" : "bg-violet-50 text-violet-700" : isDark ? "text-gray-300 hover:bg-white/5" : "text-gray-700 hover:bg-gray-50"}`,
|
|
144538
144671
|
onClick: () => insertMentionItem(item, selectedCategory || void 0),
|
|
144539
|
-
"data-id": `md-editor-ai-mention-item-${isVariable ? item.path : item.id}`,
|
|
144672
|
+
"data-test-id": `md-editor-ai-mention-item-${isVariable ? item.path : item.id}`,
|
|
144540
144673
|
children: [
|
|
144541
144674
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium", children: item.name }),
|
|
144542
144675
|
isVariable ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-xs truncate ${isDark ? "text-gray-500" : "text-gray-400"}`, children: `{{${selectedCategory}.${item.path}}}` }) : item.description ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `text-xs truncate ${isDark ? "text-gray-500" : "text-gray-400"}`, children: item.description }) : null
|
|
@@ -144549,7 +144682,7 @@ const AIRefinePanel = ({
|
|
|
144549
144682
|
]
|
|
144550
144683
|
}
|
|
144551
144684
|
),
|
|
144552
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `flex items-end gap-2 p-1 rounded-xl border-[1.5px] transition-all ${isDark ? "bg-gray-800 border-gray-600 focus-within:border-violet-500 focus-within:shadow-[0_0_0_4px_rgba(139,92,246,0.2)]" : "bg-white border-gray-200 focus-within:border-violet-500 focus-within:shadow-[0_0_0_4px_rgba(139,92,246,0.1)]"}`, "data-id": "md-editor-ai-input-container", children: [
|
|
144685
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `flex items-end gap-2 p-1 rounded-xl border-[1.5px] transition-all ${isDark ? "bg-gray-800 border-gray-600 focus-within:border-violet-500 focus-within:shadow-[0_0_0_4px_rgba(139,92,246,0.2)]" : "bg-white border-gray-200 focus-within:border-violet-500 focus-within:shadow-[0_0_0_4px_rgba(139,92,246,0.1)]"}`, "data-test-id": "md-editor-ai-input-container", children: [
|
|
144553
144686
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
144554
144687
|
"textarea",
|
|
144555
144688
|
{
|
|
@@ -144561,7 +144694,7 @@ const AIRefinePanel = ({
|
|
|
144561
144694
|
onKeyDown: handleKeyDown2,
|
|
144562
144695
|
rows: 1,
|
|
144563
144696
|
disabled: isLoading,
|
|
144564
|
-
"data-id": "md-editor-ai-input"
|
|
144697
|
+
"data-test-id": "md-editor-ai-input"
|
|
144565
144698
|
}
|
|
144566
144699
|
),
|
|
144567
144700
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -144575,7 +144708,7 @@ const AIRefinePanel = ({
|
|
|
144575
144708
|
},
|
|
144576
144709
|
disabled: !inputValue.trim() || isLoading,
|
|
144577
144710
|
title: "Send",
|
|
144578
|
-
"data-id": "md-editor-ai-send-btn",
|
|
144711
|
+
"data-test-id": "md-editor-ai-send-btn",
|
|
144579
144712
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Send, { size: 18 })
|
|
144580
144713
|
}
|
|
144581
144714
|
)
|
|
@@ -144588,7 +144721,7 @@ const AIRefinePanel = ({
|
|
|
144588
144721
|
"div",
|
|
144589
144722
|
{
|
|
144590
144723
|
className: "flex flex-col w-[400px] min-w-[340px] max-w-[500px] h-[calc(100%-24px)] m-3 mr-3 ml-0 shrink-0 animate-[ai-panel-slide-in_0.3s_cubic-bezier(0.4,0,0.2,1)]",
|
|
144591
|
-
"data-id": "md-editor-ai-panel-side",
|
|
144724
|
+
"data-test-id": "md-editor-ai-panel-side",
|
|
144592
144725
|
children: [
|
|
144593
144726
|
tipsContent,
|
|
144594
144727
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex-1 min-h-0 border rounded-2xl overflow-hidden ${isDark ? "border-white/10 shadow-[-4px_0_32px_rgba(0,0,0,0.4)]" : "border-black/[0.08] shadow-[-4px_0_32px_rgba(0,0,0,0.12)]"}`, children: panelContent })
|
|
@@ -144596,13 +144729,13 @@ const AIRefinePanel = ({
|
|
|
144596
144729
|
}
|
|
144597
144730
|
);
|
|
144598
144731
|
case "inline-popup":
|
|
144599
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center", "data-id": "md-editor-ai-panel-popup", children: [
|
|
144732
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center", "data-test-id": "md-editor-ai-panel-popup", children: [
|
|
144600
144733
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
144601
144734
|
"div",
|
|
144602
144735
|
{
|
|
144603
144736
|
className: "absolute inset-0 bg-black/60 backdrop-blur-sm animate-[ai-backdrop-in_0.2s_ease-out]",
|
|
144604
144737
|
onClick: onClose,
|
|
144605
|
-
"data-id": "md-editor-ai-panel-backdrop"
|
|
144738
|
+
"data-test-id": "md-editor-ai-panel-backdrop"
|
|
144606
144739
|
}
|
|
144607
144740
|
),
|
|
144608
144741
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative w-[90%] max-w-[600px] max-h-[80vh] flex flex-col gap-2 animate-[ai-popup-scale-in_0.3s_cubic-bezier(0.4,0,0.2,1)]", children: [
|
|
@@ -144611,19 +144744,19 @@ const AIRefinePanel = ({
|
|
|
144611
144744
|
] })
|
|
144612
144745
|
] });
|
|
144613
144746
|
case "bottom-drawer":
|
|
144614
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-[9999] flex flex-col justify-end", "data-id": "md-editor-ai-panel-drawer", children: [
|
|
144747
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-[9999] flex flex-col justify-end", "data-test-id": "md-editor-ai-panel-drawer", children: [
|
|
144615
144748
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
144616
144749
|
"div",
|
|
144617
144750
|
{
|
|
144618
144751
|
className: "absolute inset-0 bg-black/60 backdrop-blur-sm",
|
|
144619
144752
|
onClick: onClose,
|
|
144620
|
-
"data-id": "md-editor-ai-panel-backdrop"
|
|
144753
|
+
"data-test-id": "md-editor-ai-panel-backdrop"
|
|
144621
144754
|
}
|
|
144622
144755
|
),
|
|
144623
144756
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative w-full max-h-[70vh] flex flex-col gap-2 px-4 pb-4 animate-[ai-drawer-slide-up_0.4s_cubic-bezier(0.4,0,0.2,1)]", children: [
|
|
144624
144757
|
tipsContent,
|
|
144625
144758
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-h-0 rounded-t-[24px] overflow-hidden shadow-[0_-10px_40px_rgba(0,0,0,0.2)]", children: [
|
|
144626
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-10 h-1 rounded-full mx-auto mt-3 mb-2 ${isDark ? "bg-white/20" : "bg-black/20"}`, "data-id": "md-editor-ai-panel-drawer-handle" }),
|
|
144759
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-10 h-1 rounded-full mx-auto mt-3 mb-2 ${isDark ? "bg-white/20" : "bg-black/20"}`, "data-test-id": "md-editor-ai-panel-drawer-handle" }),
|
|
144627
144760
|
panelContent
|
|
144628
144761
|
] })
|
|
144629
144762
|
] })
|
|
@@ -144633,7 +144766,7 @@ const AIRefinePanel = ({
|
|
|
144633
144766
|
"div",
|
|
144634
144767
|
{
|
|
144635
144768
|
className: "flex flex-col w-[400px] min-w-[340px] max-w-[500px] h-[calc(100%-24px)] m-3 mr-3 ml-0 shrink-0 animate-[ai-panel-slide-in_0.3s_cubic-bezier(0.4,0,0.2,1)]",
|
|
144636
|
-
"data-id": "md-editor-ai-panel",
|
|
144769
|
+
"data-test-id": "md-editor-ai-panel",
|
|
144637
144770
|
children: [
|
|
144638
144771
|
tipsContent,
|
|
144639
144772
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `flex-1 min-h-0 border rounded-2xl overflow-hidden ${isDark ? "border-white/10 shadow-[-4px_0_32px_rgba(0,0,0,0.4)]" : "border-black/[0.08] shadow-[-4px_0_32px_rgba(0,0,0,0.12)]"}`, children: panelContent })
|
|
@@ -144714,14 +144847,14 @@ const AIContextMenu = ({
|
|
|
144714
144847
|
ref: menuRef,
|
|
144715
144848
|
className: "ai-context-menu fixed z-[9999] min-w-[180px] bg-gray-800 rounded-lg shadow-xl p-1 overflow-hidden",
|
|
144716
144849
|
style: { top: adjustedPosition.y, left: adjustedPosition.x },
|
|
144717
|
-
"data-id": "md-editor-context-menu",
|
|
144850
|
+
"data-test-id": "md-editor-context-menu",
|
|
144718
144851
|
children: [
|
|
144719
144852
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
144720
144853
|
"button",
|
|
144721
144854
|
{
|
|
144722
144855
|
className: "ai-context-menu__item ai-context-menu__item--ai flex items-center gap-2.5 w-full py-2.5 px-3 border-0 rounded-md cursor-pointer bg-violet-500/10 text-violet-400 text-sm font-medium text-left transition-colors duration-150 hover:bg-violet-500/20",
|
|
144723
144856
|
onClick: handleAIRefine,
|
|
144724
|
-
"data-id": "md-editor-context-ai-refine",
|
|
144857
|
+
"data-test-id": "md-editor-context-ai-refine",
|
|
144725
144858
|
children: [
|
|
144726
144859
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Sparkles, { size: 16 }),
|
|
144727
144860
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: hasSelection2 ? "Refine Selection with AI" : "Refine with AI" }),
|
|
@@ -144736,7 +144869,7 @@ const AIContextMenu = ({
|
|
|
144736
144869
|
{
|
|
144737
144870
|
className: "ai-context-menu__item flex items-center gap-2.5 w-full py-2 px-3 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 text-sm text-left transition-colors duration-150 hover:bg-gray-700 hover:text-white",
|
|
144738
144871
|
onClick: handleCut,
|
|
144739
|
-
"data-id": "md-editor-context-cut",
|
|
144872
|
+
"data-test-id": "md-editor-context-cut",
|
|
144740
144873
|
children: [
|
|
144741
144874
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Scissors, { size: 16 }),
|
|
144742
144875
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Cut" }),
|
|
@@ -144749,7 +144882,7 @@ const AIContextMenu = ({
|
|
|
144749
144882
|
{
|
|
144750
144883
|
className: "ai-context-menu__item flex items-center gap-2.5 w-full py-2 px-3 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 text-sm text-left transition-colors duration-150 hover:bg-gray-700 hover:text-white",
|
|
144751
144884
|
onClick: handleCopy,
|
|
144752
|
-
"data-id": "md-editor-context-copy",
|
|
144885
|
+
"data-test-id": "md-editor-context-copy",
|
|
144753
144886
|
children: [
|
|
144754
144887
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { size: 16 }),
|
|
144755
144888
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Copy" }),
|
|
@@ -144763,7 +144896,7 @@ const AIContextMenu = ({
|
|
|
144763
144896
|
{
|
|
144764
144897
|
className: "ai-context-menu__item flex items-center gap-2.5 w-full py-2 px-3 border-0 rounded-md cursor-pointer bg-transparent text-gray-400 text-sm text-left transition-colors duration-150 hover:bg-gray-700 hover:text-white",
|
|
144765
144898
|
onClick: handlePaste2,
|
|
144766
|
-
"data-id": "md-editor-context-paste",
|
|
144899
|
+
"data-test-id": "md-editor-context-paste",
|
|
144767
144900
|
children: [
|
|
144768
144901
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Clipboard, { size: 16 }),
|
|
144769
144902
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Paste" }),
|
|
@@ -145495,7 +145628,7 @@ const MDEditor = forwardRef(
|
|
|
145495
145628
|
[editor, insertVariable, insertMention, openAIRefine, closeAIRefine, toggleRawMode, isRawMode]
|
|
145496
145629
|
);
|
|
145497
145630
|
if (!editor) {
|
|
145498
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `k-md-editor k-md-editor--${theme} flex items-center justify-center min-h-[200px] ${className}`, "data-id": "md-editor-loading", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full min-h-[200px] rounded bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 dark:from-gray-700 dark:via-gray-600 dark:to-gray-700 bg-[length:200%_100%] animate-pulse" }) });
|
|
145631
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `k-md-editor k-md-editor--${theme} flex items-center justify-center min-h-[200px] ${className}`, "data-test-id": "md-editor-loading", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full min-h-[200px] rounded bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 dark:from-gray-700 dark:via-gray-600 dark:to-gray-700 bg-[length:200%_100%] animate-pulse" }) });
|
|
145499
145632
|
}
|
|
145500
145633
|
const isAIEnabled = mergedAIConfig.enabled && onAIRefine && !readOnly;
|
|
145501
145634
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -145503,7 +145636,7 @@ const MDEditor = forwardRef(
|
|
|
145503
145636
|
{
|
|
145504
145637
|
ref: editorContainerRef,
|
|
145505
145638
|
className: `k-md-editor k-md-editor--${theme} ${readOnly ? "pointer-events-none opacity-80" : ""} ${mergedFeatures.dragDrop ? "k-md-editor--drag-enabled" : ""} ${aiPanelOpen && mergedAIConfig.panelPosition === "side-panel" ? "k-md-editor--ai-panel-open" : ""} ${className}`,
|
|
145506
|
-
"data-id": "md-editor",
|
|
145639
|
+
"data-test-id": "md-editor",
|
|
145507
145640
|
"data-theme": theme,
|
|
145508
145641
|
children: [
|
|
145509
145642
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "k-md-editor__main flex flex-col flex-1 min-w-0 h-full relative transition-[flex] duration-[250ms] ease-[cubic-bezier(0.4,0,0.2,1)]", children: [
|
|
@@ -145606,7 +145739,7 @@ const MDEditor = forwardRef(
|
|
|
145606
145739
|
onClick: toggleRawMode,
|
|
145607
145740
|
className: "absolute top-2 right-2 p-1.5 rounded-md z-10 transition-all duration-200\n bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm\n border border-gray-200 dark:border-gray-700\n hover:bg-gray-100 dark:hover:bg-gray-700\n hover:border-gray-300 dark:hover:border-gray-600\n text-gray-600 dark:text-gray-400\n hover:text-gray-900 dark:hover:text-gray-100\n shadow-sm hover:shadow",
|
|
145608
145741
|
title: isRawMode ? "Switch to rich editor" : "Switch to raw markdown",
|
|
145609
|
-
"data-id": "md-editor-raw-toggle",
|
|
145742
|
+
"data-test-id": "md-editor-raw-toggle",
|
|
145610
145743
|
children: isRawMode ? (
|
|
145611
145744
|
// Eye icon (switch to rich/preview mode)
|
|
145612
145745
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, children: [
|
|
@@ -145628,7 +145761,7 @@ const MDEditor = forwardRef(
|
|
|
145628
145761
|
onChange: (e3) => handleRawMarkdownChange(e3.target.value),
|
|
145629
145762
|
className: "k-md-editor__raw-textarea w-full h-full min-h-[200px] p-4 pr-12\n font-mono text-sm leading-relaxed resize-none\n bg-gray-50 dark:bg-gray-900\n text-gray-900 dark:text-gray-100\n border-0 focus:outline-none focus:ring-0\n placeholder:text-gray-400 dark:placeholder:text-gray-600",
|
|
145630
145763
|
placeholder: "Write your markdown here...\n\n# Heading\n## Subheading\n- Bullet point\n1. Numbered list\n**bold** _italic_ `code`",
|
|
145631
|
-
"data-id": "md-editor-raw-textarea",
|
|
145764
|
+
"data-test-id": "md-editor-raw-textarea",
|
|
145632
145765
|
spellCheck: false
|
|
145633
145766
|
}
|
|
145634
145767
|
)
|