@sanity/ailf-studio 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -100,6 +100,24 @@ import {
|
|
|
100
100
|
useProjectId
|
|
101
101
|
} from "sanity";
|
|
102
102
|
|
|
103
|
+
// ../shared/dist/feature-flags.js
|
|
104
|
+
var FEATURE_FLAGS = {
|
|
105
|
+
showFailureModes: {
|
|
106
|
+
enabled: false,
|
|
107
|
+
rationale: 'Current classification is too broad (majority "Unclassified") to be actionable in the diagnostics view.',
|
|
108
|
+
reEnableWhen: "Failure taxonomy is refined so non-Unclassified buckets carry meaningful signal.",
|
|
109
|
+
relatedWorkItem: "W0037-detect-model-output-failures",
|
|
110
|
+
addedAt: "2026-04-22"
|
|
111
|
+
},
|
|
112
|
+
showRegressedSinceLastRun: {
|
|
113
|
+
enabled: false,
|
|
114
|
+
rationale: "Bare list of regressed area names lacks explanatory context for why each regressed.",
|
|
115
|
+
reEnableWhen: "Per-area regression attribution can be surfaced alongside the list.",
|
|
116
|
+
relatedWorkItem: null,
|
|
117
|
+
addedAt: "2026-04-22"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
103
121
|
// ../shared/dist/score-grades.js
|
|
104
122
|
var GRADE_BOUNDARIES = {
|
|
105
123
|
good: 80,
|
|
@@ -10918,7 +10936,6 @@ import {
|
|
|
10918
10936
|
} from "@sanity/icons";
|
|
10919
10937
|
import { Box as Box25, Flex as Flex28, Stack as Stack29, Text as Text38 } from "@sanity/ui";
|
|
10920
10938
|
import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10921
|
-
var SHOW_REGRESSED = false;
|
|
10922
10939
|
function WeaknessesList({
|
|
10923
10940
|
mode,
|
|
10924
10941
|
scores,
|
|
@@ -10946,7 +10963,7 @@ function WeaknessesList({
|
|
|
10946
10963
|
const efficiencyAnomalies = scores.filter(
|
|
10947
10964
|
(s) => s.infrastructureEfficiency != null && s.infrastructureEfficiency > EFFICIENCY_ANOMALY
|
|
10948
10965
|
);
|
|
10949
|
-
const hasContent = weakAreas.length > 0 || docsHurt.length > 0 || retrievalIssues.length > 0 || dimWeaknesses.length > 0 ||
|
|
10966
|
+
const hasContent = weakAreas.length > 0 || docsHurt.length > 0 || retrievalIssues.length > 0 || dimWeaknesses.length > 0 || FEATURE_FLAGS.showRegressedSinceLastRun.enabled && regressed.length > 0 || efficiencyAnomalies.length > 0;
|
|
10950
10967
|
if (!hasContent) return null;
|
|
10951
10968
|
return /* @__PURE__ */ jsxs37(Stack29, { space: 5, children: [
|
|
10952
10969
|
weakAreas.length > 0 && /* @__PURE__ */ jsxs37(Stack29, { space: 3, children: [
|
|
@@ -11141,7 +11158,7 @@ function WeaknessesList({
|
|
|
11141
11158
|
area.feature
|
|
11142
11159
|
)) })
|
|
11143
11160
|
] }),
|
|
11144
|
-
|
|
11161
|
+
FEATURE_FLAGS.showRegressedSinceLastRun.enabled && regressed.length > 0 && /* @__PURE__ */ jsxs37(Box25, { style: neutralCardStyle, children: [
|
|
11145
11162
|
/* @__PURE__ */ jsx52(
|
|
11146
11163
|
Box25,
|
|
11147
11164
|
{
|
|
@@ -11498,7 +11515,6 @@ var DIAG_TABS = [
|
|
|
11498
11515
|
{ id: "strengths", label: "Strengths" },
|
|
11499
11516
|
{ id: "issues", label: "Issues" }
|
|
11500
11517
|
];
|
|
11501
|
-
var SHOW_FAILURE_MODES = false;
|
|
11502
11518
|
function DiagnosticsPanel({
|
|
11503
11519
|
artifactCache,
|
|
11504
11520
|
comparison,
|
|
@@ -11586,7 +11602,7 @@ function DiagnosticsPanel({
|
|
|
11586
11602
|
scores
|
|
11587
11603
|
}
|
|
11588
11604
|
),
|
|
11589
|
-
|
|
11605
|
+
FEATURE_FLAGS.showFailureModes.enabled && /* @__PURE__ */ jsx53(FailureModesPanel, { failureModes }),
|
|
11590
11606
|
judgments && judgments.length > 0 && /* @__PURE__ */ jsx53(
|
|
11591
11607
|
JudgmentList,
|
|
11592
11608
|
{
|