quidproquo-web-admin 0.1.7 → 0.1.8
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/Config/Config.js +2 -2
- package/lib/commonjs/Config/Config.js.map +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js.map +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/hooks/useLogLogMananagement/useLogLogMananagement.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/hooks/useLogLogMananagement/useLogLogMananagement.js.map +1 -1
- package/lib/commonjs/LogViewer/Dashboard.js +2 -2
- package/lib/commonjs/LogViewer/Dashboard.js.map +1 -1
- package/lib/commonjs/LogViewer/LogChat/EventDocAiSegments.d.ts +7 -0
- package/lib/commonjs/LogViewer/LogChat/EventDocAiSegments.js +33 -0
- package/lib/commonjs/LogViewer/LogChat/EventDocAiSegments.js.map +1 -0
- package/lib/commonjs/LogViewer/LogChat/LogChat.d.ts +7 -0
- package/lib/commonjs/LogViewer/LogChat/LogChat.js +63 -0
- package/lib/commonjs/LogViewer/LogChat/LogChat.js.map +1 -0
- package/lib/commonjs/LogViewer/LogChat/eventDocAiLogChatRuntime.d.ts +6 -0
- package/lib/commonjs/LogViewer/LogChat/eventDocAiLogChatRuntime.js +9 -0
- package/lib/commonjs/LogViewer/LogChat/eventDocAiLogChatRuntime.js.map +1 -0
- package/lib/commonjs/LogViewer/LogChat/index.d.ts +1 -0
- package/lib/commonjs/LogViewer/{HelpChat → LogChat}/index.js +1 -1
- package/lib/commonjs/LogViewer/LogChat/index.js.map +1 -0
- package/lib/commonjs/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.d.ts +2 -0
- package/lib/commonjs/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.js +17 -0
- package/lib/commonjs/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.js.map +1 -0
- package/lib/commonjs/LogViewer/LogDialog/LogDialog.js.map +1 -1
- package/lib/commonjs/LogViewer/LogDialog/tabs/HelpTab/HelpTab.js +4 -2
- package/lib/commonjs/LogViewer/LogDialog/tabs/HelpTab/HelpTab.js.map +1 -1
- package/lib/commonjs/LogViewer/LogDialog/tabs/TraceTab/TraceTab.js +2 -2
- package/lib/commonjs/LogViewer/LogDialog/tabs/TraceTab/TraceTab.js.map +1 -1
- package/lib/commonjs/LogViewer/LogMetadataGrid.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogMetadataGrid.js.map +1 -1
- package/lib/commonjs/LogViewer/LogSummary.js +4 -4
- package/lib/commonjs/LogViewer/LogSummary.js.map +1 -1
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +2 -2
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js.map +1 -1
- package/lib/commonjs/adminApp/VolatileState.d.ts +2 -8
- package/lib/commonjs/adminApp/VolatileState.js +1 -1
- package/lib/commonjs/adminApp/VolatileState.js.map +1 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.d.ts +1 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.js.map +1 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.d.ts +1 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.js +2 -2
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.js.map +1 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/index.d.ts +0 -3
- package/lib/commonjs/adminApp/actionCreators/volatile/index.js +0 -3
- package/lib/commonjs/adminApp/actionCreators/volatile/index.js.map +1 -1
- package/lib/commonjs/adminApp/adminAppRuntime.d.ts +0 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileEffect.d.ts +0 -3
- package/lib/commonjs/adminApp/effects/volatile/VolatileEffect.js +0 -3
- package/lib/commonjs/adminApp/effects/volatile/VolatileEffect.js.map +1 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileEffects.d.ts +1 -4
- package/lib/commonjs/adminApp/effects/volatile/VolatileEffects.js.map +1 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.d.ts +1 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.js.map +1 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.d.ts +1 -0
- package/lib/commonjs/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.js.map +1 -1
- package/lib/commonjs/adminApp/effects/volatile/index.d.ts +0 -3
- package/lib/commonjs/adminApp/effects/volatile/index.js +0 -3
- package/lib/commonjs/adminApp/effects/volatile/index.js.map +1 -1
- package/lib/commonjs/adminApp/hooks/useAdminApp.d.ts +0 -1
- package/lib/commonjs/adminApp/logic/chat/askSendChatMessage.js +3 -17
- package/lib/commonjs/adminApp/logic/chat/askSendChatMessage.js.map +1 -1
- package/lib/commonjs/adminApp/logic/chat/index.d.ts +0 -1
- package/lib/commonjs/adminApp/logic/chat/index.js +0 -1
- package/lib/commonjs/adminApp/logic/chat/index.js.map +1 -1
- package/lib/commonjs/adminApp/logic/config/askLoadServiceNames.js +1 -1
- package/lib/commonjs/adminApp/logic/config/askLoadServiceNames.js.map +1 -1
- package/lib/commonjs/adminApp/logic/search/askRunLogLogSearch.js.map +1 -1
- package/lib/commonjs/adminApp/sharedAdminAppApi.d.ts +0 -2
- package/lib/commonjs/adminApp/sharedAdminAppApi.js +0 -2
- package/lib/commonjs/adminApp/sharedAdminAppApi.js.map +1 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/index.d.ts +0 -3
- package/lib/commonjs/adminApp/stateUpdaters/volatile/index.js +0 -3
- package/lib/commonjs/adminApp/stateUpdaters/volatile/index.js.map +1 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/logLogSearchPartLoaded.js.map +1 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/serviceNamesLoaded.js +1 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/serviceNamesLoaded.js.map +1 -1
- package/lib/commonjs/adminApp/volatileReducer.js +0 -6
- package/lib/commonjs/adminApp/volatileReducer.js.map +1 -1
- package/lib/commonjs/types/index.d.ts +0 -3
- package/lib/commonjs/types/index.js +0 -3
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/esm/Config/Config.js +1 -1
- package/lib/esm/Config/Config.js.map +1 -1
- package/lib/esm/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js.map +1 -1
- package/lib/esm/LogViewer/AdminLogs/hooks/useLogLogMananagement/useLogLogMananagement.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/hooks/useLogLogMananagement/useLogLogMananagement.js.map +1 -1
- package/lib/esm/LogViewer/Dashboard.js +1 -1
- package/lib/esm/LogViewer/Dashboard.js.map +1 -1
- package/lib/esm/LogViewer/LogChat/EventDocAiSegments.d.ts +7 -0
- package/lib/esm/LogViewer/LogChat/EventDocAiSegments.js +26 -0
- package/lib/esm/LogViewer/LogChat/EventDocAiSegments.js.map +1 -0
- package/lib/esm/LogViewer/LogChat/LogChat.d.ts +7 -0
- package/lib/esm/LogViewer/LogChat/LogChat.js +59 -0
- package/lib/esm/LogViewer/LogChat/LogChat.js.map +1 -0
- package/lib/esm/LogViewer/LogChat/eventDocAiLogChatRuntime.d.ts +6 -0
- package/lib/esm/LogViewer/LogChat/eventDocAiLogChatRuntime.js +6 -0
- package/lib/esm/LogViewer/LogChat/eventDocAiLogChatRuntime.js.map +1 -0
- package/lib/esm/LogViewer/LogChat/index.d.ts +1 -0
- package/lib/esm/LogViewer/LogChat/index.js +2 -0
- package/lib/esm/LogViewer/LogChat/index.js.map +1 -0
- package/lib/esm/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.d.ts +2 -0
- package/lib/esm/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.js +14 -0
- package/lib/esm/LogViewer/LogChat/logic/askEventDocAiLogChatBoot.js.map +1 -0
- package/lib/esm/LogViewer/LogDialog/LogDialog.js.map +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/HelpTab/HelpTab.js +4 -2
- package/lib/esm/LogViewer/LogDialog/tabs/HelpTab/HelpTab.js.map +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/TraceTab/TraceTab.js +1 -1
- package/lib/esm/LogViewer/LogDialog/tabs/TraceTab/TraceTab.js.map +1 -1
- package/lib/esm/LogViewer/LogMetadataGrid.d.ts +1 -1
- package/lib/esm/LogViewer/LogMetadataGrid.js.map +1 -1
- package/lib/esm/LogViewer/LogSummary.js +1 -1
- package/lib/esm/LogViewer/LogSummary.js.map +1 -1
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +1 -1
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js.map +1 -1
- package/lib/esm/adminApp/VolatileState.d.ts +2 -8
- package/lib/esm/adminApp/VolatileState.js +1 -1
- package/lib/esm/adminApp/VolatileState.js.map +1 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.d.ts +1 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.js.map +1 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.d.ts +1 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.js +2 -2
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.js.map +1 -1
- package/lib/esm/adminApp/actionCreators/volatile/index.d.ts +0 -3
- package/lib/esm/adminApp/actionCreators/volatile/index.js +0 -3
- package/lib/esm/adminApp/actionCreators/volatile/index.js.map +1 -1
- package/lib/esm/adminApp/adminAppRuntime.d.ts +0 -1
- package/lib/esm/adminApp/effects/volatile/VolatileEffect.d.ts +0 -3
- package/lib/esm/adminApp/effects/volatile/VolatileEffect.js +0 -3
- package/lib/esm/adminApp/effects/volatile/VolatileEffect.js.map +1 -1
- package/lib/esm/adminApp/effects/volatile/VolatileEffects.d.ts +1 -4
- package/lib/esm/adminApp/effects/volatile/VolatileEffects.js.map +1 -1
- package/lib/esm/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.d.ts +1 -1
- package/lib/esm/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.js.map +1 -1
- package/lib/esm/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.d.ts +1 -0
- package/lib/esm/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.js.map +1 -1
- package/lib/esm/adminApp/effects/volatile/index.d.ts +0 -3
- package/lib/esm/adminApp/effects/volatile/index.js +0 -3
- package/lib/esm/adminApp/effects/volatile/index.js.map +1 -1
- package/lib/esm/adminApp/hooks/useAdminApp.d.ts +0 -1
- package/lib/esm/adminApp/logic/chat/askSendChatMessage.js +3 -17
- package/lib/esm/adminApp/logic/chat/askSendChatMessage.js.map +1 -1
- package/lib/esm/adminApp/logic/chat/index.d.ts +0 -1
- package/lib/esm/adminApp/logic/chat/index.js +0 -1
- package/lib/esm/adminApp/logic/chat/index.js.map +1 -1
- package/lib/esm/adminApp/logic/config/askLoadServiceNames.js +1 -1
- package/lib/esm/adminApp/logic/config/askLoadServiceNames.js.map +1 -1
- package/lib/esm/adminApp/logic/search/askRunLogLogSearch.js.map +1 -1
- package/lib/esm/adminApp/sharedAdminAppApi.d.ts +0 -2
- package/lib/esm/adminApp/sharedAdminAppApi.js +0 -2
- package/lib/esm/adminApp/sharedAdminAppApi.js.map +1 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/index.d.ts +0 -3
- package/lib/esm/adminApp/stateUpdaters/volatile/index.js +0 -3
- package/lib/esm/adminApp/stateUpdaters/volatile/index.js.map +1 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/logLogSearchPartLoaded.js.map +1 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/serviceNamesLoaded.js +1 -0
- package/lib/esm/adminApp/stateUpdaters/volatile/serviceNamesLoaded.js.map +1 -1
- package/lib/esm/adminApp/volatileReducer.js +0 -6
- package/lib/esm/adminApp/volatileReducer.js.map +1 -1
- package/lib/esm/types/index.d.ts +0 -3
- package/lib/esm/types/index.js +0 -3
- package/lib/esm/types/index.js.map +1 -1
- package/package.json +7 -7
- package/lib/commonjs/LogViewer/HelpChat/HelpChat.d.ts +0 -6
- package/lib/commonjs/LogViewer/HelpChat/HelpChat.js +0 -75
- package/lib/commonjs/LogViewer/HelpChat/HelpChat.js.map +0 -1
- package/lib/commonjs/LogViewer/HelpChat/index.d.ts +0 -1
- package/lib/commonjs/LogViewer/HelpChat/index.js.map +0 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.d.ts +0 -3
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.js +0 -9
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.js.map +0 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.d.ts +0 -3
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.js +0 -9
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.js.map +0 -1
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.d.ts +0 -2
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.js +0 -9
- package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.js.map +0 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.d.ts +0 -8
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.js +0 -3
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.js.map +0 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.d.ts +0 -9
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.js +0 -3
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.js.map +0 -1
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.d.ts +0 -7
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.js +0 -3
- package/lib/commonjs/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.js.map +0 -1
- package/lib/commonjs/adminApp/logic/chat/askLoadChatMessages.d.ts +0 -2
- package/lib/commonjs/adminApp/logic/chat/askLoadChatMessages.js +0 -16
- package/lib/commonjs/adminApp/logic/chat/askLoadChatMessages.js.map +0 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessageAppended.d.ts +0 -3
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessageAppended.js +0 -10
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessageAppended.js.map +0 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessagesLoaded.d.ts +0 -3
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessagesLoaded.js +0 -14
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatMessagesLoaded.js.map +0 -1
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.d.ts +0 -3
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.js +0 -10
- package/lib/commonjs/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.js.map +0 -1
- package/lib/commonjs/types/ListLogChatMessages.d.ts +0 -4
- package/lib/commonjs/types/ListLogChatMessages.js +0 -3
- package/lib/commonjs/types/ListLogChatMessages.js.map +0 -1
- package/lib/commonjs/types/LogChatMessage.d.ts +0 -5
- package/lib/commonjs/types/LogChatMessage.js +0 -3
- package/lib/commonjs/types/LogChatMessage.js.map +0 -1
- package/lib/commonjs/types/SendLogChatMessage.d.ts +0 -4
- package/lib/commonjs/types/SendLogChatMessage.js +0 -3
- package/lib/commonjs/types/SendLogChatMessage.js.map +0 -1
- package/lib/esm/LogViewer/HelpChat/HelpChat.d.ts +0 -6
- package/lib/esm/LogViewer/HelpChat/HelpChat.js +0 -67
- package/lib/esm/LogViewer/HelpChat/HelpChat.js.map +0 -1
- package/lib/esm/LogViewer/HelpChat/index.d.ts +0 -1
- package/lib/esm/LogViewer/HelpChat/index.js +0 -2
- package/lib/esm/LogViewer/HelpChat/index.js.map +0 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.d.ts +0 -3
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.js +0 -6
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessageAppended.js.map +0 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.d.ts +0 -3
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.js +0 -6
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatMessagesLoaded.js.map +0 -1
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.d.ts +0 -2
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.js +0 -6
- package/lib/esm/adminApp/actionCreators/volatile/askUIVolatileChatPendingReplyChanged.js.map +0 -1
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.d.ts +0 -8
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.js +0 -2
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessageAppendedEffect.js.map +0 -1
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.d.ts +0 -9
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.js +0 -2
- package/lib/esm/adminApp/effects/volatile/VolatileChatMessagesLoadedEffect.js.map +0 -1
- package/lib/esm/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.d.ts +0 -7
- package/lib/esm/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.js +0 -2
- package/lib/esm/adminApp/effects/volatile/VolatileChatPendingReplyChangedEffect.js.map +0 -1
- package/lib/esm/adminApp/logic/chat/askLoadChatMessages.d.ts +0 -2
- package/lib/esm/adminApp/logic/chat/askLoadChatMessages.js +0 -13
- package/lib/esm/adminApp/logic/chat/askLoadChatMessages.js.map +0 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessageAppended.d.ts +0 -3
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessageAppended.js +0 -14
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessageAppended.js.map +0 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessagesLoaded.d.ts +0 -3
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessagesLoaded.js +0 -13
- package/lib/esm/adminApp/stateUpdaters/volatile/chatMessagesLoaded.js.map +0 -1
- package/lib/esm/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.d.ts +0 -3
- package/lib/esm/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.js +0 -14
- package/lib/esm/adminApp/stateUpdaters/volatile/chatPendingReplyChanged.js.map +0 -1
- package/lib/esm/types/ListLogChatMessages.d.ts +0 -4
- package/lib/esm/types/ListLogChatMessages.js +0 -2
- package/lib/esm/types/ListLogChatMessages.js.map +0 -1
- package/lib/esm/types/LogChatMessage.d.ts +0 -5
- package/lib/esm/types/LogChatMessage.js +0 -2
- package/lib/esm/types/LogChatMessage.js.map +0 -1
- package/lib/esm/types/SendLogChatMessage.d.ts +0 -4
- package/lib/esm/types/SendLogChatMessage.js +0 -2
- package/lib/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iB,EACpC,yBAAyB,EAAE,oBAAoB,EAC/C,KAAK,EAAE,KAAK,GACZ,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AApMW,QAAA,QAAQ,YAoMnB","sourcesContent":["import { QpqExecutionTrace, QpqRuntimeType } from 'quidproquo-core';\nimport { useAuthAccessToken, useBaseUrlResolvers, useSubscribeToWebSocketEvent } from 'quidproquo-web-react';\nimport { WebSocketQueueQpqAdminServerEventMessageTraceDone, WebSocketQueueQpqAdminServerMessageEventType } from 'quidproquo-webserver';\n\nimport React, { useEffect, useRef, useState } from 'react';\nimport TroubleshootIcon from '@mui/icons-material/Troubleshoot';\nimport { Alert, Box, Button, Checkbox, FormControlLabel, LinearProgress, Tooltip, Typography } from '@mui/material';\n\nimport { getLogTrace } from '../../../logic';\nimport { TraceViewer } from '../../../TraceViewer';\nimport { AsyncStoryState } from '../../hooks';\nimport { MovedToColdStorage } from '../../MovedToColdStorage';\n\ninterface TraceTabProps {\n log: AsyncStoryState;\n isVisible: boolean;\n}\n\n// Backstop for a missed TraceDone websocket message (reconnect gaps, dev servers\n// without the admin socket). checkOnly polls never trigger trace runs.\nconst PENDING_POLL_MS = 15_000;\n\n// Async trace flow: the first open only checks for a stored trace — found ones load\n// immediately, otherwise an explainer with a Begin Trace button is shown. Beginning a\n// trace kicks off a fire-and-forget run in the owning service and this tab waits for\n// its TraceDone websocket push (with a slow checkOnly poll as a fallback). See\n// trace-replay-plan.md.\nexport const TraceTab: React.FC<TraceTabProps> = ({ log, isVisible }) => {\n const urlResolvers = useBaseUrlResolvers();\n const accessToken = useAuthAccessToken();\n\n const [trace, setTrace] = useState<QpqExecutionTrace | undefined>(undefined);\n const [isWaiting, setIsWaiting] = useState(false);\n const [traceError, setTraceError] = useState<string | undefined>(undefined);\n const [hasRequested, setHasRequested] = useState(false);\n const [hasCheckedForStoredTrace, setHasCheckedForStoredTrace] = useState(false);\n\n // \"My code only\" — held here so Begin Trace / Re-run Trace can send it: a trace with\n // it on sets no breakpoints outside the user's own code. Every step pause freezes the\n // replay for several inspector round trips, so full traces of real bundles burn the\n // whole wall-clock budget on framework glue — own-code-only is the sane default.\n const [hideExternalSteps, setHideExternalSteps] = useState(true);\n\n // The request a stale async response must not clobber (rapid re-runs, dialog reuse)\n const requestVersionRef = useRef(0);\n\n const requestTrace = async (options: { refresh?: boolean; checkOnly?: boolean; onlyOwnCode?: boolean }) => {\n const requestVersion = ++requestVersionRef.current;\n if (!options.checkOnly) {\n setIsWaiting(true);\n setTraceError(undefined);\n }\n\n try {\n const result = await getLogTrace(urlResolvers.getApiUrl(), log.logCorrelation, options, accessToken);\n if (requestVersion !== requestVersionRef.current) {\n return;\n }\n\n if (result.trace) {\n setTrace(result.trace);\n setIsWaiting(false);\n } else if (result.pending && !options.checkOnly) {\n // check=true reports pending whenever no trace is stored — the server can't\n // tell idle from in-flight — so only a real trace request may start waiting\n setIsWaiting(true);\n } else if (!options.checkOnly) {\n setTraceError('No trace was produced for this log');\n setIsWaiting(false);\n }\n } catch (error) {\n if (requestVersion !== requestVersionRef.current) {\n return;\n }\n setTraceError(error instanceof Error ? error.message : String(error));\n setIsWaiting(false);\n }\n };\n\n useEffect(() => {\n if (isVisible && !hasRequested && !log.isLoading && !log.isLogInColdStorage) {\n setHasRequested(true);\n // First open never starts a trace — it only loads a stored one; starting one is\n // the explicit Begin Trace action below\n requestTrace({ checkOnly: true }).finally(() => setHasCheckedForStoredTrace(true));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isVisible, hasRequested, log.isLoading, log.isLogInColdStorage]);\n\n // The owning service finished tracing — the log service pushed the result\n useSubscribeToWebSocketEvent(\n WebSocketQueueQpqAdminServerMessageEventType.TraceDone,\n (webSocketService, message: WebSocketQueueQpqAdminServerEventMessageTraceDone) => {\n if (message.payload.correlation !== log.logCorrelation || !isWaiting) {\n return;\n }\n\n if (message.payload.succeeded) {\n requestTrace({ checkOnly: true });\n } else {\n setTraceError(message.payload.errorText || 'Trace failed');\n setIsWaiting(false);\n }\n },\n );\n\n // Poll fallback while waiting — checkOnly, so it can never stack trace runs\n useEffect(() => {\n if (!isWaiting) {\n return;\n }\n const pollTimer = setInterval(() => requestTrace({ checkOnly: true }), PENDING_POLL_MS);\n return () => clearInterval(pollTimer);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isWaiting]);\n\n if (log.isLoading) {\n return <div>Loading...</div>;\n }\n\n if (log.isLogInColdStorage) {\n return <MovedToColdStorage guid={log.logCorrelation} />;\n }\n\n if (isWaiting) {\n return (\n <Box sx={{ p: 2 }}>\n <Typography sx={{ mb: 1 }} variant=\"body2\">\n Tracing in {log.log?.moduleName ? `the ${log.log.moduleName} service` : 'the owning service'} — replaying the log and recording every\n statement. This can take a minute; the result appears here when it lands.\n </Typography>\n <LinearProgress />\n </Box>\n );\n }\n\n if (traceError) {\n return (\n <Box sx={{ p: 2 }}>\n <Alert\n action={\n <Button color=\"inherit\" onClick={() => requestTrace({ refresh: true, onlyOwnCode: hideExternalSteps })} size=\"small\">\n Retry\n </Button>\n }\n severity=\"error\"\n >\n {traceError}\n </Alert>\n </Box>\n );\n }\n\n if (!trace) {\n if (!hasCheckedForStoredTrace) {\n return null;\n }\n\n // No stored trace — explain what tracing is and let the user start one explicitly.\n // Begin Trace deliberately leaves refresh false so a trace that landed since the\n // check is served straight from storage instead of re-running.\n const isTraceable = log.log?.runtimeType === QpqRuntimeType.EXECUTE_STORY;\n\n return (\n <Box sx={{ alignItems: 'center', display: 'flex', height: '100%', justifyContent: 'center', p: 3 }}>\n <Box sx={{ maxWidth: 560, textAlign: 'center' }}>\n <TroubleshootIcon color=\"primary\" sx={{ fontSize: 56, mb: 1 }} />\n <Typography gutterBottom variant=\"h6\">\n Step-through execution trace\n </Typography>\n <Typography color=\"text.secondary\" sx={{ mb: 3 }} variant=\"body2\">\n A trace replays this log inside the service that ran it, recording every statement it executes and the local variables at each step — then\n you can scrub through the run line by line, like a time-travel debugger for exactly what happened.\n </Typography>\n {!isTraceable && (\n <Alert severity=\"warning\" sx={{ mb: 3, textAlign: 'left' }}>\n Only {QpqRuntimeType.EXECUTE_STORY} logs can be traced — this is a {log.log?.runtimeType || 'different'} log. Use the Tree tab to walk\n down to the {QpqRuntimeType.EXECUTE_STORY} runs it triggered and trace those instead.\n </Alert>\n )}\n {isTraceable && (\n <Box sx={{ mb: 1 }}>\n <FormControlLabel\n control={<Checkbox checked={hideExternalSteps} onChange={(event) => setHideExternalSteps(event.target.checked)} size=\"small\" />}\n label={\n <Typography variant=\"body2\">\n My code only — trace just this service's own source (much faster; framework internals get no steps)\n </Typography>\n }\n />\n </Box>\n )}\n <Button disabled={!isTraceable} onClick={() => requestTrace({ onlyOwnCode: hideExternalSteps })} variant=\"contained\">\n Begin Trace\n </Button>\n {isTraceable && (\n <Typography color=\"text.secondary\" display=\"block\" sx={{ mt: 1.5 }} variant=\"caption\">\n Runs in {log.log?.moduleName ? `the ${log.log.moduleName} service` : 'the owning service'} and can take a minute.\n </Typography>\n )}\n </Box>\n </Box>\n );\n }\n\n return (\n <Box sx={{ height: '100%' }}>\n <TraceViewer\n actions={\n <Tooltip\n title={hideExternalSteps ? 'Re-traces with breakpoints only in your own code — the whole step budget goes to your statements' : ''}\n >\n <Button onClick={() => requestTrace({ refresh: true, onlyOwnCode: hideExternalSteps })} size=\"small\" sx={{ flexShrink: 0 }}>\n Re-run Trace{hideExternalSteps ? ' (my code only)' : ''}\n </Button>\n </Tooltip>\n }\n hideExternalSteps={hideExternalSteps}\n onHideExternalStepsChange={setHideExternalSteps}\n trace={trace}\n />\n </Box>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"TraceTab.js","sourceRoot":"","sources":["../../../../../../src/LogViewer/LogDialog/tabs/TraceTab/TraceTab.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAoE;AACpE,6DAAsI;AACtI,+DAA6G;AAE7G,iCAA2D;AAC3D,oFAAgE;AAChE,4CAAoH;AAEpH,0CAA6C;AAC7C,sDAAmD;AA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AAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC,EAAE,OAAO,EAAC,WAAW,4BAE3G,EACR,WAAW,IAAI,CACd,wBAAC,qBAAU,IAAC,KAAK,EAAC,gBAAgB,EAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,OAAO,EAAC,SAAS,yBAC1E,CAAA,MAAA,GAAG,CAAC,GAAG,0CAAE,UAAU,EAAC,CAAC,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,oBAAoB,+BAC9E,CACd,IACG,GACF,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,uBAAC,cAAG,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YACzB,uBAAC,yBAAW,IACV,OAAO,EACL,uBAAC,kBAAO,IACN,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,kGAAkG,CAAC,CAAC,CAAC,EAAE,YAElI,wBAAC,iBAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,6BAC3G,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,IAChD,GACD,EAEZ,iBAAiB,EAAE,iBAAiB,EACpC,yBAAyB,EAAE,oBAAoB,EAC/C,KAAK,EAAE,KAAK,GACZ,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AApMW,QAAA,QAAQ,YAoMnB","sourcesContent":["import { QpqExecutionTrace, QpqRuntimeType } from 'quidproquo-core';\nimport { WebSocketQueueQpqAdminServerEventMessageTraceDone, WebSocketQueueQpqAdminServerMessageEventType } from 'quidproquo-features';\nimport { useAuthAccessToken, useBaseUrlResolvers, useSubscribeToWebSocketEvent } from 'quidproquo-web-react';\n\nimport React, { useEffect, useRef, useState } from 'react';\nimport TroubleshootIcon from '@mui/icons-material/Troubleshoot';\nimport { Alert, Box, Button, Checkbox, FormControlLabel, LinearProgress, Tooltip, Typography } from '@mui/material';\n\nimport { getLogTrace } from '../../../logic';\nimport { TraceViewer } from '../../../TraceViewer';\nimport { AsyncStoryState } from '../../hooks';\nimport { MovedToColdStorage } from '../../MovedToColdStorage';\n\ninterface TraceTabProps {\n log: AsyncStoryState;\n isVisible: boolean;\n}\n\n// Backstop for a missed TraceDone websocket message (reconnect gaps, dev servers\n// without the admin socket). checkOnly polls never trigger trace runs.\nconst PENDING_POLL_MS = 15_000;\n\n// Async trace flow: the first open only checks for a stored trace — found ones load\n// immediately, otherwise an explainer with a Begin Trace button is shown. Beginning a\n// trace kicks off a fire-and-forget run in the owning service and this tab waits for\n// its TraceDone websocket push (with a slow checkOnly poll as a fallback). See\n// trace-replay-plan.md.\nexport const TraceTab: React.FC<TraceTabProps> = ({ log, isVisible }) => {\n const urlResolvers = useBaseUrlResolvers();\n const accessToken = useAuthAccessToken();\n\n const [trace, setTrace] = useState<QpqExecutionTrace | undefined>(undefined);\n const [isWaiting, setIsWaiting] = useState(false);\n const [traceError, setTraceError] = useState<string | undefined>(undefined);\n const [hasRequested, setHasRequested] = useState(false);\n const [hasCheckedForStoredTrace, setHasCheckedForStoredTrace] = useState(false);\n\n // \"My code only\" — held here so Begin Trace / Re-run Trace can send it: a trace with\n // it on sets no breakpoints outside the user's own code. Every step pause freezes the\n // replay for several inspector round trips, so full traces of real bundles burn the\n // whole wall-clock budget on framework glue — own-code-only is the sane default.\n const [hideExternalSteps, setHideExternalSteps] = useState(true);\n\n // The request a stale async response must not clobber (rapid re-runs, dialog reuse)\n const requestVersionRef = useRef(0);\n\n const requestTrace = async (options: { refresh?: boolean; checkOnly?: boolean; onlyOwnCode?: boolean }) => {\n const requestVersion = ++requestVersionRef.current;\n if (!options.checkOnly) {\n setIsWaiting(true);\n setTraceError(undefined);\n }\n\n try {\n const result = await getLogTrace(urlResolvers.getApiUrl(), log.logCorrelation, options, accessToken);\n if (requestVersion !== requestVersionRef.current) {\n return;\n }\n\n if (result.trace) {\n setTrace(result.trace);\n setIsWaiting(false);\n } else if (result.pending && !options.checkOnly) {\n // check=true reports pending whenever no trace is stored — the server can't\n // tell idle from in-flight — so only a real trace request may start waiting\n setIsWaiting(true);\n } else if (!options.checkOnly) {\n setTraceError('No trace was produced for this log');\n setIsWaiting(false);\n }\n } catch (error) {\n if (requestVersion !== requestVersionRef.current) {\n return;\n }\n setTraceError(error instanceof Error ? error.message : String(error));\n setIsWaiting(false);\n }\n };\n\n useEffect(() => {\n if (isVisible && !hasRequested && !log.isLoading && !log.isLogInColdStorage) {\n setHasRequested(true);\n // First open never starts a trace — it only loads a stored one; starting one is\n // the explicit Begin Trace action below\n requestTrace({ checkOnly: true }).finally(() => setHasCheckedForStoredTrace(true));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isVisible, hasRequested, log.isLoading, log.isLogInColdStorage]);\n\n // The owning service finished tracing — the log service pushed the result\n useSubscribeToWebSocketEvent(\n WebSocketQueueQpqAdminServerMessageEventType.TraceDone,\n (webSocketService, message: WebSocketQueueQpqAdminServerEventMessageTraceDone) => {\n if (message.payload.correlation !== log.logCorrelation || !isWaiting) {\n return;\n }\n\n if (message.payload.succeeded) {\n requestTrace({ checkOnly: true });\n } else {\n setTraceError(message.payload.errorText || 'Trace failed');\n setIsWaiting(false);\n }\n },\n );\n\n // Poll fallback while waiting — checkOnly, so it can never stack trace runs\n useEffect(() => {\n if (!isWaiting) {\n return;\n }\n const pollTimer = setInterval(() => requestTrace({ checkOnly: true }), PENDING_POLL_MS);\n return () => clearInterval(pollTimer);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isWaiting]);\n\n if (log.isLoading) {\n return <div>Loading...</div>;\n }\n\n if (log.isLogInColdStorage) {\n return <MovedToColdStorage guid={log.logCorrelation} />;\n }\n\n if (isWaiting) {\n return (\n <Box sx={{ p: 2 }}>\n <Typography sx={{ mb: 1 }} variant=\"body2\">\n Tracing in {log.log?.moduleName ? `the ${log.log.moduleName} service` : 'the owning service'} — replaying the log and recording every\n statement. This can take a minute; the result appears here when it lands.\n </Typography>\n <LinearProgress />\n </Box>\n );\n }\n\n if (traceError) {\n return (\n <Box sx={{ p: 2 }}>\n <Alert\n action={\n <Button color=\"inherit\" onClick={() => requestTrace({ refresh: true, onlyOwnCode: hideExternalSteps })} size=\"small\">\n Retry\n </Button>\n }\n severity=\"error\"\n >\n {traceError}\n </Alert>\n </Box>\n );\n }\n\n if (!trace) {\n if (!hasCheckedForStoredTrace) {\n return null;\n }\n\n // No stored trace — explain what tracing is and let the user start one explicitly.\n // Begin Trace deliberately leaves refresh false so a trace that landed since the\n // check is served straight from storage instead of re-running.\n const isTraceable = log.log?.runtimeType === QpqRuntimeType.EXECUTE_STORY;\n\n return (\n <Box sx={{ alignItems: 'center', display: 'flex', height: '100%', justifyContent: 'center', p: 3 }}>\n <Box sx={{ maxWidth: 560, textAlign: 'center' }}>\n <TroubleshootIcon color=\"primary\" sx={{ fontSize: 56, mb: 1 }} />\n <Typography gutterBottom variant=\"h6\">\n Step-through execution trace\n </Typography>\n <Typography color=\"text.secondary\" sx={{ mb: 3 }} variant=\"body2\">\n A trace replays this log inside the service that ran it, recording every statement it executes and the local variables at each step — then\n you can scrub through the run line by line, like a time-travel debugger for exactly what happened.\n </Typography>\n {!isTraceable && (\n <Alert severity=\"warning\" sx={{ mb: 3, textAlign: 'left' }}>\n Only {QpqRuntimeType.EXECUTE_STORY} logs can be traced — this is a {log.log?.runtimeType || 'different'} log. Use the Tree tab to walk\n down to the {QpqRuntimeType.EXECUTE_STORY} runs it triggered and trace those instead.\n </Alert>\n )}\n {isTraceable && (\n <Box sx={{ mb: 1 }}>\n <FormControlLabel\n control={<Checkbox checked={hideExternalSteps} onChange={(event) => setHideExternalSteps(event.target.checked)} size=\"small\" />}\n label={\n <Typography variant=\"body2\">\n My code only — trace just this service's own source (much faster; framework internals get no steps)\n </Typography>\n }\n />\n </Box>\n )}\n <Button disabled={!isTraceable} onClick={() => requestTrace({ onlyOwnCode: hideExternalSteps })} variant=\"contained\">\n Begin Trace\n </Button>\n {isTraceable && (\n <Typography color=\"text.secondary\" display=\"block\" sx={{ mt: 1.5 }} variant=\"caption\">\n Runs in {log.log?.moduleName ? `the ${log.log.moduleName} service` : 'the owning service'} and can take a minute.\n </Typography>\n )}\n </Box>\n </Box>\n );\n }\n\n return (\n <Box sx={{ height: '100%' }}>\n <TraceViewer\n actions={\n <Tooltip\n title={hideExternalSteps ? 'Re-traces with breakpoints only in your own code — the whole step budget goes to your statements' : ''}\n >\n <Button onClick={() => requestTrace({ refresh: true, onlyOwnCode: hideExternalSteps })} size=\"small\" sx={{ flexShrink: 0 }}>\n Re-run Trace{hideExternalSteps ? ' (my code only)' : ''}\n </Button>\n </Tooltip>\n }\n hideExternalSteps={hideExternalSteps}\n onHideExternalStepsChange={setHideExternalSteps}\n trace={trace}\n />\n </Box>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogMetadataGrid.js","sourceRoot":"","sources":["../../../src/LogViewer/LogMetadataGrid.tsx"],"names":[],"mappings":";;;;;;;AAEA,kFAA0D;AAC1D,kDAAsG;AAEtG,0CAAqI;AACrI,4FAAyF;AACzF,8DAA2D;AAC3D,2CAAwC;AAExC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,EAAE;IAChC,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,GAAG,EAAE,IAAI,CAAC;IAChC,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,GAAG,GAAG,EAAE;QAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;IACrB,IAAI,GAAG,GAAG,EAAE;Q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AK,EAAE,cAAc,EAAE,OAAO,EAAC,aAAa,GAAG;iBACtF,EACD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,SAAS,EAClB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iCAAM,GAAG,KAAE,EAAE,EAAE,GAAG,CAAC,WAAW,IAAG,CAAC,GAC1D,EACF,uBAAC,qBAAS,IACR,WAAW,EAAE,2BAA2B,EACxC,cAAc,EAAE,sBAAsB,EACtC,IAAI,EAAE,CAAC,CAAC,sBAAsB,EAC9B,yBAAyB,EAAE,yBAAyB,EACpD,oBAAoB,EAAE,IAAI,GAC1B,IACD,CACJ,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,eAAe,mBA8C1B","sourcesContent":["import { LogMetadata } from 'quidproquo-
|
|
1
|
+
{"version":3,"file":"LogMetadataGrid.js","sourceRoot":"","sources":["../../../src/LogViewer/LogMetadataGrid.tsx"],"names":[],"mappings":";;;;;;;AAEA,kFAA0D;AAC1D,kDAAsG;AAEtG,0CAAqI;AACrI,4FAAyF;AACzF,8DAA2D;AAC3D,2CAAwC;AAExC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,EAAE;IAChC,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,GAAG,EAAE,IAAI,CAAC;IAChC,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,GAAG,GAAG,EAAE;QAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;IACrB,IAAI,GAAG,GAAG,EAAE;QAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1C,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;IACpB,IAAI,EAAE,GAAG,EAAE;QAAE,OAAO,GAAG,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AC,CAAC,GAAG,EAAE,EAAE,CAAC,iCAAM,GAAG,KAAE,EAAE,EAAE,GAAG,CAAC,WAAW,IAAG,CAAC,GAC1D,EACF,uBAAC,qBAAS,IACR,WAAW,EAAE,2BAA2B,EACxC,cAAc,EAAE,sBAAsB,EACtC,IAAI,EAAE,CAAC,CAAC,sBAAsB,EAC9B,yBAAyB,EAAE,yBAAyB,EACpD,oBAAoB,EAAE,IAAI,GAC1B,IACD,CACJ,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,eAAe,mBA8C1B","sourcesContent":["import { LogMetadata } from 'quidproquo-features';\n\nimport LinearProgress from '@mui/material/LinearProgress';\nimport { DataGrid, GridColDef, GridRenderCellParams, GridRowClassNameParams } from '@mui/x-data-grid';\n\nimport { CorrelationOpenSource, getSearchProgress, logSearchKey, useAdminApp, useSessionState, useVolatileState } from '../adminApp';\nimport { DataGridPagination } from '../components/DataGridPagination/DataGridPagination';\nimport { DateCell } from '../components/DateCell/DateCell';\nimport { LogDialog } from './LogDialog';\n\nconst formatTime = (ms: number) => {\n if (ms < 1000) return `${ms}ms`;\n const sec = ms / 1000;\n if (sec < 60) return `${sec.toFixed(1)}s`;\n const min = sec / 60;\n if (min < 60) return `${min.toFixed(1)}m`;\n const hr = min / 60;\n if (hr < 24) return `${hr.toFixed(1)}h`;\n const day = hr / 24;\n return `${day.toFixed(1)}d`;\n};\n\nconst columns: GridColDef[] = [\n {\n field: 'startedAt',\n headerName: 'Started at',\n flex: 1,\n renderCell: (params: GridRenderCellParams) => <DateCell isoDateTime={params.value} />,\n },\n { field: 'moduleName', headerName: 'Service', flex: 1 },\n { field: 'runtimeType', headerName: 'Type', flex: 1 },\n { field: 'generic', headerName: 'Info', flex: 3 },\n { field: 'error', headerName: 'Error', flex: 4 },\n { field: 'userInfo', headerName: 'User', flex: 1.5 },\n {\n field: 'executionTimeMs',\n headerName: 'Execution Time',\n flex: 1,\n renderCell: (params: GridRenderCellParams) => <>{formatTime(params.value)}</>,\n sortComparator: (v1, v2) => Number(v1) - Number(v2),\n },\n];\n\ntype LogMetadataGridProps = {\n logs: LogMetadata[];\n isLoading: boolean;\n};\n\nexport const LogMetadataGrid = ({ logs, isLoading }: LogMetadataGridProps) => {\n const [api] = useAdminApp();\n const session = useSessionState();\n const volatile = useVolatileState();\n\n const searchProgress = getSearchProgress(volatile.logResults[logSearchKey(session.search)]);\n const selectedLogCorrelation = session.openCorrelation ?? '';\n\n const onRowClick = ({ row }: { row: { correlation: string } }) => api.applyCorrelationOpened(row.correlation, CorrelationOpenSource.grid);\n const clearSelectedLogCorrelation = () => api.applyCorrelationClosed();\n const setSelectedLogCorrelation = (correlation: string) => api.applyCorrelationOpened(correlation, CorrelationOpenSource.tree);\n\n const getRowClassName = (params: GridRowClassNameParams) => {\n return params.row.checked ? 'greenRow' : '';\n };\n\n return (\n <>\n <style>\n {`\n .greenRow {\n background-color: #eaffea;\n }\n `}\n </style>\n <DataGrid\n autoPageSize\n columns={columns}\n components={{\n Pagination: DataGridPagination,\n LoadingOverlay: () => <LinearProgress value={searchProgress} variant=\"determinate\" />,\n }}\n getRowClassName={getRowClassName}\n loading={isLoading}\n onRowClick={onRowClick}\n rows={logs.map((log) => ({ ...log, id: log.correlation }))}\n />\n <LogDialog\n handleClose={clearSelectedLogCorrelation}\n logCorrelation={selectedLogCorrelation}\n open={!!selectedLogCorrelation}\n setSelectedLogCorrelation={setSelectedLogCorrelation}\n storyResultMetadatas={logs}\n />\n </>\n );\n};\n"]}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogSummary = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const quidproquo_features_1 = require("quidproquo-features");
|
|
5
6
|
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
6
|
-
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const material_1 = require("@mui/material");
|
|
9
9
|
const adminApp_1 = require("../adminApp");
|
|
@@ -15,7 +15,7 @@ const LogSummary = ({ log }) => {
|
|
|
15
15
|
const handleCheckboxChange = (event) => {
|
|
16
16
|
setCheckedLoading(true);
|
|
17
17
|
const checkEvent = {
|
|
18
|
-
type:
|
|
18
|
+
type: quidproquo_features_1.WebsocketAdminClientMessageEventType.MarkLogChecked,
|
|
19
19
|
payload: {
|
|
20
20
|
correlationId: log.correlation,
|
|
21
21
|
checked: event.target.checked,
|
|
@@ -24,7 +24,7 @@ const LogSummary = ({ log }) => {
|
|
|
24
24
|
adminApi.applyLogCheckToggled(log.correlation, event.target.checked);
|
|
25
25
|
sendMessage(checkEvent);
|
|
26
26
|
};
|
|
27
|
-
(0, quidproquo_web_react_1.useSubscribeToWebSocketEvent)(
|
|
27
|
+
(0, quidproquo_web_react_1.useSubscribeToWebSocketEvent)(quidproquo_features_1.WebSocketQueueQpqAdminServerMessageEventType.LogMetadata, (_webSocketService, message) => {
|
|
28
28
|
if (message.payload.log.correlation !== log.correlation) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
@@ -33,7 +33,7 @@ const LogSummary = ({ log }) => {
|
|
|
33
33
|
});
|
|
34
34
|
(0, react_1.useEffect)(() => {
|
|
35
35
|
const refreshEvent = {
|
|
36
|
-
type:
|
|
36
|
+
type: quidproquo_features_1.WebsocketAdminClientMessageEventType.RefreshLogMetadata,
|
|
37
37
|
payload: {
|
|
38
38
|
correlationId: log.correlation,
|
|
39
39
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogSummary.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummary.tsx"],"names":[],"mappings":";;;;AACA,+DAA2F;
|
|
1
|
+
{"version":3,"file":"LogSummary.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummary.tsx"],"names":[],"mappings":";;;;AACA,6DAO6B;AAC7B,+DAA2F;AAE3F,iCAA4C;AAC5C,4CAA8F;AAE9F,0C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,OAAO,EAAE;gBACP,aAAa,EAAE,GAAG,CAAC,WAAW;aAC/B;SACF,CAAC;QAEF,WAAW,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;IAEnC,OAAO,CACL,wBAAC,cAAG,IAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,aACzB,uBAAC,qBAAU,IAAC,YAAY,QAAC,OAAO,EAAC,IAAI,4BAExB,EACb,wBAAC,qBAAU,mCAAkB,GAAG,CAAC,WAAW,IAAc,EAC1D,uBAAC,2BAAgB,IACf,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,uBAAC,2BAAgB,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,OAAO,EAAE,CAAC,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAA,EAAE,QAAQ,EAAE,oBAAoB,GAAI,EACxI,KAAK,EAAC,cAAc,GACpB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAzDW,QAAA,UAAU,cAyDrB","sourcesContent":["import { StoryResult } from 'quidproquo-core';\nimport {\n LogMetadata,\n WebsocketAdminClientMessageEventType,\n WebSocketQueueClientEventMessageQpqAdminMarkLogChecked,\n WebSocketQueueClientEventMessageQpqAdminRefreshLogMetadata,\n WebSocketQueueQpqAdminServerEventMessageLogMetadata,\n WebSocketQueueQpqAdminServerMessageEventType,\n} from 'quidproquo-features';\nimport { useSubscribeToWebSocketEvent, useWebsocketSendEvent } from 'quidproquo-web-react';\n\nimport { useEffect, useState } from 'react';\nimport { Box, Checkbox, CircularProgress, FormControlLabel, Typography } from '@mui/material';\n\nimport { useAdminApp } from '../adminApp';\n\ninterface LogSummaryProps {\n log: StoryResult<any>;\n}\n\nexport const LogSummary = ({ log }: LogSummaryProps) => {\n const [checkedLoading, setCheckedLoading] = useState(true);\n const [logMetadata, setLogMetadata] = useState<LogMetadata | null>(null);\n\n const [adminApi] = useAdminApp();\n const sendMessage = useWebsocketSendEvent();\n\n const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setCheckedLoading(true);\n\n const checkEvent: WebSocketQueueClientEventMessageQpqAdminMarkLogChecked = {\n type: WebsocketAdminClientMessageEventType.MarkLogChecked,\n payload: {\n correlationId: log.correlation,\n checked: event.target.checked,\n },\n };\n\n adminApi.applyLogCheckToggled(log.correlation, event.target.checked);\n sendMessage(checkEvent);\n };\n\n useSubscribeToWebSocketEvent(\n WebSocketQueueQpqAdminServerMessageEventType.LogMetadata,\n (_webSocketService, message: WebSocketQueueQpqAdminServerEventMessageLogMetadata) => {\n if (message.payload.log.correlation !== log.correlation) {\n return;\n }\n\n setCheckedLoading(false);\n setLogMetadata(message.payload.log);\n },\n );\n\n useEffect(() => {\n const refreshEvent: WebSocketQueueClientEventMessageQpqAdminRefreshLogMetadata = {\n type: WebsocketAdminClientMessageEventType.RefreshLogMetadata,\n payload: {\n correlationId: log.correlation,\n },\n };\n\n sendMessage(refreshEvent);\n }, [log.correlation, sendMessage]);\n\n return (\n <Box sx={{ width: 1, p: 2 }}>\n <Typography gutterBottom variant=\"h6\">\n Log Summary\n </Typography>\n <Typography>Correlation ID: {log.correlation}</Typography>\n <FormControlLabel\n control={checkedLoading ? <CircularProgress size={24} /> : <Checkbox checked={!!logMetadata?.checked} onChange={handleCheckboxChange} />}\n label=\"Mark as done\"\n />\n </Box>\n );\n};\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const quidproquo_features_1 = require("quidproquo-features");
|
|
4
4
|
const webserverServiceActionComponentMap = {
|
|
5
|
-
[
|
|
5
|
+
[quidproquo_features_1.ServiceActionType.Request]: ['askServiceRequest', 'serviceName', 'method', 'payload'],
|
|
6
6
|
};
|
|
7
7
|
exports.default = webserverServiceActionComponentMap;
|
|
8
8
|
//# sourceMappingURL=webserverServiceActionComponentMap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webserverServiceActionComponentMap.js","sourceRoot":"","sources":["../../../../../../src/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.ts"],"names":[],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"file":"webserverServiceActionComponentMap.js","sourceRoot":"","sources":["../../../../../../src/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.ts"],"names":[],"mappings":";;AAAA,6DAAwD;AAExD,MAAM,kCAAkC,GAA6B;IACnE,CAAC,uCAAiB,CAAC,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC;CACvF,CAAC;AAEF,kBAAe,kCAAkC,CAAC","sourcesContent":["import { ServiceActionType } from 'quidproquo-features';\n\nconst webserverServiceActionComponentMap: Record<string, string[]> = {\n [ServiceActionType.Request]: ['askServiceRequest', 'serviceName', 'method', 'payload'],\n};\n\nexport default webserverServiceActionComponentMap;\n"]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StoryResultMetadata } from 'quidproquo-core';
|
|
2
|
-
import { LogLog } from 'quidproquo-
|
|
3
|
-
import { LogChatMessage } from '../types/LogChatMessage';
|
|
2
|
+
import { LogLog } from 'quidproquo-features';
|
|
4
3
|
export type VolatileLogResults = {
|
|
5
4
|
logs: StoryResultMetadata[];
|
|
6
5
|
partsTotal: number;
|
|
@@ -15,16 +14,11 @@ export type VolatileLogLogResults = {
|
|
|
15
14
|
isSearching: boolean;
|
|
16
15
|
fetchedAt: string | null;
|
|
17
16
|
};
|
|
18
|
-
export type VolatileChat = {
|
|
19
|
-
messages: LogChatMessage[];
|
|
20
|
-
nextPageKey?: string;
|
|
21
|
-
pendingReplies: number;
|
|
22
|
-
};
|
|
23
17
|
export type VolatileState = {
|
|
24
18
|
logResults: Record<string, VolatileLogResults>;
|
|
25
19
|
logLogResults: Record<string, VolatileLogLogResults>;
|
|
26
|
-
chatByCorrelation: Record<string, VolatileChat>;
|
|
27
20
|
realtimeErrorLogs: StoryResultMetadata[];
|
|
28
21
|
serviceNames: string[];
|
|
22
|
+
logServiceName: string;
|
|
29
23
|
};
|
|
30
24
|
export declare const createInitialVolatileState: () => VolatileState;
|
|
@@ -4,9 +4,9 @@ exports.createInitialVolatileState = void 0;
|
|
|
4
4
|
const createInitialVolatileState = () => ({
|
|
5
5
|
logResults: {},
|
|
6
6
|
logLogResults: {},
|
|
7
|
-
chatByCorrelation: {},
|
|
8
7
|
realtimeErrorLogs: [],
|
|
9
8
|
serviceNames: [],
|
|
9
|
+
logServiceName: '',
|
|
10
10
|
});
|
|
11
11
|
exports.createInitialVolatileState = createInitialVolatileState;
|
|
12
12
|
//# sourceMappingURL=VolatileState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolatileState.js","sourceRoot":"","sources":["../../../src/adminApp/VolatileState.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VolatileState.js","sourceRoot":"","sources":["../../../src/adminApp/VolatileState.ts"],"names":[],"mappings":";;;AAkCO,MAAM,0BAA0B,GAAG,GAAkB,EAAE,CAAC,CAAC;IAC9D,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,EAAE;IACrB,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,EAAE;CACnB,CAAC,CAAC;AANU,QAAA,0BAA0B,8BAMpC","sourcesContent":["import { StoryResultMetadata } from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-features';\n\n// Server-derived / transient data that is NOT part of the audited session fold.\n// Search results are a cache keyed by the raw search params that produced them\n// (the request intent lives in the session fold; the response payload lives\n// here). Searches fan out one part per runtime type / log level, so progress is\n// partsDone / partsTotal.\nexport type VolatileLogResults = {\n logs: StoryResultMetadata[];\n partsTotal: number;\n partsDone: number;\n isSearching: boolean;\n fetchedAt: string | null;\n};\n\nexport type VolatileLogLogResults = {\n logLogs: LogLog[];\n partsTotal: number;\n partsDone: number;\n isSearching: boolean;\n fetchedAt: string | null;\n};\n\nexport type VolatileState = {\n logResults: Record<string, VolatileLogResults>;\n logLogResults: Record<string, VolatileLogLogResults>;\n realtimeErrorLogs: StoryResultMetadata[];\n serviceNames: string[];\n // This admin instance's own deployed service name — needed to address the\n // EventDocAi log chat over the wire (qpq/serviceRequest/{logServiceName}/...).\n logServiceName: string;\n};\n\nexport const createInitialVolatileState = (): VolatileState => ({\n logResults: {},\n logLogResults: {},\n realtimeErrorLogs: [],\n serviceNames: [],\n logServiceName: '',\n});\n"]}
|
package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askUIVolatileLogLogSearchPartLoaded.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.ts"],"names":[],"mappings":";;AAMA,kFAEC;AARD,qDAAsE;AAGtE,0EAAuE;AAGvE,QAAe,CAAC,CAAC,mCAAmC,CAAC,SAAiB,EAAE,OAAiB;IACvF,KAAK,CAAC,CAAC,IAAA,wCAAsB,EAAuC,+BAAc,CAAC,sBAAsB,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;AACrI,CAAC","sourcesContent":["import { AskResponse, askStateDispatchEffect } from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-
|
|
1
|
+
{"version":3,"file":"askUIVolatileLogLogSearchPartLoaded.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded.ts"],"names":[],"mappings":";;AAMA,kFAEC;AARD,qDAAsE;AAGtE,0EAAuE;AAGvE,QAAe,CAAC,CAAC,mCAAmC,CAAC,SAAiB,EAAE,OAAiB;IACvF,KAAK,CAAC,CAAC,IAAA,wCAAsB,EAAuC,+BAAc,CAAC,sBAAsB,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;AACrI,CAAC","sourcesContent":["import { AskResponse, askStateDispatchEffect } from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-features';\n\nimport { VolatileEffect } from '../../effects/volatile/VolatileEffect';\nimport { VolatileLogLogSearchPartLoadedEffect } from '../../effects/volatile/VolatileLogLogSearchPartLoadedEffect';\n\nexport function* askUIVolatileLogLogSearchPartLoaded(searchKey: string, logLogs: LogLog[]): AskResponse<void> {\n yield* askStateDispatchEffect<VolatileLogLogSearchPartLoadedEffect>(VolatileEffect.logLogSearchPartLoaded, { searchKey, logLogs });\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AskResponse } from 'quidproquo-core';
|
|
2
|
-
export declare function askUIVolatileServiceNamesLoaded(serviceNames: string[]): AskResponse<void>;
|
|
2
|
+
export declare function askUIVolatileServiceNamesLoaded(serviceNames: string[], logServiceName: string): AskResponse<void>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.askUIVolatileServiceNamesLoaded = askUIVolatileServiceNamesLoaded;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
5
|
const VolatileEffect_1 = require("../../effects/volatile/VolatileEffect");
|
|
6
|
-
function* askUIVolatileServiceNamesLoaded(serviceNames) {
|
|
7
|
-
yield* (0, quidproquo_core_1.askStateDispatchEffect)(VolatileEffect_1.VolatileEffect.serviceNamesLoaded, { serviceNames });
|
|
6
|
+
function* askUIVolatileServiceNamesLoaded(serviceNames, logServiceName) {
|
|
7
|
+
yield* (0, quidproquo_core_1.askStateDispatchEffect)(VolatileEffect_1.VolatileEffect.serviceNamesLoaded, { serviceNames, logServiceName });
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=askUIVolatileServiceNamesLoaded.js.map
|
package/lib/commonjs/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askUIVolatileServiceNamesLoaded.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.ts"],"names":[],"mappings":";;AAKA,0EAEC;AAPD,qDAAsE;AAEtE,0EAAuE;AAGvE,QAAe,CAAC,CAAC,+BAA+B,CAAC,YAAsB;
|
|
1
|
+
{"version":3,"file":"askUIVolatileServiceNamesLoaded.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/askUIVolatileServiceNamesLoaded.ts"],"names":[],"mappings":";;AAKA,0EAEC;AAPD,qDAAsE;AAEtE,0EAAuE;AAGvE,QAAe,CAAC,CAAC,+BAA+B,CAAC,YAAsB,EAAE,cAAsB;IAC7F,KAAK,CAAC,CAAC,IAAA,wCAAsB,EAAmC,+BAAc,CAAC,kBAAkB,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;AACvI,CAAC","sourcesContent":["import { AskResponse, askStateDispatchEffect } from 'quidproquo-core';\n\nimport { VolatileEffect } from '../../effects/volatile/VolatileEffect';\nimport { VolatileServiceNamesLoadedEffect } from '../../effects/volatile/VolatileServiceNamesLoadedEffect';\n\nexport function* askUIVolatileServiceNamesLoaded(serviceNames: string[], logServiceName: string): AskResponse<void> {\n yield* askStateDispatchEffect<VolatileServiceNamesLoadedEffect>(VolatileEffect.serviceNamesLoaded, { serviceNames, logServiceName });\n}\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './askUIVolatileChatMessageAppended';
|
|
2
|
-
export * from './askUIVolatileChatMessagesLoaded';
|
|
3
|
-
export * from './askUIVolatileChatPendingReplyChanged';
|
|
4
1
|
export * from './askUIVolatileLogLogSearchCompleted';
|
|
5
2
|
export * from './askUIVolatileLogLogSearchPartLoaded';
|
|
6
3
|
export * from './askUIVolatileLogLogSearchStarted';
|
|
@@ -14,9 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./askUIVolatileChatMessageAppended"), exports);
|
|
18
|
-
__exportStar(require("./askUIVolatileChatMessagesLoaded"), exports);
|
|
19
|
-
__exportStar(require("./askUIVolatileChatPendingReplyChanged"), exports);
|
|
20
17
|
__exportStar(require("./askUIVolatileLogLogSearchCompleted"), exports);
|
|
21
18
|
__exportStar(require("./askUIVolatileLogLogSearchPartLoaded"), exports);
|
|
22
19
|
__exportStar(require("./askUIVolatileLogLogSearchStarted"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/actionCreators/volatile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,wEAAsD;AACtD,qEAAmD;AACnD,oEAAkD;AAClD,qEAAmD;AACnD,kEAAgD;AAChD,0EAAwD;AACxD,oEAAkD","sourcesContent":["export * from './askUIVolatileLogLogSearchCompleted';\nexport * from './askUIVolatileLogLogSearchPartLoaded';\nexport * from './askUIVolatileLogLogSearchStarted';\nexport * from './askUIVolatileLogSearchCompleted';\nexport * from './askUIVolatileLogSearchPartLoaded';\nexport * from './askUIVolatileLogSearchStarted';\nexport * from './askUIVolatileRealtimeErrorLogReceived';\nexport * from './askUIVolatileServiceNamesLoaded';\n"]}
|
|
@@ -8,7 +8,6 @@ export declare const adminAppRuntime: import("quidproquo-web-react").QpqRuntimeD
|
|
|
8
8
|
askApplySessionEvent: typeof import("./actions").askApplySessionEvent;
|
|
9
9
|
askApplyTabChanged: typeof import("./logic").askApplyTabChanged;
|
|
10
10
|
askEndSession: typeof import("./logic").askEndSession;
|
|
11
|
-
askLoadChatMessages: typeof import("./logic").askLoadChatMessages;
|
|
12
11
|
askLoadServiceNames: typeof import("./logic").askLoadServiceNames;
|
|
13
12
|
askReceiveRealtimeErrorLog: typeof import("./logic").askReceiveRealtimeErrorLog;
|
|
14
13
|
askRunDashboardErrorSearch: typeof import("./logic").askRunDashboardErrorSearch;
|
|
@@ -5,9 +5,6 @@ export declare enum VolatileEffect {
|
|
|
5
5
|
logLogSearchStarted = "qpqAdmin/volatile/logLogSearchStarted",
|
|
6
6
|
logLogSearchPartLoaded = "qpqAdmin/volatile/logLogSearchPartLoaded",
|
|
7
7
|
logLogSearchCompleted = "qpqAdmin/volatile/logLogSearchCompleted",
|
|
8
|
-
chatMessagesLoaded = "qpqAdmin/volatile/chatMessagesLoaded",
|
|
9
|
-
chatMessageAppended = "qpqAdmin/volatile/chatMessageAppended",
|
|
10
|
-
chatPendingReplyChanged = "qpqAdmin/volatile/chatPendingReplyChanged",
|
|
11
8
|
serviceNamesLoaded = "qpqAdmin/volatile/serviceNamesLoaded",
|
|
12
9
|
realtimeErrorLogReceived = "qpqAdmin/volatile/realtimeErrorLogReceived"
|
|
13
10
|
}
|
|
@@ -9,9 +9,6 @@ var VolatileEffect;
|
|
|
9
9
|
VolatileEffect["logLogSearchStarted"] = "qpqAdmin/volatile/logLogSearchStarted";
|
|
10
10
|
VolatileEffect["logLogSearchPartLoaded"] = "qpqAdmin/volatile/logLogSearchPartLoaded";
|
|
11
11
|
VolatileEffect["logLogSearchCompleted"] = "qpqAdmin/volatile/logLogSearchCompleted";
|
|
12
|
-
VolatileEffect["chatMessagesLoaded"] = "qpqAdmin/volatile/chatMessagesLoaded";
|
|
13
|
-
VolatileEffect["chatMessageAppended"] = "qpqAdmin/volatile/chatMessageAppended";
|
|
14
|
-
VolatileEffect["chatPendingReplyChanged"] = "qpqAdmin/volatile/chatPendingReplyChanged";
|
|
15
12
|
VolatileEffect["serviceNamesLoaded"] = "qpqAdmin/volatile/serviceNamesLoaded";
|
|
16
13
|
VolatileEffect["realtimeErrorLogReceived"] = "qpqAdmin/volatile/realtimeErrorLogReceived";
|
|
17
14
|
})(VolatileEffect || (exports.VolatileEffect = VolatileEffect = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolatileEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileEffect.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"VolatileEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileEffect.ts"],"names":[],"mappings":";;;AAAA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,yEAAuD,CAAA;IACvD,+EAA6D,CAAA;IAC7D,6EAA2D,CAAA;IAC3D,+EAA6D,CAAA;IAC7D,qFAAmE,CAAA;IACnE,mFAAiE,CAAA;IACjE,6EAA2D,CAAA;IAC3D,yFAAuE,CAAA;AACzE,CAAC,EATW,cAAc,8BAAd,cAAc,QASzB","sourcesContent":["export enum VolatileEffect {\n logSearchStarted = 'qpqAdmin/volatile/logSearchStarted',\n logSearchPartLoaded = 'qpqAdmin/volatile/logSearchPartLoaded',\n logSearchCompleted = 'qpqAdmin/volatile/logSearchCompleted',\n logLogSearchStarted = 'qpqAdmin/volatile/logLogSearchStarted',\n logLogSearchPartLoaded = 'qpqAdmin/volatile/logLogSearchPartLoaded',\n logLogSearchCompleted = 'qpqAdmin/volatile/logLogSearchCompleted',\n serviceNamesLoaded = 'qpqAdmin/volatile/serviceNamesLoaded',\n realtimeErrorLogReceived = 'qpqAdmin/volatile/realtimeErrorLogReceived',\n}\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { VolatileChatMessageAppendedEffect } from './VolatileChatMessageAppendedEffect';
|
|
2
|
-
import { VolatileChatMessagesLoadedEffect } from './VolatileChatMessagesLoadedEffect';
|
|
3
|
-
import { VolatileChatPendingReplyChangedEffect } from './VolatileChatPendingReplyChangedEffect';
|
|
4
1
|
import { VolatileLogLogSearchCompletedEffect } from './VolatileLogLogSearchCompletedEffect';
|
|
5
2
|
import { VolatileLogLogSearchPartLoadedEffect } from './VolatileLogLogSearchPartLoadedEffect';
|
|
6
3
|
import { VolatileLogLogSearchStartedEffect } from './VolatileLogLogSearchStartedEffect';
|
|
@@ -9,4 +6,4 @@ import { VolatileLogSearchPartLoadedEffect } from './VolatileLogSearchPartLoaded
|
|
|
9
6
|
import { VolatileLogSearchStartedEffect } from './VolatileLogSearchStartedEffect';
|
|
10
7
|
import { VolatileRealtimeErrorLogReceivedEffect } from './VolatileRealtimeErrorLogReceivedEffect';
|
|
11
8
|
import { VolatileServiceNamesLoadedEffect } from './VolatileServiceNamesLoadedEffect';
|
|
12
|
-
export type VolatileEffects = VolatileLogSearchStartedEffect | VolatileLogSearchPartLoadedEffect | VolatileLogSearchCompletedEffect | VolatileLogLogSearchStartedEffect | VolatileLogLogSearchPartLoadedEffect | VolatileLogLogSearchCompletedEffect |
|
|
9
|
+
export type VolatileEffects = VolatileLogSearchStartedEffect | VolatileLogSearchPartLoadedEffect | VolatileLogSearchCompletedEffect | VolatileLogLogSearchStartedEffect | VolatileLogLogSearchPartLoadedEffect | VolatileLogLogSearchCompletedEffect | VolatileServiceNamesLoadedEffect | VolatileRealtimeErrorLogReceivedEffect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolatileEffects.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileEffects.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"VolatileEffects.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileEffects.ts"],"names":[],"mappings":"","sourcesContent":["import { VolatileLogLogSearchCompletedEffect } from './VolatileLogLogSearchCompletedEffect';\nimport { VolatileLogLogSearchPartLoadedEffect } from './VolatileLogLogSearchPartLoadedEffect';\nimport { VolatileLogLogSearchStartedEffect } from './VolatileLogLogSearchStartedEffect';\nimport { VolatileLogSearchCompletedEffect } from './VolatileLogSearchCompletedEffect';\nimport { VolatileLogSearchPartLoadedEffect } from './VolatileLogSearchPartLoadedEffect';\nimport { VolatileLogSearchStartedEffect } from './VolatileLogSearchStartedEffect';\nimport { VolatileRealtimeErrorLogReceivedEffect } from './VolatileRealtimeErrorLogReceivedEffect';\nimport { VolatileServiceNamesLoadedEffect } from './VolatileServiceNamesLoadedEffect';\n\nexport type VolatileEffects =\n | VolatileLogSearchStartedEffect\n | VolatileLogSearchPartLoadedEffect\n | VolatileLogSearchCompletedEffect\n | VolatileLogLogSearchStartedEffect\n | VolatileLogLogSearchPartLoadedEffect\n | VolatileLogLogSearchCompletedEffect\n | VolatileServiceNamesLoadedEffect\n | VolatileRealtimeErrorLogReceivedEffect;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolatileLogLogSearchPartLoadedEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.ts"],"names":[],"mappings":"","sourcesContent":["import { Effect } from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-
|
|
1
|
+
{"version":3,"file":"VolatileLogLogSearchPartLoadedEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileLogLogSearchPartLoadedEffect.ts"],"names":[],"mappings":"","sourcesContent":["import { Effect } from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-features';\n\nimport { VolatileEffect } from './VolatileEffect';\n\nexport type VolatileLogLogSearchPartLoadedPayload = {\n searchKey: string;\n logLogs: LogLog[];\n};\n\nexport type VolatileLogLogSearchPartLoadedEffect = Effect<VolatileEffect.logLogSearchPartLoaded, VolatileLogLogSearchPartLoadedPayload>;\n"]}
|
|
@@ -2,5 +2,6 @@ import { Effect } from 'quidproquo-core';
|
|
|
2
2
|
import { VolatileEffect } from './VolatileEffect';
|
|
3
3
|
export type VolatileServiceNamesLoadedPayload = {
|
|
4
4
|
serviceNames: string[];
|
|
5
|
+
logServiceName: string;
|
|
5
6
|
};
|
|
6
7
|
export type VolatileServiceNamesLoadedEffect = Effect<VolatileEffect.serviceNamesLoaded, VolatileServiceNamesLoadedPayload>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolatileServiceNamesLoadedEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.ts"],"names":[],"mappings":"","sourcesContent":["import { Effect } from 'quidproquo-core';\n\nimport { VolatileEffect } from './VolatileEffect';\n\nexport type VolatileServiceNamesLoadedPayload = {\n serviceNames: string[];\n};\n\nexport type VolatileServiceNamesLoadedEffect = Effect<VolatileEffect.serviceNamesLoaded, VolatileServiceNamesLoadedPayload>;\n"]}
|
|
1
|
+
{"version":3,"file":"VolatileServiceNamesLoadedEffect.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/VolatileServiceNamesLoadedEffect.ts"],"names":[],"mappings":"","sourcesContent":["import { Effect } from 'quidproquo-core';\n\nimport { VolatileEffect } from './VolatileEffect';\n\nexport type VolatileServiceNamesLoadedPayload = {\n serviceNames: string[];\n logServiceName: string;\n};\n\nexport type VolatileServiceNamesLoadedEffect = Effect<VolatileEffect.serviceNamesLoaded, VolatileServiceNamesLoadedPayload>;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './VolatileChatMessageAppendedEffect';
|
|
2
|
-
export * from './VolatileChatMessagesLoadedEffect';
|
|
3
|
-
export * from './VolatileChatPendingReplyChangedEffect';
|
|
4
1
|
export * from './VolatileEffect';
|
|
5
2
|
export * from './VolatileEffects';
|
|
6
3
|
export * from './VolatileLogLogSearchCompletedEffect';
|
|
@@ -14,9 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./VolatileChatMessageAppendedEffect"), exports);
|
|
18
|
-
__exportStar(require("./VolatileChatMessagesLoadedEffect"), exports);
|
|
19
|
-
__exportStar(require("./VolatileChatPendingReplyChangedEffect"), exports);
|
|
20
17
|
__exportStar(require("./VolatileEffect"), exports);
|
|
21
18
|
__exportStar(require("./VolatileEffects"), exports);
|
|
22
19
|
__exportStar(require("./VolatileLogLogSearchCompletedEffect"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/effects/volatile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC;AAClC,wEAAsD;AACtD,yEAAuD;AACvD,sEAAoD;AACpD,qEAAmD;AACnD,sEAAoD;AACpD,mEAAiD;AACjD,2EAAyD;AACzD,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD","sourcesContent":["export * from './VolatileEffect';\nexport * from './VolatileEffects';\nexport * from './VolatileLogLogSearchCompletedEffect';\nexport * from './VolatileLogLogSearchPartLoadedEffect';\nexport * from './VolatileLogLogSearchStartedEffect';\nexport * from './VolatileLogSearchCompletedEffect';\nexport * from './VolatileLogSearchPartLoadedEffect';\nexport * from './VolatileLogSearchStartedEffect';\nexport * from './VolatileRealtimeErrorLogReceivedEffect';\nexport * from './VolatileSearchCompletedPayload';\nexport * from './VolatileSearchStartedPayload';\nexport * from './VolatileServiceNamesLoadedEffect';\n"]}
|
|
@@ -8,7 +8,6 @@ export declare const useAdminApp: () => [import("quidproquo-web-react").QpqMappe
|
|
|
8
8
|
askApplySessionEvent: typeof import("..").askApplySessionEvent;
|
|
9
9
|
askApplyTabChanged: typeof import("..").askApplyTabChanged;
|
|
10
10
|
askEndSession: typeof import("..").askEndSession;
|
|
11
|
-
askLoadChatMessages: typeof import("..").askLoadChatMessages;
|
|
12
11
|
askLoadServiceNames: typeof import("..").askLoadServiceNames;
|
|
13
12
|
askReceiveRealtimeErrorLog: typeof import("..").askReceiveRealtimeErrorLog;
|
|
14
13
|
askRunDashboardErrorSearch: typeof import("..").askRunDashboardErrorSearch;
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.askSendChatMessage = askSendChatMessage;
|
|
4
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const askPlatformRequest_1 = require("../../../platformLogic/network/askPlatformRequest");
|
|
6
|
-
const askUIVolatileChatMessageAppended_1 = require("../../actionCreators/volatile/askUIVolatileChatMessageAppended");
|
|
7
|
-
const askUIVolatileChatPendingReplyChanged_1 = require("../../actionCreators/volatile/askUIVolatileChatPendingReplyChanged");
|
|
8
4
|
const askApplySessionEvent_1 = require("../../actions/askApplySessionEvent");
|
|
9
5
|
const AdminSessionEventType_1 = require("../../effects/session/AdminSessionEventType");
|
|
10
|
-
//
|
|
11
|
-
//
|
|
6
|
+
// Records that the user asked the log chat something — audit trail only. The
|
|
7
|
+
// message itself, the AI's reply, and their storage are the EventDocAi log
|
|
8
|
+
// chat's concern now (see LogViewer/LogChat), not this session fold.
|
|
12
9
|
function* askSendChatMessage(correlationId, message) {
|
|
13
10
|
if (!message.trim()) {
|
|
14
11
|
return;
|
|
15
12
|
}
|
|
16
13
|
yield* (0, askApplySessionEvent_1.askApplySessionEvent)(AdminSessionEventType_1.AdminSessionEventType.chatMessageSent, { correlationId, message });
|
|
17
|
-
const timestamp = yield* (0, quidproquo_core_1.askDateNow)();
|
|
18
|
-
const userMessage = { message, timestamp, isAi: false };
|
|
19
|
-
yield* (0, askUIVolatileChatMessageAppended_1.askUIVolatileChatMessageAppended)(correlationId, userMessage);
|
|
20
|
-
yield* (0, askUIVolatileChatPendingReplyChanged_1.askUIVolatileChatPendingReplyChanged)(correlationId, 1);
|
|
21
|
-
const body = { correlationId, message };
|
|
22
|
-
const response = yield* (0, askPlatformRequest_1.askPlatformRequest)('POST', '/log/chat/message', { body });
|
|
23
|
-
yield* (0, askUIVolatileChatPendingReplyChanged_1.askUIVolatileChatPendingReplyChanged)(correlationId, -1);
|
|
24
|
-
if (response.status < 200 || response.status >= 300) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
yield* (0, askUIVolatileChatMessageAppended_1.askUIVolatileChatMessageAppended)(correlationId, response.data);
|
|
28
14
|
}
|
|
29
15
|
//# sourceMappingURL=askSendChatMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askSendChatMessage.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/chat/askSendChatMessage.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"askSendChatMessage.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/chat/askSendChatMessage.ts"],"names":[],"mappings":";;AASA,gDAMC;AAbD,6EAA0E;AAC1E,uFAAoF;AAGpF,6EAA6E;AAC7E,2EAA2E;AAC3E,qEAAqE;AACrE,QAAe,CAAC,CAAC,kBAAkB,CAAC,aAAqB,EAAE,OAAe;IACxE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;QACpB,OAAO;IACT,CAAC;IAED,KAAK,CAAC,CAAC,IAAA,2CAAoB,EAAsB,6CAAqB,CAAC,eAAe,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;AACtH,CAAC","sourcesContent":["import { AskResponse } from 'quidproquo-core';\n\nimport { askApplySessionEvent } from '../../actions/askApplySessionEvent';\nimport { AdminSessionEventType } from '../../effects/session/AdminSessionEventType';\nimport { ChatMessageSentData } from '../../effects/session/ChatMessageSentEvent';\n\n// Records that the user asked the log chat something — audit trail only. The\n// message itself, the AI's reply, and their storage are the EventDocAi log\n// chat's concern now (see LogViewer/LogChat), not this session fold.\nexport function* askSendChatMessage(correlationId: string, message: string): AskResponse<void> {\n if (!message.trim()) {\n return;\n }\n\n yield* askApplySessionEvent<ChatMessageSentData>(AdminSessionEventType.chatMessageSent, { correlationId, message });\n}\n"]}
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./askLoadChatMessages"), exports);
|
|
18
17
|
__exportStar(require("./askSendChatMessage"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC","sourcesContent":["export * from './askSendChatMessage';\n"]}
|
|
@@ -8,6 +8,6 @@ function* askLoadServiceNames() {
|
|
|
8
8
|
if (response.status < 200 || response.status >= 300) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
yield* (0, askUIVolatileServiceNamesLoaded_1.askUIVolatileServiceNamesLoaded)(response.data);
|
|
11
|
+
yield* (0, askUIVolatileServiceNamesLoaded_1.askUIVolatileServiceNamesLoaded)(response.data.services, response.data.logServiceName);
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=askLoadServiceNames.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askLoadServiceNames.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/config/askLoadServiceNames.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"askLoadServiceNames.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/config/askLoadServiceNames.ts"],"names":[],"mappings":";;AAUA,kDAQC;AAhBD,0FAAuF;AACvF,mHAAgH;AAOhH,QAAe,CAAC,CAAC,mBAAmB;IAClC,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,IAAA,uCAAkB,EAAqC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAEzG,IAAI,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;QACpD,OAAO;IACT,CAAC;IAED,KAAK,CAAC,CAAC,IAAA,iEAA+B,EAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC/F,CAAC","sourcesContent":["import { AskResponse } from 'quidproquo-core';\n\nimport { askPlatformRequest } from '../../../platformLogic/network/askPlatformRequest';\nimport { askUIVolatileServiceNamesLoaded } from '../../actionCreators/volatile/askUIVolatileServiceNamesLoaded';\n\ntype GetServiceNamesResponse = {\n services: string[];\n logServiceName: string;\n};\n\nexport function* askLoadServiceNames(): AskResponse<void> {\n const response = yield* askPlatformRequest<undefined, GetServiceNamesResponse>('GET', '/admin/services');\n\n if (response.status < 200 || response.status >= 300) {\n return;\n }\n\n yield* askUIVolatileServiceNamesLoaded(response.data.services, response.data.logServiceName);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askRunLogLogSearch.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/search/askRunLogLogSearch.ts"],"names":[],"mappings":";;AA8DA,gDAkBC;AAhFD,qDAayB;AAGzB,0FAAuF;AACvF,yHAAsH;AACtH,2HAAwH;AACxH,qHAAkH;AAClH,6EAA0E;AAE1E,uFAAoF;AAGpF,2DAAwD;AACxD,w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kB,EAAC,KAAK,CAAC,CAAC;IAEzC,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IACtC,KAAK,CAAC,CAAC,IAAA,2CAAoB,EAAsB,6CAAqB,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,2BAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAE1I,MAAM,SAAS,GAAG,IAAA,qCAAmB,EAAC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAuB,CAAC,EAAE,8BAAY,CAAC,CAAC;IAE7G,MAAM,SAAS,GAAG,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC;IAC1C,KAAK,CAAC,CAAC,IAAA,mEAAgC,EAAC,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAErE,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IAEnC,KAAK,CAAC,CAAC,IAAA,gCAAc,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAElH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IACtC,KAAK,CAAC,CAAC,IAAA,uEAAkC,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import {\n askCatch,\n askDateNow,\n askNewGuid,\n AskResponse,\n askRunParallel,\n askStateRead,\n EitherActionResult,\n HTTPNetworkResponse,\n LogLevelEnum,\n LogLevelEnumLookup,\n QpqPagedData,\n resolveLookupValues,\n} from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-
|
|
1
|
+
{"version":3,"file":"askRunLogLogSearch.js","sourceRoot":"","sources":["../../../../../src/adminApp/logic/search/askRunLogLogSearch.ts"],"names":[],"mappings":";;AA8DA,gD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C,CAAC,kBAAkB;IACjC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,IAAA,8BAAY,EAAgB,EAAE,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,IAAA,uCAAkB,EAAC,KAAK,CAAC,CAAC;IAEzC,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IACtC,KAAK,CAAC,CAAC,IAAA,2CAAoB,EAAsB,6CAAqB,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,2BAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAE1I,MAAM,SAAS,GAAG,IAAA,qCAAmB,EAAC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAuB,CAAC,EAAE,8BAAY,CAAC,CAAC;IAE7G,MAAM,SAAS,GAAG,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC;IAC1C,KAAK,CAAC,CAAC,IAAA,mEAAgC,EAAC,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAErE,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IAEnC,KAAK,CAAC,CAAC,IAAA,gCAAc,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAElH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,IAAA,4BAAU,GAAE,CAAC;IACtC,KAAK,CAAC,CAAC,IAAA,uEAAkC,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import {\n askCatch,\n askDateNow,\n askNewGuid,\n AskResponse,\n askRunParallel,\n askStateRead,\n EitherActionResult,\n HTTPNetworkResponse,\n LogLevelEnum,\n LogLevelEnumLookup,\n QpqPagedData,\n resolveLookupValues,\n} from 'quidproquo-core';\nimport { LogLog } from 'quidproquo-features';\n\nimport { askPlatformRequest } from '../../../platformLogic/network/askPlatformRequest';\nimport { askUIVolatileLogLogSearchCompleted } from '../../actionCreators/volatile/askUIVolatileLogLogSearchCompleted';\nimport { askUIVolatileLogLogSearchPartLoaded } from '../../actionCreators/volatile/askUIVolatileLogLogSearchPartLoaded';\nimport { askUIVolatileLogLogSearchStarted } from '../../actionCreators/volatile/askUIVolatileLogLogSearchStarted';\nimport { askApplySessionEvent } from '../../actions/askApplySessionEvent';\nimport { AdminAppState } from '../../AdminAppState';\nimport { AdminSessionEventType } from '../../effects/session/AdminSessionEventType';\nimport { SearchRequestedData } from '../../effects/session/SearchRequestedEvent';\nimport { AdminSearchParams } from '../../types/AdminSearchParams';\nimport { SearchOrigin } from '../../types/SearchOrigin';\nimport { selectSearchParams } from '../selectors/selectSearchParams';\nimport { effectiveLogLevelLookup } from './effectiveLogLevelLookup';\nimport { logLogSearchKey } from './logLogSearchKey';\n\n// One search part = the full page-loop for one log level.\nfunction* askFetchLogLogSearchPart(searchKey: string, search: AdminSearchParams, logLevel: LogLevelEnum, nowIso: string): AskResponse<void> {\n let logLogs: LogLog[] = [];\n let nextPageKey: string | undefined = undefined;\n\n do {\n const response: EitherActionResult<HTTPNetworkResponse<QpqPagedData<LogLog>>> = yield* askCatch(\n askPlatformRequest<unknown, QpqPagedData<LogLog>>('POST', '/loglog/list', {\n body: {\n logLevel,\n startIsoDateTime: search.startIsoDateTime || nowIso,\n endIsoDateTime: search.endIsoDateTime || nowIso,\n serviceFilter: search.service,\n reasonFilter: search.msg,\n nextPageKey,\n },\n }),\n );\n\n if (!response.success || response.result.status < 200 || response.result.status >= 300) {\n break;\n }\n\n logLogs = [...logLogs, ...response.result.data.items];\n nextPageKey = response.result.data.nextPageKey;\n } while (nextPageKey);\n\n yield* askUIVolatileLogLogSearchPartLoaded(searchKey, logLogs);\n}\n\n// The Logs-tab search intent: recorded in the session doc, then fetched — one\n// part per resolved log level in parallel — into the volatile cache.\nexport function* askRunLogLogSearch(): AskResponse<void> {\n const state = yield* askStateRead<AdminAppState>('');\n const search = selectSearchParams(state);\n\n const requestId = yield* askNewGuid();\n yield* askApplySessionEvent<SearchRequestedData>(AdminSessionEventType.searchRequested, { search, requestId, origin: SearchOrigin.logs });\n\n const logLevels = resolveLookupValues([effectiveLogLevelLookup(search) as LogLevelEnumLookup], LogLevelEnum);\n\n const searchKey = logLogSearchKey(search);\n yield* askUIVolatileLogLogSearchStarted(searchKey, logLevels.length);\n\n const nowIso = yield* askDateNow();\n\n yield* askRunParallel(logLevels.map((logLevel) => askFetchLogLogSearchPart(searchKey, search, logLevel, nowIso)));\n\n const fetchedAt = yield* askDateNow();\n yield* askUIVolatileLogLogSearchCompleted(searchKey, fetchedAt);\n}\n"]}
|