@terreno/admin-frontend 58.0.0-beta.3 → 58.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +99 -0
- package/dist/AdminModelForm.js +12 -12
- package/dist/AdminModelForm.js.map +1 -1
- package/dist/AdminModelTable.d.ts.map +1 -1
- package/dist/AdminModelTable.js +11 -0
- package/dist/AdminModelTable.js.map +1 -1
- package/dist/ConfigurationScreen.d.ts.map +1 -1
- package/dist/ConfigurationScreen.js +1 -2
- package/dist/ConfigurationScreen.js.map +1 -1
- package/dist/adminModelUrls.d.ts +7 -0
- package/dist/adminModelUrls.d.ts.map +1 -0
- package/dist/adminModelUrls.js +9 -0
- package/dist/adminModelUrls.js.map +1 -0
- package/dist/adminRpc.d.ts.map +1 -1
- package/dist/adminRpc.js +9 -0
- package/dist/adminRpc.js.map +1 -1
- package/dist/adminRpcSeed.d.ts +25 -0
- package/dist/adminRpcSeed.d.ts.map +1 -0
- package/dist/adminRpcSeed.js +49 -0
- package/dist/adminRpcSeed.js.map +1 -0
- package/dist/comms/commsDashboardParams.d.ts.map +1 -1
- package/dist/comms/commsDashboardParams.js +7 -1
- package/dist/comms/commsDashboardParams.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/useAdminModelApi.d.ts.map +1 -1
- package/dist/useAdminModelApi.js +2 -1
- package/dist/useAdminModelApi.js.map +1 -1
- package/dist/useAdminRpc.d.ts.map +1 -1
- package/dist/useAdminRpc.js +50 -19
- package/dist/useAdminRpc.js.map +1 -1
- package/dist/useConfigurationApi.d.ts.map +1 -1
- package/dist/useConfigurationApi.js +8 -2
- package/dist/useConfigurationApi.js.map +1 -1
- package/dist/widgets/aiObservability/datasets/AiDatasetsListScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/datasets/AiDatasetsListScreen.js +19 -9
- package/dist/widgets/aiObservability/datasets/AiDatasetsListScreen.js.map +1 -1
- package/dist/widgets/aiObservability/datasets/AiDatasetsListView.d.ts +7 -2
- package/dist/widgets/aiObservability/datasets/AiDatasetsListView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/datasets/AiDatasetsListView.js +155 -43
- package/dist/widgets/aiObservability/datasets/AiDatasetsListView.js.map +1 -1
- package/dist/widgets/aiObservability/datasets/datasetTypes.d.ts +20 -1
- package/dist/widgets/aiObservability/datasets/datasetTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/datasets/datasetTypes.js +17 -12
- package/dist/widgets/aiObservability/datasets/datasetTypes.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorDetailScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorDetailScreen.js +12 -8
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorDetailScreen.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorNewScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorNewScreen.js +4 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorNewScreen.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorPanels.d.ts +8 -0
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorPanels.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorPanels.js +68 -37
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorPanels.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListScreen.js +4 -2
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListScreen.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListView.d.ts +8 -0
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListView.js +156 -33
- package/dist/widgets/aiObservability/evaluators/AiEvaluatorsListView.js.map +1 -1
- package/dist/widgets/aiObservability/evaluators/evaluatorTypes.d.ts +32 -0
- package/dist/widgets/aiObservability/evaluators/evaluatorTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/evaluators/evaluatorTypes.js +49 -0
- package/dist/widgets/aiObservability/evaluators/evaluatorTypes.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentNewScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentNewScreen.js +235 -12
- package/dist/widgets/aiObservability/experiments/AiExperimentNewScreen.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentNewView.d.ts +10 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentNewView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentNewView.js +113 -56
- package/dist/widgets/aiObservability/experiments/AiExperimentNewView.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsScreen.js +53 -38
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsScreen.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsView.d.ts +2 -3
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsView.js +117 -32
- package/dist/widgets/aiObservability/experiments/AiExperimentResultsView.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentsListScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentsListScreen.js +13 -4
- package/dist/widgets/aiObservability/experiments/AiExperimentsListScreen.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentsListView.d.ts +5 -0
- package/dist/widgets/aiObservability/experiments/AiExperimentsListView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiExperimentsListView.js +157 -55
- package/dist/widgets/aiObservability/experiments/AiExperimentsListView.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/AiJudgeExperimentSteps.d.ts +41 -0
- package/dist/widgets/aiObservability/experiments/AiJudgeExperimentSteps.d.ts.map +1 -0
- package/dist/widgets/aiObservability/experiments/AiJudgeExperimentSteps.js +113 -0
- package/dist/widgets/aiObservability/experiments/AiJudgeExperimentSteps.js.map +1 -0
- package/dist/widgets/aiObservability/experiments/ExperimentWizard.d.ts +30 -0
- package/dist/widgets/aiObservability/experiments/ExperimentWizard.d.ts.map +1 -0
- package/dist/widgets/aiObservability/experiments/ExperimentWizard.js +29 -0
- package/dist/widgets/aiObservability/experiments/ExperimentWizard.js.map +1 -0
- package/dist/widgets/aiObservability/experiments/experimentTypes.d.ts +82 -3
- package/dist/widgets/aiObservability/experiments/experimentTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/experimentTypes.js +172 -6
- package/dist/widgets/aiObservability/experiments/experimentTypes.js.map +1 -1
- package/dist/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.d.ts +34 -4
- package/dist/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.d.ts.map +1 -1
- package/dist/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.js +8 -2
- package/dist/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptEditorScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptEditorScreen.js +24 -5
- package/dist/widgets/aiObservability/prompts/AiPromptEditorScreen.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptEditorView.d.ts +2 -0
- package/dist/widgets/aiObservability/prompts/AiPromptEditorView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptEditorView.js +36 -6
- package/dist/widgets/aiObservability/prompts/AiPromptEditorView.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptHubView.d.ts +3 -0
- package/dist/widgets/aiObservability/prompts/AiPromptHubView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptHubView.js +6 -6
- package/dist/widgets/aiObservability/prompts/AiPromptHubView.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptsListScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptsListScreen.js +12 -12
- package/dist/widgets/aiObservability/prompts/AiPromptsListScreen.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptsListView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/AiPromptsListView.js +156 -35
- package/dist/widgets/aiObservability/prompts/AiPromptsListView.js.map +1 -1
- package/dist/widgets/aiObservability/prompts/promptTypes.d.ts +13 -3
- package/dist/widgets/aiObservability/prompts/promptTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/prompts/promptTypes.js +61 -19
- package/dist/widgets/aiObservability/prompts/promptTypes.js.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewBatchScreen.d.ts +11 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchScreen.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchScreen.js +115 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchScreen.js.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchView.d.ts +22 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchView.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchView.js +136 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchView.js.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesScreen.d.ts +4 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesScreen.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesScreen.js +92 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesScreen.js.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesView.d.ts +26 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesView.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesView.js +115 -0
- package/dist/widgets/aiObservability/review/AiReviewBatchesView.js.map +1 -0
- package/dist/widgets/aiObservability/review/AiReviewItemScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewItemScreen.js +73 -18
- package/dist/widgets/aiObservability/review/AiReviewItemScreen.js.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewItemView.d.ts +19 -5
- package/dist/widgets/aiObservability/review/AiReviewItemView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewItemView.js +14 -9
- package/dist/widgets/aiObservability/review/AiReviewItemView.js.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewQueueScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewQueueScreen.js +16 -2
- package/dist/widgets/aiObservability/review/AiReviewQueueScreen.js.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewQueueView.d.ts +11 -1
- package/dist/widgets/aiObservability/review/AiReviewQueueView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/AiReviewQueueView.js +96 -37
- package/dist/widgets/aiObservability/review/AiReviewQueueView.js.map +1 -1
- package/dist/widgets/aiObservability/review/ReviewQuestionList.d.ts +13 -0
- package/dist/widgets/aiObservability/review/ReviewQuestionList.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/ReviewQuestionList.js +28 -0
- package/dist/widgets/aiObservability/review/ReviewQuestionList.js.map +1 -0
- package/dist/widgets/aiObservability/review/ReviewReadOnlyPanel.d.ts +3 -0
- package/dist/widgets/aiObservability/review/ReviewReadOnlyPanel.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/ReviewReadOnlyPanel.js +2 -2
- package/dist/widgets/aiObservability/review/ReviewReadOnlyPanel.js.map +1 -1
- package/dist/widgets/aiObservability/review/ReviewScoreField.d.ts +14 -0
- package/dist/widgets/aiObservability/review/ReviewScoreField.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/ReviewScoreField.js +40 -12
- package/dist/widgets/aiObservability/review/ReviewScoreField.js.map +1 -1
- package/dist/widgets/aiObservability/review/batchTypes.d.ts +103 -0
- package/dist/widgets/aiObservability/review/batchTypes.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/batchTypes.js +61 -0
- package/dist/widgets/aiObservability/review/batchTypes.js.map +1 -0
- package/dist/widgets/aiObservability/review/reviewShortcuts.d.ts +21 -0
- package/dist/widgets/aiObservability/review/reviewShortcuts.d.ts.map +1 -0
- package/dist/widgets/aiObservability/review/reviewShortcuts.js +141 -0
- package/dist/widgets/aiObservability/review/reviewShortcuts.js.map +1 -0
- package/dist/widgets/aiObservability/review/reviewTypes.d.ts +23 -2
- package/dist/widgets/aiObservability/review/reviewTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/reviewTypes.js +25 -0
- package/dist/widgets/aiObservability/review/reviewTypes.js.map +1 -1
- package/dist/widgets/aiObservability/review/useAiObservabilityReviewApi.d.ts +27 -1
- package/dist/widgets/aiObservability/review/useAiObservabilityReviewApi.d.ts.map +1 -1
- package/dist/widgets/aiObservability/review/useAiObservabilityReviewApi.js +31 -1
- package/dist/widgets/aiObservability/review/useAiObservabilityReviewApi.js.map +1 -1
- package/dist/widgets/aiObservability/shell/AgreementMeter.d.ts +30 -0
- package/dist/widgets/aiObservability/shell/AgreementMeter.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/AgreementMeter.js +32 -0
- package/dist/widgets/aiObservability/shell/AgreementMeter.js.map +1 -0
- package/dist/widgets/aiObservability/shell/AiObservabilityChrome.d.ts +10 -0
- package/dist/widgets/aiObservability/shell/AiObservabilityChrome.d.ts.map +1 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityChrome.js +6 -4
- package/dist/widgets/aiObservability/shell/AiObservabilityChrome.js.map +1 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityScreenWidgets.d.ts +3 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityScreenWidgets.d.ts.map +1 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityScreenWidgets.js +5 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityScreenWidgets.js.map +1 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityStatusChip.d.ts.map +1 -1
- package/dist/widgets/aiObservability/shell/AiObservabilityStatusChip.js +3 -3
- package/dist/widgets/aiObservability/shell/AiObservabilityStatusChip.js.map +1 -1
- package/dist/widgets/aiObservability/shell/EvalPipelineOverview.d.ts +14 -0
- package/dist/widgets/aiObservability/shell/EvalPipelineOverview.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/EvalPipelineOverview.js +26 -0
- package/dist/widgets/aiObservability/shell/EvalPipelineOverview.js.map +1 -0
- package/dist/widgets/aiObservability/shell/EvalStepBanner.d.ts +11 -0
- package/dist/widgets/aiObservability/shell/EvalStepBanner.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/EvalStepBanner.js +8 -0
- package/dist/widgets/aiObservability/shell/EvalStepBanner.js.map +1 -0
- package/dist/widgets/aiObservability/shell/EvalStepper.d.ts +22 -0
- package/dist/widgets/aiObservability/shell/EvalStepper.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/EvalStepper.js +28 -0
- package/dist/widgets/aiObservability/shell/EvalStepper.js.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityPageHeader.d.ts +17 -0
- package/dist/widgets/aiObservability/shell/ObservabilityPageHeader.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityPageHeader.js +10 -0
- package/dist/widgets/aiObservability/shell/ObservabilityPageHeader.js.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStates.d.ts +24 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStates.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStates.js +11 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStates.js.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStatusBadge.d.ts +11 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStatusBadge.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStatusBadge.js +9 -0
- package/dist/widgets/aiObservability/shell/ObservabilityStatusBadge.js.map +1 -0
- package/dist/widgets/aiObservability/shell/aiObservabilityNav.d.ts +1 -0
- package/dist/widgets/aiObservability/shell/aiObservabilityNav.d.ts.map +1 -1
- package/dist/widgets/aiObservability/shell/aiObservabilityNav.js +15 -8
- package/dist/widgets/aiObservability/shell/aiObservabilityNav.js.map +1 -1
- package/dist/widgets/aiObservability/shell/clientTable.d.ts +48 -0
- package/dist/widgets/aiObservability/shell/clientTable.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/clientTable.js +163 -0
- package/dist/widgets/aiObservability/shell/clientTable.js.map +1 -0
- package/dist/widgets/aiObservability/shell/evalPipeline.d.ts +24 -0
- package/dist/widgets/aiObservability/shell/evalPipeline.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/evalPipeline.js +43 -0
- package/dist/widgets/aiObservability/shell/evalPipeline.js.map +1 -0
- package/dist/widgets/aiObservability/shell/observabilityStatus.d.ts +23 -0
- package/dist/widgets/aiObservability/shell/observabilityStatus.d.ts.map +1 -0
- package/dist/widgets/aiObservability/shell/observabilityStatus.js +72 -0
- package/dist/widgets/aiObservability/shell/observabilityStatus.js.map +1 -0
- package/dist/widgets/aiObservability/traces/AiTracesListScreen.d.ts.map +1 -1
- package/dist/widgets/aiObservability/traces/AiTracesListScreen.js +18 -9
- package/dist/widgets/aiObservability/traces/AiTracesListScreen.js.map +1 -1
- package/dist/widgets/aiObservability/traces/AiTracesListView.d.ts +18 -7
- package/dist/widgets/aiObservability/traces/AiTracesListView.d.ts.map +1 -1
- package/dist/widgets/aiObservability/traces/AiTracesListView.js +198 -78
- package/dist/widgets/aiObservability/traces/AiTracesListView.js.map +1 -1
- package/dist/widgets/aiObservability/traces/traceTypes.d.ts +23 -1
- package/dist/widgets/aiObservability/traces/traceTypes.d.ts.map +1 -1
- package/dist/widgets/aiObservability/traces/traceTypes.js +92 -1
- package/dist/widgets/aiObservability/traces/traceTypes.js.map +1 -1
- package/dist/widgets/aiObservability/traces/useAiObservabilityTracesApi.d.ts +2 -0
- package/dist/widgets/aiObservability/traces/useAiObservabilityTracesApi.d.ts.map +1 -1
- package/dist/widgets/aiObservability/traces/useAiObservabilityTracesApi.js +9 -2
- package/dist/widgets/aiObservability/traces/useAiObservabilityTracesApi.js.map +1 -1
- package/dist/widgets/homeWidgetUrls.d.ts +13 -0
- package/dist/widgets/homeWidgetUrls.d.ts.map +1 -0
- package/dist/widgets/homeWidgetUrls.js +71 -0
- package/dist/widgets/homeWidgetUrls.js.map +1 -0
- package/package.json +4 -4
- package/src/AdminModelForm.tsx +16 -16
- package/src/AdminModelTable.tsx +12 -0
- package/src/ConfigurationScreen.tsx +1 -2
- package/src/adminModelUrls.test.ts +31 -0
- package/src/adminModelUrls.ts +8 -0
- package/src/adminRpc.test.ts +10 -0
- package/src/adminRpc.ts +9 -0
- package/src/adminRpcSeed.tsx +65 -0
- package/src/comms/commsDashboardParams.ts +7 -1
- package/src/index.tsx +10 -0
- package/src/isolated/AiPromptEditorScreen.isolated.tsx +19 -0
- package/src/isolated/adminModelForm.ssr.isolated.tsx +170 -0
- package/src/isolated/adminModelTable.ssr.isolated.tsx +112 -0
- package/src/isolated/adminModelTable.windowedSeed.isolated.tsx +244 -0
- package/src/isolated/adminRouteSeeds.ssr.isolated.tsx +263 -0
- package/src/isolated/aiListTables.isolated.tsx +648 -0
- package/src/isolated/aiObservabilityDatasets.isolated.tsx +26 -16
- package/src/isolated/aiObservabilityEvaluators.isolated.tsx +90 -15
- package/src/isolated/aiObservabilityExperiments.isolated.tsx +322 -36
- package/src/isolated/aiObservabilityPrompts.isolated.tsx +82 -35
- package/src/isolated/aiObservabilityReview.isolated.tsx +235 -243
- package/src/isolated/aiObservabilityTraces.isolated.tsx +155 -120
- package/src/isolated/aiReviewBatchScreens.isolated.tsx +426 -0
- package/src/isolated/aiTracesTable.isolated.tsx +368 -0
- package/src/isolated/hooks.isolated.tsx +89 -0
- package/src/isolated/jobsCommsRouteSeeds.ssr.isolated.tsx +142 -0
- package/src/isolated/orgsRouteSeeds.ssr.isolated.tsx +204 -0
- package/src/useAdminModelApi.ts +2 -1
- package/src/useAdminRpc.test.tsx +538 -2
- package/src/useAdminRpc.ts +50 -19
- package/src/useConfigurationApi.ts +9 -1
- package/src/widgets/aiObservability/datasets/AiDatasetsListScreen.tsx +44 -13
- package/src/widgets/aiObservability/datasets/AiDatasetsListView.tsx +303 -103
- package/src/widgets/aiObservability/datasets/datasetTypes.test.ts +0 -13
- package/src/widgets/aiObservability/datasets/datasetTypes.ts +37 -13
- package/src/widgets/aiObservability/evaluators/AiEvaluatorDetailScreen.tsx +34 -11
- package/src/widgets/aiObservability/evaluators/AiEvaluatorNewScreen.tsx +12 -1
- package/src/widgets/aiObservability/evaluators/AiEvaluatorPanels.test.tsx +97 -9
- package/src/widgets/aiObservability/evaluators/AiEvaluatorPanels.tsx +235 -131
- package/src/widgets/aiObservability/evaluators/AiEvaluatorsListScreen.tsx +21 -2
- package/src/widgets/aiObservability/evaluators/AiEvaluatorsListView.tsx +261 -76
- package/src/widgets/aiObservability/evaluators/evaluatorTypes.test.ts +7 -0
- package/src/widgets/aiObservability/evaluators/evaluatorTypes.ts +82 -0
- package/src/widgets/aiObservability/experiments/AiExperimentNewScreen.tsx +271 -13
- package/src/widgets/aiObservability/experiments/AiExperimentNewView.test.tsx +164 -2
- package/src/widgets/aiObservability/experiments/AiExperimentNewView.tsx +400 -186
- package/src/widgets/aiObservability/experiments/AiExperimentResultsScreen.tsx +104 -45
- package/src/widgets/aiObservability/experiments/AiExperimentResultsView.test.tsx +290 -0
- package/src/widgets/aiObservability/experiments/AiExperimentResultsView.tsx +342 -97
- package/src/widgets/aiObservability/experiments/AiExperimentsListScreen.tsx +35 -4
- package/src/widgets/aiObservability/experiments/AiExperimentsListView.tsx +302 -112
- package/src/widgets/aiObservability/experiments/AiJudgeExperimentSteps.test.tsx +250 -0
- package/src/widgets/aiObservability/experiments/AiJudgeExperimentSteps.tsx +468 -0
- package/src/widgets/aiObservability/experiments/ExperimentWizard.tsx +106 -0
- package/src/widgets/aiObservability/experiments/experimentTypes.test.ts +103 -16
- package/src/widgets/aiObservability/experiments/experimentTypes.ts +250 -10
- package/src/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.test.ts +41 -0
- package/src/widgets/aiObservability/experiments/useAiObservabilityExperimentsApi.ts +54 -7
- package/src/widgets/aiObservability/prompts/AiPromptEditorScreen.tsx +26 -2
- package/src/widgets/aiObservability/prompts/AiPromptEditorView.tsx +95 -1
- package/src/widgets/aiObservability/prompts/AiPromptHubView.test.tsx +61 -45
- package/src/widgets/aiObservability/prompts/AiPromptHubView.tsx +71 -27
- package/src/widgets/aiObservability/prompts/AiPromptsListScreen.tsx +34 -15
- package/src/widgets/aiObservability/prompts/AiPromptsListView.test.tsx +104 -8
- package/src/widgets/aiObservability/prompts/AiPromptsListView.tsx +287 -117
- package/src/widgets/aiObservability/prompts/promptTypes.test.ts +63 -1
- package/src/widgets/aiObservability/prompts/promptTypes.ts +83 -22
- package/src/widgets/aiObservability/review/AiReviewBatchScreen.tsx +217 -0
- package/src/widgets/aiObservability/review/AiReviewBatchView.tsx +398 -0
- package/src/widgets/aiObservability/review/AiReviewBatchViews.test.tsx +328 -0
- package/src/widgets/aiObservability/review/AiReviewBatchesScreen.tsx +136 -0
- package/src/widgets/aiObservability/review/AiReviewBatchesView.tsx +333 -0
- package/src/widgets/aiObservability/review/AiReviewItemScreen.tsx +121 -30
- package/src/widgets/aiObservability/review/AiReviewItemView.tsx +112 -70
- package/src/widgets/aiObservability/review/AiReviewQueueScreen.tsx +29 -2
- package/src/widgets/aiObservability/review/AiReviewQueueView.tsx +183 -75
- package/src/widgets/aiObservability/review/ReviewQuestionList.tsx +128 -0
- package/src/widgets/aiObservability/review/ReviewReadOnlyPanel.tsx +21 -13
- package/src/widgets/aiObservability/review/ReviewScoreField.tsx +113 -27
- package/src/widgets/aiObservability/review/batchTypes.test.ts +207 -0
- package/src/widgets/aiObservability/review/batchTypes.ts +162 -0
- package/src/widgets/aiObservability/review/reviewShortcuts.ts +195 -0
- package/src/widgets/aiObservability/review/reviewTypes.ts +62 -2
- package/src/widgets/aiObservability/review/useAiObservabilityReviewApi.test.ts +59 -0
- package/src/widgets/aiObservability/review/useAiObservabilityReviewApi.ts +63 -1
- package/src/widgets/aiObservability/shell/AgreementMeter.tsx +103 -0
- package/src/widgets/aiObservability/shell/AiObservabilityChrome.tsx +43 -14
- package/src/widgets/aiObservability/shell/AiObservabilityScreenWidgets.tsx +6 -0
- package/src/widgets/aiObservability/shell/AiObservabilityStatusChip.test.tsx +2 -6
- package/src/widgets/aiObservability/shell/AiObservabilityStatusChip.tsx +10 -2
- package/src/widgets/aiObservability/shell/EvalPipelineOverview.tsx +68 -0
- package/src/widgets/aiObservability/shell/EvalStepBanner.tsx +24 -0
- package/src/widgets/aiObservability/shell/EvalStepper.test.tsx +80 -0
- package/src/widgets/aiObservability/shell/EvalStepper.tsx +126 -0
- package/src/widgets/aiObservability/shell/ObservabilityPageHeader.tsx +50 -0
- package/src/widgets/aiObservability/shell/ObservabilitySharedUi.test.tsx +140 -0
- package/src/widgets/aiObservability/shell/ObservabilityStates.tsx +81 -0
- package/src/widgets/aiObservability/shell/ObservabilityStatusBadge.tsx +29 -0
- package/src/widgets/aiObservability/shell/aiObservabilityNav.ts +16 -8
- package/src/widgets/aiObservability/shell/clientTable.test.ts +176 -0
- package/src/widgets/aiObservability/shell/clientTable.ts +251 -0
- package/src/widgets/aiObservability/shell/evalPipeline.ts +74 -0
- package/src/widgets/aiObservability/shell/observabilityStatus.test.ts +73 -0
- package/src/widgets/aiObservability/shell/observabilityStatus.ts +100 -0
- package/src/widgets/aiObservability/traces/AiTracesListScreen.tsx +41 -13
- package/src/widgets/aiObservability/traces/AiTracesListView.tsx +423 -300
- package/src/widgets/aiObservability/traces/traceTypes.test.ts +52 -1
- package/src/widgets/aiObservability/traces/traceTypes.ts +117 -2
- package/src/widgets/aiObservability/traces/useAiObservabilityTracesApi.test.ts +19 -1
- package/src/widgets/aiObservability/traces/useAiObservabilityTracesApi.ts +10 -2
- package/src/widgets/homeWidgetUrls.test.ts +201 -0
- package/src/widgets/homeWidgetUrls.ts +87 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ObservabilityTone } from "./observabilityStatus";
|
|
3
|
+
export interface MeterBarProps {
|
|
4
|
+
/** 0–1 fraction of the bar to fill. */
|
|
5
|
+
fraction?: number;
|
|
6
|
+
testID?: string;
|
|
7
|
+
tone?: ObservabilityTone;
|
|
8
|
+
}
|
|
9
|
+
/** Thin rounded bar. Brand blue (`info`) for progress, status tones for outcomes. */
|
|
10
|
+
export declare const MeterBar: React.FC<MeterBarProps>;
|
|
11
|
+
export interface ProgressMeterProps {
|
|
12
|
+
done: number;
|
|
13
|
+
testID?: string;
|
|
14
|
+
total: number;
|
|
15
|
+
}
|
|
16
|
+
/** "8 of 10" with a progress bar, for answered items and running experiments. */
|
|
17
|
+
export declare const ProgressMeter: React.FC<ProgressMeterProps>;
|
|
18
|
+
export interface AgreementMeterProps {
|
|
19
|
+
/** Hide the bar for compact cells; the percent and badge stay. */
|
|
20
|
+
compact?: boolean;
|
|
21
|
+
/** Agreement with people, 0–1. Undefined means nothing to compare yet. */
|
|
22
|
+
rate?: number;
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* How often a judge agrees with people: percent, bar, and Matches / Close / Off badge.
|
|
27
|
+
* Cut-offs come from AGREEMENT_THRESHOLDS so every screen agrees.
|
|
28
|
+
*/
|
|
29
|
+
export declare const AgreementMeter: React.FC<AgreementMeterProps>;
|
|
30
|
+
//# sourceMappingURL=AgreementMeter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgreementMeter.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AgreementMeter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAU/B,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,qFAAqF;AACrF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmB5C,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAQtD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0BxD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Box, Text } from "@terreno/ui";
|
|
3
|
+
import { AGREEMENT_LEVEL_STYLE, formatRate, getAgreementLevel, toMeterWidth, } from "./observabilityStatus";
|
|
4
|
+
const TONE_SURFACE = {
|
|
5
|
+
error: "error",
|
|
6
|
+
info: "primary",
|
|
7
|
+
neutral: "neutralLight",
|
|
8
|
+
success: "success",
|
|
9
|
+
warning: "warning",
|
|
10
|
+
};
|
|
11
|
+
/** Thin rounded bar. Brand blue (`info`) for progress, status tones for outcomes. */
|
|
12
|
+
export const MeterBar = ({ fraction, testID, tone = "info" }) => {
|
|
13
|
+
return (_jsx(Box, { color: "neutralExtraLight", flex: "grow", height: 6, overflow: "hidden", rounding: "3xl", testID: testID, children: _jsx(Box, { color: TONE_SURFACE[tone], height: 6, rounding: "3xl", testID: testID ? `${testID}-fill` : undefined, width: toMeterWidth(fraction) }) }));
|
|
14
|
+
};
|
|
15
|
+
/** "8 of 10" with a progress bar, for answered items and running experiments. */
|
|
16
|
+
export const ProgressMeter = ({ done, testID, total }) => {
|
|
17
|
+
const fraction = total > 0 ? done / total : 0;
|
|
18
|
+
return (_jsxs(Box, { gap: 1, testID: testID, children: [_jsx(Text, { bold: true, size: "sm", children: `${done} of ${total}` }), _jsx(MeterBar, { fraction: fraction, testID: testID ? `${testID}-bar` : undefined })] }));
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* How often a judge agrees with people: percent, bar, and Matches / Close / Off badge.
|
|
22
|
+
* Cut-offs come from AGREEMENT_THRESHOLDS so every screen agrees.
|
|
23
|
+
*/
|
|
24
|
+
export const AgreementMeter = ({ compact, rate, testID }) => {
|
|
25
|
+
const level = getAgreementLevel(rate);
|
|
26
|
+
const style = AGREEMENT_LEVEL_STYLE[level];
|
|
27
|
+
if (level === "none") {
|
|
28
|
+
return (_jsx(Text, { color: "secondaryLight", size: "sm", testID: testID, children: style.label }));
|
|
29
|
+
}
|
|
30
|
+
return (_jsxs(Box, { alignItems: "center", direction: "row", gap: 2, testID: testID, children: [_jsx(Text, { bold: true, testID: testID ? `${testID}-percent` : undefined, children: formatRate(rate) }), compact ? null : (_jsx(MeterBar, { fraction: rate, testID: testID ? `${testID}-bar` : undefined, tone: style.tone })), _jsx(Badge, { secondary: true, status: style.tone, testID: testID ? `${testID}-badge` : undefined, value: style.label })] }));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=AgreementMeter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgreementMeter.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AgreementMeter.tsx"],"names":[],"mappings":"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"}
|
|
@@ -2,11 +2,21 @@ import React from "react";
|
|
|
2
2
|
import type { AdminScreenWidgetProps } from "../../../types";
|
|
3
3
|
import { type ObservabilityStatusPayload } from "./aiObservabilityNav";
|
|
4
4
|
export interface AiObservabilityChromeProps extends AdminScreenWidgetProps {
|
|
5
|
+
/** Header buttons on the right. At most one primary. */
|
|
6
|
+
actions?: React.ReactNode;
|
|
5
7
|
backHref?: string;
|
|
6
8
|
children?: React.ReactNode;
|
|
9
|
+
/** One sentence on what the screen is for. */
|
|
10
|
+
description?: string;
|
|
7
11
|
error?: boolean;
|
|
12
|
+
/** Hide the page header when a screen renders its own loading or missing-id state. */
|
|
13
|
+
hideHeader?: boolean;
|
|
8
14
|
isLoading?: boolean;
|
|
15
|
+
/** Badges and timestamps under the title on detail screens. */
|
|
16
|
+
meta?: React.ReactNode;
|
|
9
17
|
status?: ObservabilityStatusPayload;
|
|
18
|
+
/** Overrides the screen's default title, e.g. with a record name. */
|
|
19
|
+
title?: string;
|
|
10
20
|
}
|
|
11
21
|
export declare const AiObservabilityChrome: React.FC<AiObservabilityChromeProps>;
|
|
12
22
|
//# sourceMappingURL=AiObservabilityChrome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityChrome.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityChrome.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"AiObservabilityChrome.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityChrome.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,wDAAwD;IACxD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAwDtE,CAAC"}
|
|
@@ -4,14 +4,16 @@ import { AdminBreadcrumbs } from "../../../AdminBreadcrumbs";
|
|
|
4
4
|
import { AdminScreenPage } from "../../../AdminScreenPage";
|
|
5
5
|
import { AiObservabilityStatusChip } from "./AiObservabilityStatusChip";
|
|
6
6
|
import { AI_OBSERVABILITY_SCREENS, buildAiObservabilityBreadcrumbs, } from "./aiObservabilityNav";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { ObservabilityPageHeader } from "./ObservabilityPageHeader";
|
|
8
|
+
export const AiObservabilityChrome = ({ actions, backHref, children, description, error, hideHeader, isLoading, meta: headerMeta, routeBase, screenName, status, title, }) => {
|
|
9
|
+
const screenMeta = AI_OBSERVABILITY_SCREENS[screenName];
|
|
9
10
|
const resolvedRouteBase = routeBase ?? "";
|
|
10
11
|
const breadcrumbs = buildAiObservabilityBreadcrumbs({
|
|
11
12
|
routeBase: resolvedRouteBase,
|
|
12
13
|
screenName,
|
|
13
14
|
});
|
|
14
|
-
const localOffReview = (
|
|
15
|
-
|
|
15
|
+
const localOffReview = screenName.startsWith("ai-review") && status && !status.localOn;
|
|
16
|
+
const pageTitle = title ?? screenMeta?.title ?? screenName;
|
|
17
|
+
return (_jsx(AdminScreenPage, { backButton: false, backHref: backHref ?? resolvedRouteBase, maxWidth: "100%", scroll: true, children: _jsxs(Box, { gap: 5, maxWidth: 1240, width: "100%", children: [_jsxs(Box, { alignItems: "center", direction: "row", gap: 3, justifyContent: "between", wrap: true, children: [_jsx(AdminBreadcrumbs, { segments: breadcrumbs }), _jsx(AiObservabilityStatusChip, { error: error, isLoading: isLoading, status: status })] }), hideHeader ? null : (_jsx(ObservabilityPageHeader, { actions: localOffReview ? undefined : actions, description: description, meta: localOffReview ? undefined : headerMeta, title: pageTitle })), localOffReview ? (_jsx(Box, { testID: "ai-observability-review-hidden", children: _jsx(Text, { color: "secondaryLight", children: "Review is hidden because the local observability plugin is off." }) })) : (children)] }) }));
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=AiObservabilityChrome.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityChrome.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityChrome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,wBAAwB,EACxB,+BAA+B,GAEhC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"AiObservabilityChrome.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityChrome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,wBAAwB,EACxB,+BAA+B,GAEhC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAoBlE,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,UAAU,EACV,SAAS,EACT,IAAI,EAAE,UAAU,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,GACN,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,iBAAiB,GAAG,SAAS,IAAI,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,+BAA+B,CAAC;QAClD,SAAS,EAAE,iBAAiB;QAC5B,UAAU;KACX,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAEvF,MAAM,SAAS,GAAG,KAAK,IAAI,UAAU,EAAE,KAAK,IAAI,UAAU,CAAC;IAE3D,OAAO,CACL,KAAC,eAAe,IACd,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,QAAQ,IAAI,iBAAiB,EACvC,QAAQ,EAAC,MAAM,EACf,MAAM,kBAEN,MAAC,GAAG,IAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,aACvC,MAAC,GAAG,IAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,CAAC,EAAE,cAAc,EAAC,SAAS,EAAC,IAAI,mBAC5E,KAAC,gBAAgB,IAAC,QAAQ,EAAE,WAAW,GAAI,EAC3C,KAAC,yBAAyB,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,IAC7E,EACL,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,KAAC,uBAAuB,IACtB,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAC7C,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAC7C,KAAK,EAAE,SAAS,GAChB,CACH,EACA,cAAc,CAAC,CAAC,CAAC,CAChB,KAAC,GAAG,IAAC,MAAM,EAAC,gCAAgC,YAC1C,KAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,gFAErB,GACH,CACP,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,IACG,GACU,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ScreenWidgetComponent } from "../../../types";
|
|
2
2
|
import { AiPromptEditorScreenWidget } from "../prompts/AiPromptEditorScreen";
|
|
3
3
|
import { AiPromptsScreenWidget } from "../prompts/AiPromptsListScreen";
|
|
4
|
+
import { AiReviewBatchesScreenWidget } from "../review/AiReviewBatchesScreen";
|
|
5
|
+
import { AiReviewBatchScreenWidget } from "../review/AiReviewBatchScreen";
|
|
4
6
|
import { AiReviewItemScreenWidget } from "../review/AiReviewItemScreen";
|
|
5
7
|
import { AiReviewScreenWidget } from "../review/AiReviewQueueScreen";
|
|
6
8
|
import { AiTraceDetailScreenWidget } from "../traces/AiTraceDetailScreen";
|
|
7
9
|
import { AiTracesScreenWidget } from "../traces/AiTracesListScreen";
|
|
8
|
-
export { AiPromptEditorScreenWidget, AiPromptsScreenWidget, AiReviewItemScreenWidget, AiReviewScreenWidget, AiTraceDetailScreenWidget, AiTracesScreenWidget, };
|
|
10
|
+
export { AiPromptEditorScreenWidget, AiPromptsScreenWidget, AiReviewBatchesScreenWidget, AiReviewBatchScreenWidget, AiReviewItemScreenWidget, AiReviewScreenWidget, AiTraceDetailScreenWidget, AiTracesScreenWidget, };
|
|
9
11
|
export declare const AI_OBSERVABILITY_WIDGETS: Record<string, ScreenWidgetComponent>;
|
|
10
12
|
//# sourceMappingURL=AiObservabilityScreenWidgets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityScreenWidgets.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityScreenWidgets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AAS1D,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AAElE,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"AiObservabilityScreenWidgets.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityScreenWidgets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AAS1D,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AAElE,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAiB1E,CAAC"}
|
|
@@ -8,11 +8,13 @@ import { AiExperimentResultsScreenWidget } from "../experiments/AiExperimentResu
|
|
|
8
8
|
import { AiExperimentsScreenWidget } from "../experiments/AiExperimentsListScreen";
|
|
9
9
|
import { AiPromptEditorScreenWidget } from "../prompts/AiPromptEditorScreen";
|
|
10
10
|
import { AiPromptsScreenWidget } from "../prompts/AiPromptsListScreen";
|
|
11
|
+
import { AiReviewBatchesScreenWidget } from "../review/AiReviewBatchesScreen";
|
|
12
|
+
import { AiReviewBatchScreenWidget } from "../review/AiReviewBatchScreen";
|
|
11
13
|
import { AiReviewItemScreenWidget } from "../review/AiReviewItemScreen";
|
|
12
14
|
import { AiReviewScreenWidget } from "../review/AiReviewQueueScreen";
|
|
13
15
|
import { AiTraceDetailScreenWidget } from "../traces/AiTraceDetailScreen";
|
|
14
16
|
import { AiTracesScreenWidget } from "../traces/AiTracesListScreen";
|
|
15
|
-
export { AiPromptEditorScreenWidget, AiPromptsScreenWidget, AiReviewItemScreenWidget, AiReviewScreenWidget, AiTraceDetailScreenWidget, AiTracesScreenWidget, };
|
|
17
|
+
export { AiPromptEditorScreenWidget, AiPromptsScreenWidget, AiReviewBatchesScreenWidget, AiReviewBatchScreenWidget, AiReviewItemScreenWidget, AiReviewScreenWidget, AiTraceDetailScreenWidget, AiTracesScreenWidget, };
|
|
16
18
|
export const AI_OBSERVABILITY_WIDGETS = {
|
|
17
19
|
"ai-dataset-detail": AiDatasetDetailScreenWidget,
|
|
18
20
|
"ai-datasets": AiDatasetsScreenWidget,
|
|
@@ -25,6 +27,8 @@ export const AI_OBSERVABILITY_WIDGETS = {
|
|
|
25
27
|
"ai-prompt-editor": AiPromptEditorScreenWidget,
|
|
26
28
|
"ai-prompts": AiPromptsScreenWidget,
|
|
27
29
|
"ai-review": AiReviewScreenWidget,
|
|
30
|
+
"ai-review-batch": AiReviewBatchScreenWidget,
|
|
31
|
+
"ai-review-batches": AiReviewBatchesScreenWidget,
|
|
28
32
|
"ai-review-item": AiReviewItemScreenWidget,
|
|
29
33
|
"ai-trace-detail": AiTraceDetailScreenWidget,
|
|
30
34
|
"ai-traces": AiTracesScreenWidget,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityScreenWidgets.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityScreenWidgets.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAC,sBAAsB,EAAC,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,6BAA6B,EAAC,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAC,0BAA0B,EAAC,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,2BAA2B,EAAC,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAC,+BAA+B,EAAC,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAC,yBAAyB,EAAC,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AAElE,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAA0C;IAC7E,mBAAmB,EAAE,2BAA2B;IAChD,aAAa,EAAE,sBAAsB;IACrC,qBAAqB,EAAE,6BAA6B;IACpD,kBAAkB,EAAE,0BAA0B;IAC9C,eAAe,EAAE,wBAAwB;IACzC,mBAAmB,EAAE,2BAA2B;IAChD,uBAAuB,EAAE,+BAA+B;IACxD,gBAAgB,EAAE,yBAAyB;IAC3C,kBAAkB,EAAE,0BAA0B;IAC9C,YAAY,EAAE,qBAAqB;IACnC,WAAW,EAAE,oBAAoB;IACjC,gBAAgB,EAAE,wBAAwB;IAC1C,iBAAiB,EAAE,yBAAyB;IAC5C,WAAW,EAAE,oBAAoB;CAClC,CAAC"}
|
|
1
|
+
{"version":3,"file":"AiObservabilityScreenWidgets.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityScreenWidgets.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAC,sBAAsB,EAAC,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,6BAA6B,EAAC,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAC,0BAA0B,EAAC,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,2BAA2B,EAAC,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAC,+BAA+B,EAAC,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAC,yBAAyB,EAAC,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AAElE,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAA0C;IAC7E,mBAAmB,EAAE,2BAA2B;IAChD,aAAa,EAAE,sBAAsB;IACrC,qBAAqB,EAAE,6BAA6B;IACpD,kBAAkB,EAAE,0BAA0B;IAC9C,eAAe,EAAE,wBAAwB;IACzC,mBAAmB,EAAE,2BAA2B;IAChD,uBAAuB,EAAE,+BAA+B;IACxD,gBAAgB,EAAE,yBAAyB;IAC3C,kBAAkB,EAAE,0BAA0B;IAC9C,YAAY,EAAE,qBAAqB;IACnC,WAAW,EAAE,oBAAoB;IACjC,iBAAiB,EAAE,yBAAyB;IAC5C,mBAAmB,EAAE,2BAA2B;IAChD,gBAAgB,EAAE,wBAAwB;IAC1C,iBAAiB,EAAE,yBAAyB;IAC5C,WAAW,EAAE,oBAAoB;CAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityStatusChip.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityStatusChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,0BAA0B,EAEhC,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;
|
|
1
|
+
{"version":3,"file":"AiObservabilityStatusChip.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityStatusChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,0BAA0B,EAEhC,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAsDD,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAS9E,CAAC"}
|
|
@@ -4,12 +4,12 @@ import { formatObservabilityStatusChip, unwrapObservabilityStatus, } from "./aiO
|
|
|
4
4
|
import { OBSERVABILITY_STATUS_URL, useObservabilityQuery } from "./observabilityRequest";
|
|
5
5
|
const StatusChipView = ({ error, isLoading, status }) => {
|
|
6
6
|
if (isLoading) {
|
|
7
|
-
return (_jsx(Badge, { status: "
|
|
7
|
+
return (_jsx(Badge, { secondary: true, status: "neutral", testID: "ai-observability-status-chip", value: "Checking observability\u2026" }));
|
|
8
8
|
}
|
|
9
9
|
if (error || !status) {
|
|
10
|
-
return (_jsx(Badge, { status: "error", testID: "ai-observability-status-chip", value: "Observability unavailable" }));
|
|
10
|
+
return (_jsx(Badge, { secondary: true, status: "error", testID: "ai-observability-status-chip", value: "Observability unavailable" }));
|
|
11
11
|
}
|
|
12
|
-
return (_jsx(Badge, { status: status.localOn ? "success" : "
|
|
12
|
+
return (_jsx(Badge, { iconName: status.localOn ? "circle-check" : "circle-minus", secondary: true, status: status.localOn ? "success" : "neutral", testID: "ai-observability-status-chip", value: formatObservabilityStatusChip(status) }));
|
|
13
13
|
};
|
|
14
14
|
/** Reads plugin status through the host-bound admin client when the screen has none. */
|
|
15
15
|
const FetchedStatusChip = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiObservabilityStatusChip.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityStatusChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EACL,6BAA6B,EAE7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,wBAAwB,EAAE,qBAAqB,EAAC,MAAM,wBAAwB,CAAC;AAQvF,MAAM,cAAc,GAIf,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,EAAE,EAAE;IAClC,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,KAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"AiObservabilityStatusChip.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/AiObservabilityStatusChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EACL,6BAA6B,EAE7B,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,wBAAwB,EAAE,qBAAqB,EAAC,MAAM,wBAAwB,CAAC;AAQvF,MAAM,cAAc,GAIf,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,EAAE,EAAE;IAClC,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,KAAC,KAAK,IACJ,SAAS,QACT,MAAM,EAAC,SAAS,EAChB,MAAM,EAAC,8BAA8B,EACrC,KAAK,EAAC,8BAAyB,GAC/B,CACH,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,CACL,KAAC,KAAK,IACJ,SAAS,QACT,MAAM,EAAC,OAAO,EACd,MAAM,EAAC,8BAA8B,EACrC,KAAK,EAAC,2BAA2B,GACjC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,KAAK,IACJ,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,EAC1D,SAAS,QACT,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAC9C,MAAM,EAAC,8BAA8B,EACrC,KAAK,EAAE,6BAA6B,CAAC,MAAM,CAAC,GAC5C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,wFAAwF;AACxF,MAAM,iBAAiB,GAAa,GAAG,EAAE;IACvC,MAAM,KAAK,GAAG,qBAAqB,CAEjC,EAAC,GAAG,EAAE,wBAAwB,EAAC,CAAC,CAAC;IACnC,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,KAAK,CAAC,OAAO,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,MAAM,EAAE,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,GAC7C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAA6C,CAAC,EAClF,KAAK,EACL,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,IAAI,MAAM,IAAI,SAAS,IAAI,KAAK,EAAE,CAAC;QACjC,OAAO,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAChF,CAAC;IACD,OAAO,KAAC,iBAAiB,KAAG,CAAC;AAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type EvalPipelineStepNumber } from "./evalPipeline";
|
|
3
|
+
export interface EvalPipelineOverviewProps {
|
|
4
|
+
/** Label of the card's call to action, such as "Start an experiment". */
|
|
5
|
+
ctaText?: string;
|
|
6
|
+
/** Steps to highlight as the ones this screen is about; earlier steps show as done. */
|
|
7
|
+
currentSteps?: EvalPipelineStepNumber[];
|
|
8
|
+
onStart?: () => void;
|
|
9
|
+
startTestID?: string;
|
|
10
|
+
testID?: string;
|
|
11
|
+
}
|
|
12
|
+
/** The four-step eval plan as a compact stepper, with the current steps highlighted. */
|
|
13
|
+
export declare const EvalPipelineOverview: React.FC<EvalPipelineOverviewProps>;
|
|
14
|
+
//# sourceMappingURL=EvalPipelineOverview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalPipelineOverview.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalPipelineOverview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsB,KAAK,sBAAsB,EAAkB,MAAM,gBAAgB,CAAC;AAEjG,MAAM,WAAW,yBAAyB;IACxC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uFAAuF;IACvF,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD,wFAAwF;AACxF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAsCpE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Card, Heading, Text } from "@terreno/ui";
|
|
3
|
+
import { EvalStepper } from "./EvalStepper";
|
|
4
|
+
import { EVAL_PIPELINE_STEPS, JUDGE_ONCE_NOTE } from "./evalPipeline";
|
|
5
|
+
const stepState = (stepNumber, currentSteps) => {
|
|
6
|
+
if (currentSteps.includes(stepNumber)) {
|
|
7
|
+
return "now";
|
|
8
|
+
}
|
|
9
|
+
if (currentSteps.length > 0 && stepNumber < Math.min(...currentSteps)) {
|
|
10
|
+
return "done";
|
|
11
|
+
}
|
|
12
|
+
return "later";
|
|
13
|
+
};
|
|
14
|
+
/** The four-step eval plan as a compact stepper, with the current steps highlighted. */
|
|
15
|
+
export const EvalPipelineOverview = ({ ctaText, currentSteps = [], onStart, startTestID, testID = "ai-eval-pipeline-overview", }) => {
|
|
16
|
+
return (_jsxs(Card, { gap: 3, padding: 4, testID: testID, children: [_jsx(Heading, { size: "sm", children: "Eval plan" }), _jsx(EvalStepper, { steps: EVAL_PIPELINE_STEPS.map((step) => {
|
|
17
|
+
const state = stepState(step.number, currentSteps);
|
|
18
|
+
return {
|
|
19
|
+
detail: step.summary,
|
|
20
|
+
state,
|
|
21
|
+
testID: `ai-eval-pipeline-step-${step.number}${state === "now" ? "-current" : ""}`,
|
|
22
|
+
title: step.title,
|
|
23
|
+
};
|
|
24
|
+
}), testID: `${testID}-stepper` }), _jsx(Text, { color: "secondaryLight", size: "sm", testID: "ai-eval-pipeline-judge-once", children: JUDGE_ONCE_NOTE }), onStart && ctaText ? (_jsx(Box, { direction: "row", children: _jsx(Button, { iconName: "flask", onClick: onStart, testID: startTestID, text: ctaText, variant: "secondary" }) })) : null] }));
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=EvalPipelineOverview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalPipelineOverview.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalPipelineOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAC,WAAW,EAAqB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,mBAAmB,EAA+B,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAYjG,MAAM,SAAS,GAAG,CAChB,UAAkC,EAClC,YAAsC,EACvB,EAAE;IACjB,IAAI,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,EAAE,CAAC;QACtE,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,wFAAwF;AACxF,MAAM,CAAC,MAAM,oBAAoB,GAAwC,CAAC,EACxE,OAAO,EACP,YAAY,GAAG,EAAE,EACjB,OAAO,EACP,WAAW,EACX,MAAM,GAAG,2BAA2B,GACrC,EAAE,EAAE;IACH,OAAO,CACL,MAAC,IAAI,IAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,aACtC,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,0BAAoB,EACtC,KAAC,WAAW,IACV,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACtC,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;oBACnD,OAAO;wBACL,MAAM,EAAE,IAAI,CAAC,OAAO;wBACpB,KAAK;wBACL,MAAM,EAAE,yBAAyB,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE;wBAClF,KAAK,EAAE,IAAI,CAAC,KAAK;qBAClB,CAAC;gBACJ,CAAC,CAAC,EACF,MAAM,EAAE,GAAG,MAAM,UAAU,GAC3B,EACF,KAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,6BAA6B,YACxE,eAAe,GACX,EACN,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CACpB,KAAC,GAAG,IAAC,SAAS,EAAC,KAAK,YAClB,KAAC,MAAM,IACL,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,OAAO,EACb,OAAO,EAAC,WAAW,GACnB,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACH,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type EvalPipelineStepNumber } from "./evalPipeline";
|
|
3
|
+
export interface EvalStepBannerProps {
|
|
4
|
+
activity: string;
|
|
5
|
+
detail: string;
|
|
6
|
+
step: EvalPipelineStepNumber;
|
|
7
|
+
testID?: string;
|
|
8
|
+
}
|
|
9
|
+
/** One-line reminder of where this screen sits in the four-step eval plan. */
|
|
10
|
+
export declare const EvalStepBanner: React.FC<EvalStepBannerProps>;
|
|
11
|
+
//# sourceMappingURL=EvalStepBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalStepBanner.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalStepBanner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,KAAK,sBAAsB,EAAqB,MAAM,gBAAgB,CAAC;AAE/E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,sBAAsB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,8EAA8E;AAC9E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAWxD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Banner, Box } from "@terreno/ui";
|
|
3
|
+
import { formatStepReminder } from "./evalPipeline";
|
|
4
|
+
/** One-line reminder of where this screen sits in the four-step eval plan. */
|
|
5
|
+
export const EvalStepBanner = ({ activity, detail, step, testID = "ai-eval-step-banner", }) => {
|
|
6
|
+
return (_jsx(Box, { testID: testID, children: _jsx(Banner, { hasIcon: true, status: "info", text: formatStepReminder({ activity, detail, step }) }) }));
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=EvalStepBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalStepBanner.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalStepBanner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,GAAG,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EAA8B,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAS/E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,MAAM,GAAG,qBAAqB,GAC/B,EAAE,EAAE;IACH,OAAO,CACL,KAAC,GAAG,IAAC,MAAM,EAAE,MAAM,YACjB,KAAC,MAAM,IAAC,OAAO,QAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAE,kBAAkB,CAAC,EAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,GAAI,GAChF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type EvalStepState = "done" | "now" | "later";
|
|
3
|
+
export interface EvalStepperStep {
|
|
4
|
+
/** One short line under the title. */
|
|
5
|
+
detail?: string;
|
|
6
|
+
/** Makes the step pressable; leave unset for steps that cannot be opened yet. */
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
state: EvalStepState;
|
|
9
|
+
/** Overrides the default `${testID}-${number}` id for this step. */
|
|
10
|
+
testID?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
13
|
+
export interface EvalStepperProps {
|
|
14
|
+
steps: EvalStepperStep[];
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Compact numbered stepper: done steps show a check, the current step is filled, later steps are
|
|
19
|
+
* outlined. Used for the four-step eval plan and for wizard steps.
|
|
20
|
+
*/
|
|
21
|
+
export declare const EvalStepper: React.FC<EvalStepperProps>;
|
|
22
|
+
//# sourceMappingURL=EvalStepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalStepper.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalStepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsFD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgBlD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Icon, Text } from "@terreno/ui";
|
|
3
|
+
const CIRCLE_SIZE = 24;
|
|
4
|
+
const StepCircle = ({ number, state }) => {
|
|
5
|
+
if (state === "done") {
|
|
6
|
+
return (_jsx(Box, { alignItems: "center", color: "success", height: CIRCLE_SIZE, justifyContent: "center", rounding: "circle", width: CIRCLE_SIZE, children: _jsx(Icon, { color: "inverted", iconName: "check", size: "sm" }) }));
|
|
7
|
+
}
|
|
8
|
+
const isNow = state === "now";
|
|
9
|
+
return (_jsx(Box, { alignItems: "center", border: isNow ? undefined : "default", color: isNow ? "primary" : "base", height: CIRCLE_SIZE, justifyContent: "center", rounding: "circle", width: CIRCLE_SIZE, children: _jsx(Text, { bold: true, color: isNow ? "inverted" : "secondaryLight", size: "sm", children: String(number) }) }));
|
|
10
|
+
};
|
|
11
|
+
const StepItem = ({ number, step, testID, }) => {
|
|
12
|
+
const content = (_jsxs(Box, { alignItems: "start", direction: "row", gap: 2, testID: testID, children: [_jsx(StepCircle, { number: number, state: step.state }), _jsxs(Box, { flex: "shrink", gap: 1, paddingY: 0, children: [_jsx(Text, { bold: step.state === "now", color: step.state === "later" ? "secondaryLight" : "primary", children: step.title }), step.detail ? (_jsx(Text, { color: "secondaryLight", size: "sm", children: step.detail })) : null] })] }));
|
|
13
|
+
if (!step.onPress) {
|
|
14
|
+
return (_jsx(Box, { accessibilityLabel: `Step ${number}: ${step.title}`, flex: "grow", minWidth: 160, width: 180, children: content }));
|
|
15
|
+
}
|
|
16
|
+
return (_jsx(Box, { accessibilityHint: `Open step ${number}`, accessibilityLabel: `Step ${number}: ${step.title}`, flex: "grow", minWidth: 160, onClick: step.onPress, width: 180, children: content }));
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Compact numbered stepper: done steps show a check, the current step is filled, later steps are
|
|
20
|
+
* outlined. Used for the four-step eval plan and for wizard steps.
|
|
21
|
+
*/
|
|
22
|
+
export const EvalStepper = ({ steps, testID = "ai-eval-stepper" }) => {
|
|
23
|
+
return (_jsx(Box, { direction: "row", gap: 4, testID: testID, wrap: true, children: steps.map((step, index) => {
|
|
24
|
+
const number = index + 1;
|
|
25
|
+
return (_jsx(StepItem, { number: number, step: step, testID: step.testID ?? `${testID}-${number}` }, step.title));
|
|
26
|
+
}) }));
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=EvalStepper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalStepper.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/EvalStepper.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ObservabilityPageHeaderProps {
|
|
3
|
+
/** Buttons on the right. At most one primary; the rest outline. */
|
|
4
|
+
actions?: React.ReactNode;
|
|
5
|
+
/** One sentence on what the screen is for. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Badges and timestamps under the title on detail screens. */
|
|
8
|
+
meta?: React.ReactNode;
|
|
9
|
+
testID?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The one page header for AI observability: a left-aligned 32px title, one sentence of
|
|
14
|
+
* purpose, optional meta, and actions on the right that wrap under the title on phones.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ObservabilityPageHeader: React.FC<ObservabilityPageHeaderProps>;
|
|
17
|
+
//# sourceMappingURL=ObservabilityPageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityPageHeader.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityPageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,4BAA4B;IAC3C,mEAAmE;IACnE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA+B1E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Heading, Text } from "@terreno/ui";
|
|
3
|
+
/**
|
|
4
|
+
* The one page header for AI observability: a left-aligned 32px title, one sentence of
|
|
5
|
+
* purpose, optional meta, and actions on the right that wrap under the title on phones.
|
|
6
|
+
*/
|
|
7
|
+
export const ObservabilityPageHeader = ({ actions, description, meta, testID = "observability-page-header", title, }) => {
|
|
8
|
+
return (_jsxs(Box, { alignItems: "end", direction: "row", gap: 4, justifyContent: "between", testID: testID, wrap: true, children: [_jsxs(Box, { flex: "grow", gap: 1, minWidth: 280, children: [_jsx(Heading, { size: "xl", testID: `${testID}-title`, children: title }), description ? (_jsx(Text, { color: "secondaryLight", testID: `${testID}-description`, children: description })) : null, meta ? (_jsx(Box, { alignItems: "center", direction: "row", gap: 2, marginTop: 1, wrap: true, children: meta })) : null] }), actions ? (_jsx(Box, { alignItems: "center", direction: "row", gap: 2, testID: `${testID}-actions`, wrap: true, children: actions })) : null] }));
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ObservabilityPageHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityPageHeader.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityPageHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAc/C;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA2C,CAAC,EAC9E,OAAO,EACP,WAAW,EACX,IAAI,EACJ,MAAM,GAAG,2BAA2B,EACpC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,MAAC,GAAG,IAAC,UAAU,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,CAAC,EAAE,cAAc,EAAC,SAAS,EAAC,MAAM,EAAE,MAAM,EAAE,IAAI,mBACzF,MAAC,GAAG,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,aACpC,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAE,GAAG,MAAM,QAAQ,YACzC,KAAK,GACE,EACT,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,EAAC,MAAM,EAAE,GAAG,MAAM,cAAc,YACzD,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,kBAChE,IAAI,GACD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,GAAG,IAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,UAAU,EAAE,IAAI,kBAC/E,OAAO,GACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type IconName } from "@terreno/ui";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface ObservabilityEmptyStateProps {
|
|
4
|
+
actionIconName?: IconName;
|
|
5
|
+
/** Button label that says what happens, e.g. "Go to traces". */
|
|
6
|
+
actionText?: string;
|
|
7
|
+
/** What to do next, in one sentence. */
|
|
8
|
+
description: string;
|
|
9
|
+
iconName: IconName;
|
|
10
|
+
onAction?: () => void;
|
|
11
|
+
testID?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
/** Empty list or panel: icon, short heading, the next step, and a way to take it. */
|
|
15
|
+
export declare const ObservabilityEmptyState: React.FC<ObservabilityEmptyStateProps>;
|
|
16
|
+
export interface ObservabilityErrorStateProps {
|
|
17
|
+
onRetry?: () => void;
|
|
18
|
+
testID?: string;
|
|
19
|
+
/** What failed and what to do, e.g. "Could not load experiments." */
|
|
20
|
+
text: string;
|
|
21
|
+
}
|
|
22
|
+
/** Load failure shown in place of the content it replaces, with an outline Try again. */
|
|
23
|
+
export declare const ObservabilityErrorState: React.FC<ObservabilityErrorStateProps>;
|
|
24
|
+
//# sourceMappingURL=ObservabilityStates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityStates.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityStates.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAO,MAAM,aAAa,CAAC;AACpF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,4BAA4B;IAC3C,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qFAAqF;AACrF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgC1E,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAsB1E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Banner, Box, Button, Heading, Icon, Text } from "@terreno/ui";
|
|
3
|
+
/** Empty list or panel: icon, short heading, the next step, and a way to take it. */
|
|
4
|
+
export const ObservabilityEmptyState = ({ actionIconName, actionText, description, iconName, onAction, testID = "observability-empty-state", title, }) => {
|
|
5
|
+
return (_jsxs(Box, { alignItems: "center", gap: 2, paddingX: 5, paddingY: 7, testID: testID, children: [_jsx(Icon, { color: "extraLight", iconName: iconName, size: "lg" }), _jsx(Heading, { align: "center", size: "sm", children: title }), _jsx(Text, { align: "center", color: "secondaryLight", size: "sm", children: description }), actionText && onAction ? (_jsx(Box, { marginTop: 1, children: _jsx(Button, { iconName: actionIconName, onClick: onAction, size: "sm", testID: `${testID}-action`, text: actionText, variant: "outline" }) })) : null] }));
|
|
6
|
+
};
|
|
7
|
+
/** Load failure shown in place of the content it replaces, with an outline Try again. */
|
|
8
|
+
export const ObservabilityErrorState = ({ onRetry, testID = "observability-error-state", text, }) => {
|
|
9
|
+
return (_jsxs(Box, { gap: 2, testID: testID, children: [_jsx(Banner, { hasIcon: true, status: "alert", text: text }), onRetry ? (_jsx(Box, { alignItems: "start", children: _jsx(Button, { iconName: "rotate", onClick: onRetry, size: "sm", testID: `${testID}-retry`, text: "Try again", variant: "outline" }) })) : null] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=ObservabilityStates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityStates.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityStates.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAiB,IAAI,EAAC,MAAM,aAAa,CAAC;AAepF,qFAAqF;AACrF,MAAM,CAAC,MAAM,uBAAuB,GAA2C,CAAC,EAC9E,cAAc,EACd,UAAU,EACV,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,MAAM,GAAG,2BAA2B,EACpC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,MAAC,GAAG,IAAC,UAAU,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,aACvE,KAAC,IAAI,IAAC,KAAK,EAAC,YAAY,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,GAAG,EACzD,KAAC,OAAO,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,IAAI,YAC9B,KAAK,GACE,EACV,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAC,IAAI,YAClD,WAAW,GACP,EACN,UAAU,IAAI,QAAQ,CAAC,CAAC,CAAC,CACxB,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,MAAM,IACL,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAC,IAAI,EACT,MAAM,EAAE,GAAG,MAAM,SAAS,EAC1B,IAAI,EAAE,UAAU,EAChB,OAAO,EAAC,SAAS,GACjB,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AASF,yFAAyF;AACzF,MAAM,CAAC,MAAM,uBAAuB,GAA2C,CAAC,EAC9E,OAAO,EACP,MAAM,GAAG,2BAA2B,EACpC,IAAI,GACL,EAAE,EAAE;IACH,OAAO,CACL,MAAC,GAAG,IAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,aACzB,KAAC,MAAM,IAAC,OAAO,QAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,GAAI,EAC5C,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,GAAG,IAAC,UAAU,EAAC,OAAO,YACrB,KAAC,MAAM,IACL,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,IAAI,EACT,MAAM,EAAE,GAAG,MAAM,QAAQ,EACzB,IAAI,EAAC,WAAW,EAChB,OAAO,EAAC,SAAS,GACjB,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ObservabilityStatusBadgeProps {
|
|
3
|
+
/** Override the label, e.g. "Running 3 of 12"; the colour and icon still come from `status`. */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Raw status from the API: pending, in_progress, done, skipped, failed, running, completed, ok, error. */
|
|
6
|
+
status?: string;
|
|
7
|
+
testID?: string;
|
|
8
|
+
}
|
|
9
|
+
/** The one status badge for AI observability: same word, same colour, same icon on every screen. */
|
|
10
|
+
export declare const ObservabilityStatusBadge: React.FC<ObservabilityStatusBadgeProps>;
|
|
11
|
+
//# sourceMappingURL=ObservabilityStatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityStatusBadge.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityStatusBadge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,6BAA6B;IAC5C,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2GAA2G;IAC3G,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oGAAoG;AACpG,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAe5E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Badge } from "@terreno/ui";
|
|
3
|
+
import { getObservabilityStatusStyle } from "./observabilityStatus";
|
|
4
|
+
/** The one status badge for AI observability: same word, same colour, same icon on every screen. */
|
|
5
|
+
export const ObservabilityStatusBadge = ({ label, status, testID, }) => {
|
|
6
|
+
const style = getObservabilityStatusStyle({ status });
|
|
7
|
+
return (_jsx(Badge, { iconName: style.iconName, secondary: true, status: style.tone, testID: testID, value: label ?? style.label }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ObservabilityStatusBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityStatusBadge.js","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/ObservabilityStatusBadge.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,2BAA2B,EAAC,MAAM,uBAAuB,CAAC;AAUlE,oGAAoG;AACpG,MAAM,CAAC,MAAM,wBAAwB,GAA4C,CAAC,EAChF,KAAK,EACL,MAAM,EACN,MAAM,GACP,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,2BAA2B,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IACpD,OAAO,CACL,KAAC,KAAK,IACJ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,QACT,MAAM,EAAE,KAAK,CAAC,IAAI,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,IAAI,KAAK,CAAC,KAAK,GAC3B,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -25,6 +25,7 @@ export interface AiObservabilityScreenMeta {
|
|
|
25
25
|
}
|
|
26
26
|
export declare const AI_OBSERVABILITY_SCREENS: Record<string, AiObservabilityScreenMeta>;
|
|
27
27
|
export declare const unwrapObservabilityStatus: (raw: unknown) => ObservabilityStatusPayload | undefined;
|
|
28
|
+
/** Quiet status line for the chrome: whether the local observability plugin is on. */
|
|
28
29
|
export declare const formatObservabilityStatusChip: (status: ObservabilityStatusPayload) => string;
|
|
29
30
|
export declare const buildAiObservabilityBreadcrumbs: ({ routeBase, screenName, }: {
|
|
30
31
|
routeBase: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiObservabilityNav.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/aiObservabilityNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAEvF,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,YAAY,CAAC,EAAE;QACb,MAAM,EAAE,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;KAClD,CAAC;IACF,OAAO,EAAE;QAAC,YAAY,EAAE,MAAM,EAAE,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAChD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"aiObservabilityNav.d.ts","sourceRoot":"","sources":["../../../../src/widgets/aiObservability/shell/aiObservabilityNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAEvF,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,YAAY,CAAC,EAAE;QACb,MAAM,EAAE,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;KAClD,CAAC;IACF,OAAO,EAAE;QAAC,YAAY,EAAE,MAAM,EAAE,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAChD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAiB9E,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,KAAK,OAAO,KAAG,0BAA0B,GAAG,SAarF,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,6BAA6B,GAAI,QAAQ,0BAA0B,KAAG,MAElF,CAAC;AAsBF,eAAO,MAAM,+BAA+B,GAAI,4BAG7C;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,KAAG,sBAAsB,EAoBzB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const AI_OBSERVABILITY_GROUP = "AI Observability";
|
|
2
|
+
// List screens end the trail at their section; the page title already names them.
|
|
3
|
+
const LIST_LEAVES = new Set(["Library", "List", "Queue"]);
|
|
2
4
|
export const AI_OBSERVABILITY_SCREENS = {
|
|
3
5
|
"ai-dataset-detail": { leaf: "Detail", section: "Datasets", title: "Dataset" },
|
|
4
6
|
"ai-datasets": { leaf: "List", section: "Datasets", title: "Datasets" },
|
|
@@ -11,6 +13,8 @@ export const AI_OBSERVABILITY_SCREENS = {
|
|
|
11
13
|
"ai-prompt-editor": { leaf: "Detail", section: "Prompts", title: "Prompt detail" },
|
|
12
14
|
"ai-prompts": { leaf: "Library", section: "Prompts", title: "Prompts" },
|
|
13
15
|
"ai-review": { leaf: "Queue", section: "Review", title: "Review queue" },
|
|
16
|
+
"ai-review-batch": { leaf: "Batch", section: "Review", title: "Review batch" },
|
|
17
|
+
"ai-review-batches": { leaf: "Batches", section: "Review", title: "Review batches" },
|
|
14
18
|
"ai-review-item": { leaf: "Item", section: "Review", title: "Review item" },
|
|
15
19
|
"ai-trace-detail": { leaf: "Detail", section: "Traces", title: "Trace" },
|
|
16
20
|
"ai-traces": { leaf: "List", section: "Traces", title: "Traces" },
|
|
@@ -29,14 +33,9 @@ export const unwrapObservabilityStatus = (raw) => {
|
|
|
29
33
|
}
|
|
30
34
|
return undefined;
|
|
31
35
|
};
|
|
36
|
+
/** Quiet status line for the chrome: whether the local observability plugin is on. */
|
|
32
37
|
export const formatObservabilityStatusChip = (status) => {
|
|
33
|
-
|
|
34
|
-
return [
|
|
35
|
-
localLabel,
|
|
36
|
-
`prompts:${status.primaries.prompts}`,
|
|
37
|
-
`datasets:${status.primaries.datasets}`,
|
|
38
|
-
`experiments:${status.primaries.experiments}`,
|
|
39
|
-
].join(" · ");
|
|
38
|
+
return status.localOn ? "Local observability on" : "Local observability off";
|
|
40
39
|
};
|
|
41
40
|
const sectionHref = (section, routeBase) => {
|
|
42
41
|
const prefix = routeBase.endsWith("/") ? routeBase.slice(0, -1) : routeBase;
|
|
@@ -63,10 +62,18 @@ export const buildAiObservabilityBreadcrumbs = ({ routeBase, screenName, }) => {
|
|
|
63
62
|
if (!meta) {
|
|
64
63
|
return [{ href: adminHref, label: "Admin" }, { label: AI_OBSERVABILITY_GROUP }];
|
|
65
64
|
}
|
|
65
|
+
const sectionCrumb = { href: sectionHref(meta.section, routeBase), label: meta.section };
|
|
66
|
+
if (LIST_LEAVES.has(meta.leaf)) {
|
|
67
|
+
return [
|
|
68
|
+
{ href: adminHref, label: "Admin" },
|
|
69
|
+
{ label: AI_OBSERVABILITY_GROUP },
|
|
70
|
+
{ label: meta.section },
|
|
71
|
+
];
|
|
72
|
+
}
|
|
66
73
|
return [
|
|
67
74
|
{ href: adminHref, label: "Admin" },
|
|
68
75
|
{ label: AI_OBSERVABILITY_GROUP },
|
|
69
|
-
|
|
76
|
+
sectionCrumb,
|
|
70
77
|
{ label: meta.leaf },
|
|
71
78
|
];
|
|
72
79
|
};
|