quidproquo-web-admin 0.1.0 → 0.1.2
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/lib/commonjs/Auth/Auth.js +5 -6
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +1 -1
- package/lib/commonjs/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.js +2 -2
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +2 -2
- package/lib/commonjs/Auth/Login.js +2 -2
- package/lib/commonjs/Auth/logic/authRuntime.d.ts +7 -0
- package/lib/commonjs/Auth/logic/authRuntime.js +7 -0
- package/lib/commonjs/Auth/logic/index.d.ts +1 -0
- package/lib/commonjs/Auth/logic/index.js +1 -0
- package/lib/commonjs/Auth/logic/runtime/askAuthLogout.d.ts +2 -0
- package/lib/commonjs/Auth/logic/runtime/askAuthLogout.js +15 -0
- package/lib/commonjs/Auth/logic/runtime/authLogic.d.ts +2 -0
- package/lib/commonjs/Auth/logic/runtime/authLogic.js +2 -0
- package/lib/commonjs/Config/Config.js +3 -3
- package/lib/commonjs/LogViewer/ActionHistoryItem.js +1 -1
- package/lib/commonjs/LogViewer/ActionRender/ActionRender.js +3 -3
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js +3 -3
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +4 -4
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogs.js +1 -1
- package/lib/commonjs/LogViewer/Dashboard.js +8 -4
- package/lib/commonjs/LogViewer/EventTimeline.js +4 -4
- package/lib/commonjs/LogViewer/HelpChat/HelpChat.js +8 -7
- package/lib/commonjs/LogViewer/LogCorrelationTree.js +27 -24
- package/lib/commonjs/LogViewer/LogCorrelations.js +1 -1
- package/lib/commonjs/LogViewer/LogDetails.js +1 -1
- package/lib/commonjs/LogViewer/LogDialog/LogDialog.js +4 -4
- package/lib/commonjs/LogViewer/LogDialog/MovedToColdStorage/MovedToColdStorage.js +1 -1
- package/lib/commonjs/LogViewer/LogDialog/tabs/LogDetailsTab/LogDetailsTab.js +1 -1
- package/lib/commonjs/LogViewer/LogDialog/tabs/TimelineTab/TimelineTab.js +1 -1
- package/lib/commonjs/LogViewer/LogDialog/tabs/TreeTab/TreeTab.js +1 -1
- package/lib/commonjs/LogViewer/LogMetadataGrid.js +3 -3
- package/lib/commonjs/LogViewer/LogRawJson.js +1 -1
- package/lib/commonjs/LogViewer/LogSearch.js +1 -1
- package/lib/commonjs/LogViewer/LogSummary.js +2 -2
- package/lib/commonjs/LogViewer/LogSummaryDetails.js +5 -2
- package/lib/commonjs/LogViewer/LogSummaryReturn.js +1 -1
- package/lib/commonjs/LogViewer/TopSection.js +7 -7
- package/lib/commonjs/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +1 -1
- package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +1 -1
- package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +1 -1
- package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +1 -1
- package/lib/commonjs/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +2 -2
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +1 -1
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +15 -15
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +7 -4
- package/lib/commonjs/LogViewer/charts/CostPerService.js +1 -1
- package/lib/commonjs/LogViewer/charts/ErrorsByType.js +1 -1
- package/lib/commonjs/LogViewer/charts/ErrorsOverTime.js +1 -1
- package/lib/commonjs/LogViewer/charts/RequestsByService.js +2 -2
- package/lib/commonjs/LogViewer/hooks/useLogManagement.js +1 -1
- package/lib/commonjs/LogViewer/hooks/useLogTreeData.js +14 -11
- package/lib/commonjs/LogViewer/hooks/useServiceNames.js +6 -5
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.js +8 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +4 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -1
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +5 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.js +14 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +5 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.js +8 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.js +8 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +1 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +12 -2
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/index.js +7 -1
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/index.js +8 -1
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.js +10 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.js +8 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.d.ts +2 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +7 -0
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +1 -1
- package/lib/commonjs/components/AdminDialog.js +2 -2
- package/lib/commonjs/components/AsyncButton.js +1 -1
- package/lib/commonjs/components/AutocompleteInput.js +2 -2
- package/lib/commonjs/components/DataGrid.js +1 -1
- package/lib/commonjs/components/DataGridPagination/DataGridPagination.js +1 -1
- package/lib/commonjs/components/DateCell/DateCell.js +1 -1
- package/lib/commonjs/components/DateRangePicker.js +2 -2
- package/lib/commonjs/components/MainLayout/MainLayout.js +11 -2
- package/lib/commonjs/components/TextInput.js +2 -2
- package/lib/commonjs/tmp/RandomView.js +1 -1
- package/lib/commonjs/useFederatedAddon.js +7 -6
- package/lib/esm/Auth/Auth.js +3 -4
- package/lib/esm/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +1 -1
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authActionCreator.js +1 -1
- package/lib/esm/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.js +1 -1
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +1 -1
- package/lib/esm/Auth/Login.js +2 -2
- package/lib/esm/Auth/logic/authRuntime.d.ts +7 -0
- package/lib/esm/Auth/logic/authRuntime.js +4 -0
- package/lib/esm/Auth/logic/index.d.ts +1 -0
- package/lib/esm/Auth/logic/index.js +1 -0
- package/lib/esm/Auth/logic/runtime/askAuthLogout.d.ts +2 -0
- package/lib/esm/Auth/logic/runtime/askAuthLogout.js +12 -0
- package/lib/esm/Auth/logic/runtime/authLogic.d.ts +2 -0
- package/lib/esm/Auth/logic/runtime/authLogic.js +2 -0
- package/lib/esm/Config/Config.js +3 -3
- package/lib/esm/LogViewer/ActionHistoryItem.js +1 -1
- package/lib/esm/LogViewer/ActionRender/ActionRender.js +3 -3
- package/lib/esm/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js +3 -3
- package/lib/esm/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +4 -4
- package/lib/esm/LogViewer/AdminLogs/AdminLogs.js +1 -1
- package/lib/esm/LogViewer/Dashboard.js +9 -5
- package/lib/esm/LogViewer/EventTimeline.js +4 -4
- package/lib/esm/LogViewer/HelpChat/HelpChat.js +9 -8
- package/lib/esm/LogViewer/LogCorrelationTree.js +27 -24
- package/lib/esm/LogViewer/LogCorrelations.js +1 -1
- package/lib/esm/LogViewer/LogDetails.js +1 -1
- package/lib/esm/LogViewer/LogDialog/LogDialog.js +4 -4
- package/lib/esm/LogViewer/LogDialog/MovedToColdStorage/MovedToColdStorage.js +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/LogDetailsTab/LogDetailsTab.js +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/TimelineTab/TimelineTab.js +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/TreeTab/TreeTab.js +1 -1
- package/lib/esm/LogViewer/LogMetadataGrid.js +3 -3
- package/lib/esm/LogViewer/LogRawJson.js +1 -1
- package/lib/esm/LogViewer/LogSearch.js +1 -1
- package/lib/esm/LogViewer/LogSummary.js +2 -2
- package/lib/esm/LogViewer/LogSummaryDetails.js +5 -2
- package/lib/esm/LogViewer/LogSummaryReturn.js +1 -1
- package/lib/esm/LogViewer/TopSection.js +7 -7
- package/lib/esm/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +1 -1
- package/lib/esm/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +1 -1
- package/lib/esm/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +1 -1
- package/lib/esm/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +1 -1
- package/lib/esm/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +2 -2
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +1 -1
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +15 -15
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +7 -4
- package/lib/esm/LogViewer/charts/CostPerService.js +1 -1
- package/lib/esm/LogViewer/charts/ErrorsByType.js +1 -1
- package/lib/esm/LogViewer/charts/ErrorsOverTime.js +1 -1
- package/lib/esm/LogViewer/charts/RequestsByService.js +2 -2
- package/lib/esm/LogViewer/hooks/useLogManagement.js +1 -1
- package/lib/esm/LogViewer/hooks/useLogTreeData.js +15 -12
- package/lib/esm/LogViewer/hooks/useServiceNames.js +7 -6
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.js +6 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +4 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -1
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.js +12 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.js +6 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.js +6 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +1 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +12 -2
- package/lib/esm/LogViewer/logic/actionComponentMap/core/index.js +12 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/index.js +14 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.js +8 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.js +6 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.d.ts +2 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +5 -0
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +1 -1
- package/lib/esm/components/AdminDialog.js +2 -2
- package/lib/esm/components/AsyncButton.js +1 -1
- package/lib/esm/components/AutocompleteInput.js +2 -2
- package/lib/esm/components/DataGrid.js +1 -1
- package/lib/esm/components/DataGridPagination/DataGridPagination.js +1 -1
- package/lib/esm/components/DateCell/DateCell.js +1 -1
- package/lib/esm/components/DateRangePicker.js +2 -2
- package/lib/esm/components/MainLayout/MainLayout.js +11 -2
- package/lib/esm/components/TextInput.js +2 -2
- package/lib/esm/tmp/RandomView.js +1 -1
- package/lib/esm/useFederatedAddon.js +8 -7
- package/package.json +7 -7
|
@@ -15,6 +15,6 @@ const LogDetailsTab = ({ log, logDialogState: { hideFastActions, orderByDuration
|
|
|
15
15
|
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
16
16
|
display: 'flex',
|
|
17
17
|
flexDirection: 'row-reverse',
|
|
18
|
-
}, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: hideFastActions, onChange: (event) => setHideFastActions(event.target.checked) }), label: "Hide Fast Actions" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: orderByDuration, onChange: (event) => setOrderByDuration(event.target.checked) }), label: "Order by Duration" })] }), (0, jsx_runtime_1.jsx)(LogDetails_1.LogDetails, { log: log.log,
|
|
18
|
+
}, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: hideFastActions, onChange: (event) => setHideFastActions(event.target.checked) }), label: "Hide Fast Actions" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: orderByDuration, onChange: (event) => setOrderByDuration(event.target.checked) }), label: "Order by Duration" })] }), (0, jsx_runtime_1.jsx)(LogDetails_1.LogDetails, { hideFastActions: hideFastActions, log: log.log, orderByDuration: orderByDuration })] }));
|
|
19
19
|
};
|
|
20
20
|
exports.LogDetailsTab = LogDetailsTab;
|
|
@@ -7,6 +7,6 @@ const TimelineTab = ({ log, isVisible, setSelectedLogCorrelation, treeApi, }) =>
|
|
|
7
7
|
if (log.isLoading) {
|
|
8
8
|
return (0, jsx_runtime_1.jsx)("div", { children: "Loading..." });
|
|
9
9
|
}
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(EventTimeline_1.EventTimeline, { logCorrelation: log.logCorrelation, setSelectedLogCorrelation: setSelectedLogCorrelation,
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(EventTimeline_1.EventTimeline, { isVisible: isVisible, logCorrelation: log.logCorrelation, setSelectedLogCorrelation: setSelectedLogCorrelation, treeApi: treeApi }));
|
|
11
11
|
};
|
|
12
12
|
exports.TimelineTab = TimelineTab;
|
|
@@ -7,6 +7,6 @@ const TreeTab = ({ log, isVisible, setSelectedLogCorrelation, treeApi, }) => {
|
|
|
7
7
|
if (log.isLoading) {
|
|
8
8
|
return (0, jsx_runtime_1.jsx)("div", { children: "Loading..." });
|
|
9
9
|
}
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(LogCorrelations_1.LogCorrelations, { logCorrelation: log.logCorrelation, setSelectedLogCorrelation: setSelectedLogCorrelation,
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(LogCorrelations_1.LogCorrelations, { isVisible: isVisible, logCorrelation: log.logCorrelation, setSelectedLogCorrelation: setSelectedLogCorrelation, treeApi: treeApi }));
|
|
11
11
|
};
|
|
12
12
|
exports.TreeTab = TreeTab;
|
|
@@ -55,9 +55,9 @@ const LogMetadataGrid = ({ logs, isLoading }) => {
|
|
|
55
55
|
.greenRow {
|
|
56
56
|
background-color: #eaffea;
|
|
57
57
|
}
|
|
58
|
-
` }), (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { components: {
|
|
58
|
+
` }), (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { autoPageSize: true, columns: columns, components: {
|
|
59
59
|
Pagination: DataGridPagination_1.DataGridPagination,
|
|
60
|
-
LoadingOverlay: () => (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { variant: "determinate"
|
|
61
|
-
},
|
|
60
|
+
LoadingOverlay: () => (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { value: searchProgress, variant: "determinate" }),
|
|
61
|
+
}, getRowClassName: getRowClassName, loading: isLoading, onRowClick: onRowClick, rows: logs.map((log) => (Object.assign(Object.assign({}, log), { id: log.correlation }))) }), (0, jsx_runtime_1.jsx)(LogDialog_1.LogDialog, { handleClose: clearSelectedLogCorrelation, logCorrelation: selectedLogCorrelation, open: !!selectedLogCorrelation, setSelectedLogCorrelation: setSelectedLogCorrelation, storyResultMetadatas: logs })] }));
|
|
62
62
|
};
|
|
63
63
|
exports.LogMetadataGrid = LogMetadataGrid;
|
|
@@ -4,6 +4,6 @@ exports.LogRawJson = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const LogRawJson = ({ log }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: 1, p: 2 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6",
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: 1, p: 2 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h6", children: "Raw JSON" }), (0, jsx_runtime_1.jsx)("pre", { style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }, children: JSON.stringify(log, null, 2) })] }));
|
|
8
8
|
};
|
|
9
9
|
exports.LogRawJson = LogRawJson;
|
|
@@ -10,6 +10,6 @@ const TopSection_1 = require("./TopSection");
|
|
|
10
10
|
const LogSearch = () => {
|
|
11
11
|
const { onSearch, logs } = (0, hooks_1.useLogSearch)();
|
|
12
12
|
const isLoading = (0, useIsLoading_1.useIsLoading)();
|
|
13
|
-
return (0, jsx_runtime_1.jsx)(TabViewBox_1.TabViewBox, {
|
|
13
|
+
return (0, jsx_runtime_1.jsx)(TabViewBox_1.TabViewBox, { body: () => (0, jsx_runtime_1.jsx)(LogMetadataGrid_1.LogMetadataGrid, { isLoading: isLoading, logs: logs }), header: () => (0, jsx_runtime_1.jsx)(TopSection_1.TopSection, { onSearch: onSearch }) });
|
|
14
14
|
};
|
|
15
15
|
exports.LogSearch = LogSearch;
|
|
@@ -36,7 +36,7 @@ const LogSummary = ({ log }) => {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
sendMessage(refreshEvent);
|
|
39
|
-
}, [log.correlation]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: 1, p: 2 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6",
|
|
39
|
+
}, [log.correlation, sendMessage]);
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: 1, p: 2 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h6", children: "Log Summary" }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Correlation ID: ", log.correlation] }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: checkedLoading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 24 }) : (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: !!(logMetadata === null || logMetadata === void 0 ? void 0 : logMetadata.checked), onChange: handleCheckboxChange }), label: "Mark as done" })] }));
|
|
41
41
|
};
|
|
42
42
|
exports.LogSummary = LogSummary;
|
|
@@ -11,10 +11,13 @@ const ExpandLess_1 = __importDefault(require("@mui/icons-material/ExpandLess"));
|
|
|
11
11
|
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
12
12
|
const material_1 = require("@mui/material");
|
|
13
13
|
const AnyVariableView_1 = require("./actionComponents/genericActionRenderer/AnyVariableView");
|
|
14
|
+
const runtimeTypeToCamelCase = (runtimeType) => runtimeType.toLowerCase().replace(/_(\w)/g, (_, char) => char.toUpperCase());
|
|
14
15
|
const LogSummaryDetails = ({ log }) => {
|
|
15
16
|
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
16
17
|
const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();
|
|
17
|
-
const functionKey = log.qpqFunctionRuntimeInfo
|
|
18
|
-
|
|
18
|
+
const functionKey = log.qpqFunctionRuntimeInfo
|
|
19
|
+
? (0, quidproquo_core_1.getUniqueKeyFromQpqFunctionRuntime)(log.qpqFunctionRuntimeInfo)
|
|
20
|
+
: runtimeTypeToCamelCase(log.runtimeType);
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { alignItems: "center", display: "flex", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { gutterBottom: true, variant: "h5", children: [log.runtimeType, " - ", log.moduleName] }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }) })] }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: [(0, jsx_runtime_1.jsxs)("div", { style: AnyVariableView_1.genericFunctionRendererStyles.commentBlock, children: [(0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' }), (0, jsx_runtime_1.jsxs)("div", { children: ['// src: ', functionKey] }), log.fromCorrelation && ((0, jsx_runtime_1.jsxs)("div", { children: ['// Caller: ', log.fromCorrelation] })), (0, jsx_runtime_1.jsxs)("div", { children: ['// Total Runtime: ', (0, jsx_runtime_1.jsxs)("span", { style: AnyVariableView_1.genericFunctionRendererStyles.highlightComment, children: [totalRuntime, " ms"] })] }), (0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' })] }), (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { args: log.input, expanded: expanded, functionName: functionKey.split('::').pop() || 'unknown' })] }) })] }));
|
|
19
22
|
};
|
|
20
23
|
exports.LogSummaryDetails = LogSummaryDetails;
|
|
@@ -12,6 +12,6 @@ const material_1 = require("@mui/material");
|
|
|
12
12
|
const actionComponents_1 = require("./actionComponents");
|
|
13
13
|
const LogSummaryReturn = ({ log }) => {
|
|
14
14
|
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { alignItems: "center", display: "flex", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h6", children: log.error ? 'Thrown Error' : 'Returned' }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }) })] }), (0, jsx_runtime_1.jsx)("pre", { style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }, children: (0, jsx_runtime_1.jsx)("pre", { style: actionComponents_1.genericFunctionRendererStyles.pre, children: log.error ? (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { expanded: expanded, value: log.error }) : (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { expanded: expanded, value: log.result }) }) })] }));
|
|
16
16
|
};
|
|
17
17
|
exports.LogSummaryReturn = LogSummaryReturn;
|
|
@@ -35,20 +35,20 @@ function TopSection({ onSearch }) {
|
|
|
35
35
|
updateStartAndEndTimeSpan(minutes);
|
|
36
36
|
handleQuickTimeClose();
|
|
37
37
|
};
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, children: [(0, jsx_runtime_1.jsxs)(Grid_1.default, {
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, children: [(0, jsx_runtime_1.jsxs)(Grid_1.default, { columns: 12, container: true, spacing: 2, children: [(0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: true, children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { id: "runtime-select-label", children: "Runtime Type" }), (0, jsx_runtime_1.jsx)(Select_1.default, { id: "demo-simple-select", label: "Runtime Type", labelId: "runtime-select-label", onChange: handleRuntimeTypeOnChange, value: runtimeType, children: constants_1.RuntimeTypes.map((key) => ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { value: key, children: key }, key))) })] }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(material_1.Autocomplete, { getOptionLabel: (option) => option.label, onChange: handleServiceOnChange, options: serviceOptions, renderInput: (params) => ((0, jsx_runtime_1.jsx)(TextField_1.default, Object.assign({}, params, { InputLabelProps: {
|
|
39
39
|
shrink: true,
|
|
40
|
-
} }))) }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsxs)(system_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "Start DateTime",
|
|
40
|
+
}, label: "Service Name" }))), value: serviceOptions.find((o) => o.value === service) || null }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsxs)(system_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "Start DateTime", onChange: handleStartDateChange, value: startDate }) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-controls": "quick-time-menu", "aria-haspopup": "true", "aria-label": "quick time select", onClick: handleQuickTimeClick, sx: {
|
|
41
41
|
position: 'absolute',
|
|
42
42
|
right: '-28px',
|
|
43
43
|
top: '50%',
|
|
44
44
|
transform: 'translateY(-50%)',
|
|
45
|
-
}, children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) })] }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime",
|
|
45
|
+
}, children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) })] }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime", onChange: handleEndDateChange, value: endDate }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 4, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: {
|
|
46
46
|
shrink: true,
|
|
47
|
-
} }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, {
|
|
47
|
+
}, label: "User", onChange: handleUserOnChange, value: user }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: {
|
|
48
48
|
shrink: true,
|
|
49
|
-
} }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, {
|
|
49
|
+
}, label: "Info", onChange: handleInfoOnChange, value: info }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: {
|
|
50
50
|
shrink: true,
|
|
51
|
-
} }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 10, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, {
|
|
51
|
+
}, label: "Error Filter", onChange: handleErrorOnChange, value: error }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 10, children: (0, jsx_runtime_1.jsx)(FormControl_1.default, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: {
|
|
52
52
|
shrink: true,
|
|
53
|
-
} }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(AsyncButton_1.AsyncButton, { onClick: () => onSearch(), children: "Search" }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Menu, { id: "quick-time-menu",
|
|
53
|
+
}, label: "Deep Search", onChange: handleDeepOnChange, placeholder: "Use with caution, reduce results with above fields first, this is a contains search on the log JSON, so it will be slow.", value: deep }) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(AsyncButton_1.AsyncButton, { onClick: () => onSearch(), children: "Search" }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Menu, { anchorEl: anchorEl, id: "quick-time-menu", keepMounted: true, onClose: handleQuickTimeClose, open: Boolean(anchorEl), children: [(0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(5), children: "Last 5 minutes" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(30), children: "Last 30 minutes" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(1 * 60), children: "Last hour" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(3 * 60), children: "Last 3 hours" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(8 * 60), children: "Last 8 hours" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(16 * 60), children: "Last 16 hours" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(24 * 60), children: "Last 24 hours" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(7 * 24 * 60), children: "Last 7 days" }), (0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: () => handleQuickTimeSelect(30 * 24 * 60), children: "Last month" })] })] }));
|
|
54
54
|
}
|
|
@@ -5,6 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const genericActionRenderer_1 = require("../genericActionRenderer");
|
|
7
7
|
const CoreContextListCustomAction = ({ result, expanded, }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)("pre", { style: genericActionRenderer_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)("pre", { style: genericActionRenderer_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { expanded: expanded, value: result }) }) }));
|
|
9
9
|
};
|
|
10
10
|
exports.CoreContextListCustomAction = CoreContextListCustomAction;
|
|
@@ -30,6 +30,6 @@ const CoreLogCreateCustomAction = ({ action, expanded }) => {
|
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
32
|
const { logLevel, msg, data } = action.payload;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsxs)(Alert_1.default, { severity: getSeverity(logLevel), children: [(0, jsx_runtime_1.jsx)(material_1.Typography, {
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsxs)(Alert_1.default, { severity: getSeverity(logLevel), children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { fontWeight: "bold", variant: "body1", children: (0, quidproquo_core_1.resolveLookupText)(logLevel, quidproquo_core_1.LogLevelEnum) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: msg }), data && ((0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { mt: 1, whiteSpace: 'pre-wrap' }, variant: "body2", children: (0, jsx_runtime_1.jsx)("pre", { style: genericActionRenderer_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { expanded: expanded, value: data }) }) }))] }) }));
|
|
34
34
|
};
|
|
35
35
|
exports.CoreLogCreateCustomAction = CoreLogCreateCustomAction;
|
package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js
CHANGED
|
@@ -12,6 +12,6 @@ const CoreLogDisableEventHistoryCustomAction = ({ action }) => {
|
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
14
|
const { reason } = action.payload;
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)(Alert_1.default, { severity: 'warning', children: (0, jsx_runtime_1.jsx)(material_1.Typography, {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)(Alert_1.default, { severity: 'warning', children: (0, jsx_runtime_1.jsx)(material_1.Typography, { fontWeight: "bold", variant: "body1", children: reason }) }) }));
|
|
16
16
|
};
|
|
17
17
|
exports.CoreLogDisableEventHistoryCustomAction = CoreLogDisableEventHistoryCustomAction;
|
package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js
CHANGED
|
@@ -13,6 +13,6 @@ const CoreLogTemplateLiteralCustomAction = ({ action, expanded }) => {
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
const { messageParts: [strings, values], } = action.payload;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)(Alert_1.default, { severity: 'info', children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: values.reduce((preComp, value, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [preComp, (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, {
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: '100%', my: 1 }, children: (0, jsx_runtime_1.jsx)(Alert_1.default, { severity: 'info', children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: values.reduce((preComp, value, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [preComp, (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { expanded: expanded, hideStringQuotes: true, value: value }), (0, jsx_runtime_1.jsx)("span", { children: strings[index + 1] })] })), (0, jsx_runtime_1.jsx)("span", { children: strings[0] })) }) }) }));
|
|
17
17
|
};
|
|
18
18
|
exports.CoreLogTemplateLiteralCustomAction = CoreLogTemplateLiteralCustomAction;
|
|
@@ -11,7 +11,7 @@ const CoreNetworkRequestCustomAction = ({ action, result, expanded }) => {
|
|
|
11
11
|
if (!action.payload) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", { style: genericActionRenderer_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.GenericFunctionRenderer, {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", { style: genericActionRenderer_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.GenericFunctionRenderer, { args: [
|
|
15
15
|
action.payload.method,
|
|
16
16
|
action.payload.url,
|
|
17
17
|
{
|
|
@@ -21,6 +21,6 @@ const CoreNetworkRequestCustomAction = ({ action, result, expanded }) => {
|
|
|
21
21
|
params: action.payload.params,
|
|
22
22
|
responseType: action.payload.responseType,
|
|
23
23
|
},
|
|
24
|
-
], tooltipMap: ['method', 'url', 'httpRequestOptions']
|
|
24
|
+
], expanded: expanded, functionName: 'askNetworkRequest', tooltipMap: ['method', 'url', 'httpRequestOptions'] }) }), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { action: action, expanded: expanded, result: result })] }));
|
|
25
25
|
};
|
|
26
26
|
exports.CoreNetworkRequestCustomAction = CoreNetworkRequestCustomAction;
|
package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js
CHANGED
|
@@ -5,7 +5,7 @@ const AnyVariableView_1 = require("./AnyVariableView");
|
|
|
5
5
|
const AnyVariableView_2 = require("./AnyVariableView");
|
|
6
6
|
const ActionResultDisplay = ({ result, expanded }) => {
|
|
7
7
|
const [successResult, errorResult] = result || [];
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [successResult !== undefined && !errorResult && ((0, jsx_runtime_1.jsxs)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: [(0, jsx_runtime_1.jsx)("span", { children: "Result: " }), (0, jsx_runtime_1.jsx)(AnyVariableView_2.AnyVariableView, {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [successResult !== undefined && !errorResult && ((0, jsx_runtime_1.jsxs)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: [(0, jsx_runtime_1.jsx)("span", { children: "Result: " }), (0, jsx_runtime_1.jsx)(AnyVariableView_2.AnyVariableView, { expanded: expanded, value: successResult })] })), errorResult !== undefined && ((0, jsx_runtime_1.jsx)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(AnyVariableView_2.AnyVariableView, { expanded: expanded, value: errorResult }) }))] }));
|
|
9
9
|
};
|
|
10
10
|
// Make sure to export ActionResultDisplay if it's defined in a separate file
|
|
11
11
|
exports.default = ActionResultDisplay;
|
|
@@ -66,13 +66,13 @@ const tryDecodeBase64 = (text) => {
|
|
|
66
66
|
const StringVariableView = ({ value, expanded, hideStringQuotes }) => {
|
|
67
67
|
const asJson = tryParseJson(value);
|
|
68
68
|
if (asJson.ok) {
|
|
69
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: asJson.value
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { expanded: expanded, value: asJson.value })] }));
|
|
70
70
|
}
|
|
71
71
|
const decoded = tryDecodeBase64(value);
|
|
72
72
|
if (decoded !== undefined) {
|
|
73
73
|
const asBase64Json = tryParseJson(decoded);
|
|
74
74
|
if (asBase64Json.ok) {
|
|
75
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "base64-json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: asBase64Json.value
|
|
75
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "base64-json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { expanded: expanded, value: asBase64Json.value })] }));
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
const trimmedValue = value.length > 25 && !expanded ? `${value.slice(0, 25)}...` : value;
|
|
@@ -87,17 +87,17 @@ const ArrayVariableView = ({ value, expanded }) => {
|
|
|
87
87
|
return !expanded ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: "[" }), (0, jsx_runtime_1.jsx)("span", { style: exports.genericFunctionRendererStyles.emptyObject, children: "Empty Array" }), (0, jsx_runtime_1.jsx)("span", { children: "]" })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "[]" }));
|
|
88
88
|
}
|
|
89
89
|
if (expanded) {
|
|
90
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: "[" }), (0, jsx_runtime_1.jsx)("div", { style: { paddingLeft: 10 }, children: value.map((item, index) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(exports.AnyVariableView, {
|
|
90
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: "[" }), (0, jsx_runtime_1.jsx)("div", { style: { paddingLeft: 10 }, children: value.map((item, index) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(exports.AnyVariableView, { expanded: expanded, value: item }), ","] }, index))) }), (0, jsx_runtime_1.jsx)("span", { children: "]" })] }));
|
|
91
91
|
}
|
|
92
92
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: "[ " }), (0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.arrayItems, children: [value.length, " items"] }), (0, jsx_runtime_1.jsx)("span", { children: " ]" })] }));
|
|
93
93
|
};
|
|
94
94
|
exports.ArrayVariableView = ArrayVariableView;
|
|
95
95
|
const KvsQueryConditionVariableView = ({ value, expanded }) => {
|
|
96
|
-
return (0, jsx_runtime_1.jsx)(exports.GenericFunctionRenderer, {
|
|
96
|
+
return (0, jsx_runtime_1.jsx)(exports.GenericFunctionRenderer, { args: [value.key, value.valueA], expanded: expanded, functionName: `kvs${value.operation}` });
|
|
97
97
|
};
|
|
98
98
|
exports.KvsQueryConditionVariableView = KvsQueryConditionVariableView;
|
|
99
99
|
const KvsLogicalOperatorVariableView = ({ value, expanded }) => {
|
|
100
|
-
return (0, jsx_runtime_1.jsx)(exports.GenericFunctionRenderer, {
|
|
100
|
+
return (0, jsx_runtime_1.jsx)(exports.GenericFunctionRenderer, { args: [value.conditions], expanded: expanded, functionName: `kvs${value.operation}` });
|
|
101
101
|
};
|
|
102
102
|
exports.KvsLogicalOperatorVariableView = KvsLogicalOperatorVariableView;
|
|
103
103
|
const EmptyObjectVariableView = ({ value, expanded }) => {
|
|
@@ -105,29 +105,29 @@ const EmptyObjectVariableView = ({ value, expanded }) => {
|
|
|
105
105
|
};
|
|
106
106
|
exports.EmptyObjectVariableView = EmptyObjectVariableView;
|
|
107
107
|
const QpqBinaryDataVariableView = ({ value, expanded }) => {
|
|
108
|
-
return ((0, jsx_runtime_1.jsx)("img", { src: `data:${value.mimeType || 'image/jpeg'};base64,${value.base64Data}`,
|
|
108
|
+
return ((0, jsx_runtime_1.jsx)("img", { alt: "Binary Data", src: `data:${value.mimeType || 'image/jpeg'};base64,${value.base64Data}`, style: { width: '100px', height: 'auto' } }));
|
|
109
109
|
};
|
|
110
110
|
exports.QpqBinaryDataVariableView = QpqBinaryDataVariableView;
|
|
111
111
|
const ObjectVariableView = ({ value, expanded }) => {
|
|
112
112
|
if (Array.isArray(value)) {
|
|
113
|
-
return (0, jsx_runtime_1.jsx)(exports.ArrayVariableView, {
|
|
113
|
+
return (0, jsx_runtime_1.jsx)(exports.ArrayVariableView, { expanded: expanded, value: value });
|
|
114
114
|
}
|
|
115
115
|
const objectKeys = Object.keys(value);
|
|
116
116
|
if (value.operation && value.key && objectKeys.length <= 4) {
|
|
117
|
-
return (0, jsx_runtime_1.jsx)(exports.KvsQueryConditionVariableView, {
|
|
117
|
+
return (0, jsx_runtime_1.jsx)(exports.KvsQueryConditionVariableView, { expanded: expanded, value: value });
|
|
118
118
|
}
|
|
119
119
|
else if (value.operation && value.conditions && objectKeys.length == 2) {
|
|
120
|
-
return (0, jsx_runtime_1.jsx)(exports.KvsLogicalOperatorVariableView, {
|
|
120
|
+
return (0, jsx_runtime_1.jsx)(exports.KvsLogicalOperatorVariableView, { expanded: expanded, value: value });
|
|
121
121
|
}
|
|
122
122
|
else if (objectKeys.length == 0) {
|
|
123
|
-
return (0, jsx_runtime_1.jsx)(exports.EmptyObjectVariableView, {
|
|
123
|
+
return (0, jsx_runtime_1.jsx)(exports.EmptyObjectVariableView, { expanded: expanded, value: value });
|
|
124
124
|
}
|
|
125
125
|
else if (value.base64Data && value.filename) {
|
|
126
|
-
return (0, jsx_runtime_1.jsx)(exports.QpqBinaryDataVariableView, {
|
|
126
|
+
return (0, jsx_runtime_1.jsx)(exports.QpqBinaryDataVariableView, { expanded: expanded, value: value });
|
|
127
127
|
}
|
|
128
128
|
const cleanObject = JSON.parse(JSON.stringify(value));
|
|
129
129
|
const cleanObjectKeys = Object.keys(cleanObject);
|
|
130
|
-
return !expanded ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("span", { children: [key, Array.isArray(cleanObject[key]) && !expanded && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: ":" }), " ", (0, jsx_runtime_1.jsx)(exports.ArrayVariableView, { value: cleanObject[key]
|
|
130
|
+
return !expanded ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("span", { children: [key, Array.isArray(cleanObject[key]) && !expanded && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: ":" }), " ", (0, jsx_runtime_1.jsx)(exports.ArrayVariableView, { expanded: false, value: cleanObject[key] })] })), index < cleanObjectKeys.length - 1 && ', '] }, key))), (0, jsx_runtime_1.jsx)("span", { children: ' }' })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), (0, jsx_runtime_1.jsx)("div", { style: { paddingLeft: 10 }, children: cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("div", { children: [key, ": ", (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { expanded: expanded, value: cleanObject[key] }), ","] }, key))) }), (0, jsx_runtime_1.jsx)("span", { children: '}' })] }));
|
|
131
131
|
};
|
|
132
132
|
exports.ObjectVariableView = ObjectVariableView;
|
|
133
133
|
// Helper function to style values based on their type
|
|
@@ -145,10 +145,10 @@ const AnyVariableView = ({ value, expanded, hideStringQuotes }) => {
|
|
|
145
145
|
return (0, jsx_runtime_1.jsx)("span", { style: exports.genericFunctionRendererStyles.numberValue, children: value });
|
|
146
146
|
}
|
|
147
147
|
else if (typeof value === 'string') {
|
|
148
|
-
return (0, jsx_runtime_1.jsx)(exports.StringVariableView, {
|
|
148
|
+
return (0, jsx_runtime_1.jsx)(exports.StringVariableView, { expanded: expanded, hideStringQuotes: hideStringQuotes, value: value });
|
|
149
149
|
}
|
|
150
150
|
else if (typeof value === 'object') {
|
|
151
|
-
return (0, jsx_runtime_1.jsx)(exports.ObjectVariableView, {
|
|
151
|
+
return (0, jsx_runtime_1.jsx)(exports.ObjectVariableView, { expanded: expanded, value: value });
|
|
152
152
|
}
|
|
153
153
|
// Fallback for other types, using normal text color
|
|
154
154
|
return (0, jsx_runtime_1.jsx)("span", { children: value.toString() });
|
|
@@ -156,7 +156,7 @@ const AnyVariableView = ({ value, expanded, hideStringQuotes }) => {
|
|
|
156
156
|
exports.AnyVariableView = AnyVariableView;
|
|
157
157
|
const renderBasicArg = (arg, value, index, expanded, tooltip) => {
|
|
158
158
|
const tooltipText = `${tooltip || arg}\n\nvalue: ${JSON.stringify(value, null, 2)}`;
|
|
159
|
-
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)("span", { title: tooltipText, children: (0, jsx_runtime_1.jsx)(exports.AnyVariableView, {
|
|
159
|
+
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)("span", { title: tooltipText, children: (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { expanded: expanded, value: value }) }) }, arg));
|
|
160
160
|
};
|
|
161
161
|
const GenericFunctionRenderer = ({ functionName, args, expanded, tooltipMap = [], argRenderer = renderBasicArg, }) => {
|
|
162
162
|
// Convert args object to an array of key-value pairs and map each to a span element with dynamic styling and optional tooltip
|
package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js
CHANGED
|
@@ -7,9 +7,12 @@ exports.getGenericActionRenderer = void 0;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const ActionResultDisplay_1 = __importDefault(require("./ActionResultDisplay"));
|
|
9
9
|
const AnyVariableView_1 = require("./AnyVariableView"); // Assuming this is the correct path
|
|
10
|
-
const getGenericActionRenderer = (functionName, argMap, tooltipMap = argMap) =>
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const getGenericActionRenderer = (functionName, argMap, tooltipMap = argMap) => {
|
|
11
|
+
const GenericActionRenderer = ({ action, expanded, result }) => {
|
|
12
|
+
const anyPayload = action.payload;
|
|
13
|
+
const args = argMap.reduce((acc, arg) => (Object.assign(Object.assign({}, acc), { [arg]: anyPayload[arg] })), {});
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { args: args, expanded: expanded, functionName: functionName, tooltipMap: tooltipMap }) }), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { action: action, expanded: expanded, result: result })] }));
|
|
15
|
+
};
|
|
16
|
+
return GenericActionRenderer;
|
|
14
17
|
};
|
|
15
18
|
exports.getGenericActionRenderer = getGenericActionRenderer;
|
|
@@ -28,6 +28,6 @@ const CostPerService = ({ logs }) => {
|
|
|
28
28
|
}))
|
|
29
29
|
.sort((a, b) => b.cost - a.cost);
|
|
30
30
|
}, [logs]);
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5",
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h5", children: "Cost per Service" }), (0, jsx_runtime_1.jsx)(material_1.TableContainer, { component: material_1.Paper, children: (0, jsx_runtime_1.jsxs)(material_1.Table, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: "Service" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Executions" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Runtime (ms)" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Cost ($)" })] }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: data.map((row) => ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { component: "th", scope: "row", children: row.service }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: row.executions }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: row.runtime }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: row.cost.toFixed(8) })] }, row.service))) })] }) })] }));
|
|
32
32
|
};
|
|
33
33
|
exports.CostPerService = CostPerService;
|
|
@@ -7,6 +7,6 @@ const material_1 = require("@mui/material");
|
|
|
7
7
|
const useErrorsByType_1 = require("../hooks/useErrorsByType");
|
|
8
8
|
const ErrorsByType = ({ logs }) => {
|
|
9
9
|
const data = (0, useErrorsByType_1.useErrorsByType)(logs);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5",
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h5", children: "Errors by Type" }), (0, jsx_runtime_1.jsxs)(recharts_1.BarChart, { data: data, height: 300, width: 1200, children: [(0, jsx_runtime_1.jsx)(recharts_1.CartesianGrid, { strokeDasharray: "3 3" }), (0, jsx_runtime_1.jsx)(recharts_1.XAxis, { dataKey: "errorText" }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, {}), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, {}), (0, jsx_runtime_1.jsx)(recharts_1.Legend, {}), (0, jsx_runtime_1.jsx)(recharts_1.Bar, { dataKey: "count", fill: "#8884d8" })] }), (0, jsx_runtime_1.jsx)(material_1.TableContainer, { component: material_1.Paper, children: (0, jsx_runtime_1.jsxs)(material_1.Table, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: "Error Type" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Count" })] }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: data.map((row) => ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { component: "th", scope: "row", children: row.errorText }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: row.count })] }, row.errorText))) })] }) })] }));
|
|
11
11
|
};
|
|
12
12
|
exports.ErrorsByType = ErrorsByType;
|
|
@@ -7,6 +7,6 @@ const material_1 = require("@mui/material");
|
|
|
7
7
|
const useErrorsOverTime_1 = require("../hooks/useErrorsOverTime");
|
|
8
8
|
const ErrorsOverTime = ({ logs, searchParams }) => {
|
|
9
9
|
const data = (0, useErrorsOverTime_1.useErrorsOverTime)(logs, searchParams);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5",
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h5", children: "Errors Over Time" }), (0, jsx_runtime_1.jsxs)(recharts_1.LineChart, { data: data, height: 300, width: 1200, children: [(0, jsx_runtime_1.jsx)(recharts_1.CartesianGrid, { strokeDasharray: "3 3" }), (0, jsx_runtime_1.jsx)(recharts_1.XAxis, { dataKey: "time" }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, {}), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, {}), (0, jsx_runtime_1.jsx)(recharts_1.Legend, {}), (0, jsx_runtime_1.jsx)(recharts_1.Line, { activeDot: { r: 8 }, dataKey: "errors", stroke: "#8884d8", type: "monotone" })] })] }));
|
|
11
11
|
};
|
|
12
12
|
exports.ErrorsOverTime = ErrorsOverTime;
|
|
@@ -7,8 +7,8 @@ const material_1 = require("@mui/material");
|
|
|
7
7
|
const useRequestsByService_1 = require("../hooks/useRequestsByService");
|
|
8
8
|
const RequestsByService = ({ logs, searchParams }) => {
|
|
9
9
|
const data = (0, useRequestsByService_1.useRequestsByService)(logs, searchParams);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5",
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "h5", children: "Requests by Service" }), (0, jsx_runtime_1.jsxs)(recharts_1.LineChart, { data: data, height: 300, width: 1200, children: [(0, jsx_runtime_1.jsx)(recharts_1.CartesianGrid, { strokeDasharray: "3 3" }), (0, jsx_runtime_1.jsx)(recharts_1.XAxis, { dataKey: "time" }), (0, jsx_runtime_1.jsx)(recharts_1.YAxis, {}), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, {}), (0, jsx_runtime_1.jsx)(recharts_1.Legend, {}), Object.keys(data[0] || {})
|
|
11
11
|
.filter((key) => key !== 'time')
|
|
12
|
-
.map((service) => ((0, jsx_runtime_1.jsx)(recharts_1.Line, {
|
|
12
|
+
.map((service) => ((0, jsx_runtime_1.jsx)(recharts_1.Line, { dataKey: service, stroke: `#${Math.floor(Math.random() * 16777215).toString(16)}`, type: "monotone" }, service)))] })] }));
|
|
13
13
|
};
|
|
14
14
|
exports.RequestsByService = RequestsByService;
|
|
@@ -13,7 +13,7 @@ const useLogManagement = () => {
|
|
|
13
13
|
window.viewLog = (log) => {
|
|
14
14
|
setCorrelation(log.correlation);
|
|
15
15
|
};
|
|
16
|
-
}, [logs]);
|
|
16
|
+
}, [logs, setCorrelation]);
|
|
17
17
|
(0, react_1.useEffect)(() => {
|
|
18
18
|
console.log('logs attached to window, try: viewLog(logs[0])');
|
|
19
19
|
}, []);
|
|
@@ -42,20 +42,23 @@ const useLogTreeData = (correlationId, hideQpqActions = false) => {
|
|
|
42
42
|
}
|
|
43
43
|
setIsLoading(false);
|
|
44
44
|
});
|
|
45
|
+
// Stable identity so the effect below can list it as a dependency while
|
|
46
|
+
// still only re-running when a correlation id appears or disappears.
|
|
47
|
+
const fetchTreeData = (0, quidproquo_web_react_1.useEffectCallback)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
setIsLoading(true);
|
|
49
|
+
console.log('correlationId: ', correlationId);
|
|
50
|
+
const logHierarchy = yield (0, logic_1.getLogHierarchy)(baseUrlResolvers.getApiUrl(), correlationId, false, accessToken);
|
|
51
|
+
if (logHierarchy) {
|
|
52
|
+
setTreeData([logHierarchy]);
|
|
53
|
+
}
|
|
54
|
+
setIsLoading(false);
|
|
55
|
+
}));
|
|
56
|
+
const hasCorrelationId = !!correlationId;
|
|
45
57
|
(0, react_1.useEffect)(() => {
|
|
46
|
-
|
|
47
|
-
setIsLoading(true);
|
|
48
|
-
console.log('correlationId: ', correlationId);
|
|
49
|
-
const logHierarchy = yield (0, logic_1.getLogHierarchy)(baseUrlResolvers.getApiUrl(), correlationId, false, accessToken);
|
|
50
|
-
if (logHierarchy) {
|
|
51
|
-
setTreeData([logHierarchy]);
|
|
52
|
-
}
|
|
53
|
-
setIsLoading(false);
|
|
54
|
-
});
|
|
55
|
-
if (correlationId) {
|
|
58
|
+
if (hasCorrelationId) {
|
|
56
59
|
fetchTreeData();
|
|
57
60
|
}
|
|
58
|
-
}, [
|
|
61
|
+
}, [hasCorrelationId, fetchTreeData]);
|
|
59
62
|
const result = {
|
|
60
63
|
isLoading,
|
|
61
64
|
refreshTreeData: refreshTreeData,
|
|
@@ -17,13 +17,14 @@ const useServiceNames = () => {
|
|
|
17
17
|
const [serviceNames, setServiceNames] = (0, react_1.useState)(['All']);
|
|
18
18
|
const accessToken = (0, quidproquo_web_react_1.useAuthAccessToken)();
|
|
19
19
|
const baseUrlResolvers = (0, quidproquo_web_react_1.useBaseUrlResolvers)();
|
|
20
|
+
// Stable identity so the mount-only effect below can list it as a dependency.
|
|
21
|
+
const fetchData = (0, quidproquo_web_react_1.useEffectCallback)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
+
const updatedServiceNames = yield (0, logic_1.getServiceNames)(baseUrlResolvers.getApiUrl(), accessToken);
|
|
23
|
+
setServiceNames(updatedServiceNames);
|
|
24
|
+
}));
|
|
20
25
|
(0, react_1.useEffect)(() => {
|
|
21
|
-
const fetchData = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
-
const updatedServiceNames = yield (0, logic_1.getServiceNames)(baseUrlResolvers.getApiUrl(), accessToken);
|
|
23
|
-
setServiceNames(updatedServiceNames);
|
|
24
|
-
});
|
|
25
26
|
fetchData();
|
|
26
|
-
}, []);
|
|
27
|
+
}, [fetchData]);
|
|
27
28
|
const serviceOptions = (0, react_1.useMemo)(() => serviceNames.map((s) => ({
|
|
28
29
|
label: s
|
|
29
30
|
.split('-')
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
4
|
+
const coreAiActionComponentMap = {
|
|
5
|
+
[quidproquo_core_1.AiActionType.Prompt]: ['askAiPrompt', 'model', 'prompt', 'messages', 'system', 'aiName'],
|
|
6
|
+
[quidproquo_core_1.AiActionType.PromptStream]: ['askAiPromptStream', 'model', 'prompt', 'messages', 'system', 'aiName'],
|
|
7
|
+
};
|
|
8
|
+
exports.default = coreAiActionComponentMap;
|
package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
4
|
+
const coreClaudeAiActionComponentMap = {
|
|
5
|
+
[quidproquo_core_1.ClaudeAiActionType.MessagesApi]: ['askClaudeAiMessagesApi', 'body', 'apiKey'],
|
|
6
|
+
};
|
|
7
|
+
exports.default = coreClaudeAiActionComponentMap;
|
package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js
CHANGED
|
@@ -8,5 +8,6 @@ const coreConfigActionComponentMap = {
|
|
|
8
8
|
[quidproquo_core_1.ConfigActionType.GetParameters]: ['askConfigGetParameters', 'parameterNames'],
|
|
9
9
|
[quidproquo_core_1.ConfigActionType.GetSecret]: ['askConfigGetSecret', 'secretName'],
|
|
10
10
|
[quidproquo_core_1.ConfigActionType.SetParameter]: ['askConfigSetParameter', 'parameterName', 'parameterValue'],
|
|
11
|
+
[quidproquo_core_1.ConfigActionType.ListParameters]: ['askConfigListParameters'],
|
|
11
12
|
};
|
|
12
13
|
exports.default = coreConfigActionComponentMap;
|
|
@@ -7,5 +7,9 @@ const coreEventActionComponentMap = {
|
|
|
7
7
|
[quidproquo_core_1.EventActionType.AutoRespond]: ['askEventAutoRespond', 'qpqEventRecord', 'matchResult'],
|
|
8
8
|
[quidproquo_core_1.EventActionType.MatchStory]: ['askEventMatchStory', 'qpqEventRecord', 'eventParams'],
|
|
9
9
|
[quidproquo_core_1.EventActionType.GetRecords]: ['askEventGetRecords', 'eventParams'],
|
|
10
|
+
[quidproquo_core_1.EventActionType.TransformEventRecord]: ['askEventTransformEventRecord', 'eventRecord'],
|
|
11
|
+
[quidproquo_core_1.EventActionType.TransformEventRecordResponse]: ['askEventTransformEventRecordResponse', 'eventRecord'],
|
|
12
|
+
[quidproquo_core_1.EventActionType.GetStorySession]: ['askEventGetStorySession', 'eventParams', 'qpqEventRecord', 'matchStoryResult'],
|
|
13
|
+
[quidproquo_core_1.EventActionType.ResolveCaughtError]: ['askEventResolveCaughtError', 'error'],
|
|
10
14
|
};
|
|
11
15
|
exports.default = coreEventActionComponentMap;
|
package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
4
4
|
const coreEventBusActionComponentMap = {
|
|
5
|
-
[quidproquo_core_1.EventBusActionType.SendMessages]: ['askEventBusSendMessages', '
|
|
5
|
+
[quidproquo_core_1.EventBusActionType.SendMessages]: ['askEventBusSendMessages', 'eventBusName', 'eventBusMessages'],
|
|
6
6
|
};
|
|
7
7
|
exports.default = coreEventBusActionComponentMap;
|
|
@@ -10,5 +10,10 @@ const coreFileActionComponentMap = {
|
|
|
10
10
|
[quidproquo_core_1.FileActionType.ReadBinaryContents]: ['askFileReadBinaryContents', 'drive', 'filepath'],
|
|
11
11
|
[quidproquo_core_1.FileActionType.WriteBinaryContents]: ['askFileWriteBinaryContents', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
|
|
12
12
|
[quidproquo_core_1.FileActionType.GenerateTemporarySecureUrl]: ['askFileGenerateTemporarySecureUrl', 'drive', 'filepath', 'expirationMs'],
|
|
13
|
+
[quidproquo_core_1.FileActionType.GenerateTemporaryUploadSecureUrl]: ['askFileGenerateTemporaryUploadSecureUrl', 'drive', 'filepath', 'expirationMs', 'contentType'],
|
|
14
|
+
[quidproquo_core_1.FileActionType.ReadObjectJson]: ['askFileReadObjectJson', 'drive', 'filepath'],
|
|
15
|
+
[quidproquo_core_1.FileActionType.WriteObjectJson]: ['askFileWriteObjectJson', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
|
|
16
|
+
[quidproquo_core_1.FileActionType.IsColdStorage]: ['askFileIsColdStorage', 'drive', 'filepath'],
|
|
17
|
+
[quidproquo_core_1.FileActionType.StreamOpen]: ['askFileStreamOpen', 'drive', 'filepath', 'encoding', 'chunkSize'],
|
|
13
18
|
};
|
|
14
19
|
exports.default = coreFileActionComponentMap;
|
package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
4
|
+
const coreGraphDatabaseActionComponentMap = {
|
|
5
|
+
[quidproquo_core_1.GraphDatabaseActionType.ExecuteOpenCypherQuery]: [
|
|
6
|
+
'askGraphDatabaseExecuteOpenCypherQuery',
|
|
7
|
+
'graphDatabaseName',
|
|
8
|
+
'instance',
|
|
9
|
+
'openCypherQuery',
|
|
10
|
+
'params',
|
|
11
|
+
],
|
|
12
|
+
[quidproquo_core_1.GraphDatabaseActionType.InternalFieldNames]: ['askGraphDatabaseInternalFieldNames'],
|
|
13
|
+
};
|
|
14
|
+
exports.default = coreGraphDatabaseActionComponentMap;
|