@sanity/ailf-studio 0.1.14 → 0.1.15
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 +92 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5061,7 +5061,21 @@ import { Card as Card15, Text as Text24 } from "@sanity/ui";
|
|
|
5061
5061
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
5062
5062
|
function ScoreCell({ score, size = 2 }) {
|
|
5063
5063
|
const rounded = Math.round(score);
|
|
5064
|
-
return /* @__PURE__ */ jsx29(
|
|
5064
|
+
return /* @__PURE__ */ jsx29(
|
|
5065
|
+
Card15,
|
|
5066
|
+
{
|
|
5067
|
+
padding: 1,
|
|
5068
|
+
radius: 2,
|
|
5069
|
+
style: {
|
|
5070
|
+
alignItems: "center",
|
|
5071
|
+
display: "flex",
|
|
5072
|
+
flex: 1,
|
|
5073
|
+
justifyContent: "center"
|
|
5074
|
+
},
|
|
5075
|
+
tone: scoreTone(rounded),
|
|
5076
|
+
children: /* @__PURE__ */ jsx29(Text24, { align: "center", size, weight: "medium", children: rounded })
|
|
5077
|
+
}
|
|
5078
|
+
);
|
|
5065
5079
|
}
|
|
5066
5080
|
|
|
5067
5081
|
// src/components/report-detail/AreaScoreTable.tsx
|
|
@@ -5118,10 +5132,50 @@ function AreaScoreTable({ scores }) {
|
|
|
5118
5132
|
children: /* @__PURE__ */ jsx30(Text25, { size: 2, weight: "medium", children: score.feature })
|
|
5119
5133
|
}
|
|
5120
5134
|
),
|
|
5121
|
-
/* @__PURE__ */ jsx30(
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5135
|
+
/* @__PURE__ */ jsx30(
|
|
5136
|
+
"div",
|
|
5137
|
+
{
|
|
5138
|
+
style: {
|
|
5139
|
+
background: rowBackground(i),
|
|
5140
|
+
display: "flex",
|
|
5141
|
+
padding: "2px 0"
|
|
5142
|
+
},
|
|
5143
|
+
children: /* @__PURE__ */ jsx30(ScoreCell, { score: score.totalScore })
|
|
5144
|
+
}
|
|
5145
|
+
),
|
|
5146
|
+
/* @__PURE__ */ jsx30(
|
|
5147
|
+
"div",
|
|
5148
|
+
{
|
|
5149
|
+
style: {
|
|
5150
|
+
background: rowBackground(i),
|
|
5151
|
+
display: "flex",
|
|
5152
|
+
padding: "2px 0"
|
|
5153
|
+
},
|
|
5154
|
+
children: /* @__PURE__ */ jsx30(ScoreCell, { score: score.taskCompletion })
|
|
5155
|
+
}
|
|
5156
|
+
),
|
|
5157
|
+
/* @__PURE__ */ jsx30(
|
|
5158
|
+
"div",
|
|
5159
|
+
{
|
|
5160
|
+
style: {
|
|
5161
|
+
background: rowBackground(i),
|
|
5162
|
+
display: "flex",
|
|
5163
|
+
padding: "2px 0"
|
|
5164
|
+
},
|
|
5165
|
+
children: /* @__PURE__ */ jsx30(ScoreCell, { score: score.codeCorrectness })
|
|
5166
|
+
}
|
|
5167
|
+
),
|
|
5168
|
+
/* @__PURE__ */ jsx30(
|
|
5169
|
+
"div",
|
|
5170
|
+
{
|
|
5171
|
+
style: {
|
|
5172
|
+
background: rowBackground(i),
|
|
5173
|
+
display: "flex",
|
|
5174
|
+
padding: "2px 0"
|
|
5175
|
+
},
|
|
5176
|
+
children: /* @__PURE__ */ jsx30(ScoreCell, { score: score.docCoverage })
|
|
5177
|
+
}
|
|
5178
|
+
),
|
|
5125
5179
|
/* @__PURE__ */ jsx30(
|
|
5126
5180
|
"div",
|
|
5127
5181
|
{
|
|
@@ -5924,9 +5978,39 @@ function ThreeLayerTable({ scores }) {
|
|
|
5924
5978
|
children: /* @__PURE__ */ jsx38(Text31, { size: 2, weight: "medium", children: score.feature })
|
|
5925
5979
|
}
|
|
5926
5980
|
),
|
|
5927
|
-
/* @__PURE__ */ jsx38(
|
|
5928
|
-
|
|
5929
|
-
|
|
5981
|
+
/* @__PURE__ */ jsx38(
|
|
5982
|
+
"div",
|
|
5983
|
+
{
|
|
5984
|
+
style: {
|
|
5985
|
+
background: rowBackground(i),
|
|
5986
|
+
display: "flex",
|
|
5987
|
+
padding: "2px 0"
|
|
5988
|
+
},
|
|
5989
|
+
children: /* @__PURE__ */ jsx38(ScoreCell, { score: score.floorScore ?? 0 })
|
|
5990
|
+
}
|
|
5991
|
+
),
|
|
5992
|
+
/* @__PURE__ */ jsx38(
|
|
5993
|
+
"div",
|
|
5994
|
+
{
|
|
5995
|
+
style: {
|
|
5996
|
+
background: rowBackground(i),
|
|
5997
|
+
display: "flex",
|
|
5998
|
+
padding: "2px 0"
|
|
5999
|
+
},
|
|
6000
|
+
children: /* @__PURE__ */ jsx38(ScoreCell, { score: score.ceilingScore ?? score.totalScore })
|
|
6001
|
+
}
|
|
6002
|
+
),
|
|
6003
|
+
/* @__PURE__ */ jsx38(
|
|
6004
|
+
"div",
|
|
6005
|
+
{
|
|
6006
|
+
style: {
|
|
6007
|
+
background: rowBackground(i),
|
|
6008
|
+
display: "flex",
|
|
6009
|
+
padding: "2px 0"
|
|
6010
|
+
},
|
|
6011
|
+
children: /* @__PURE__ */ jsx38(ScoreCell, { score: score.actualScore ?? 0 })
|
|
6012
|
+
}
|
|
6013
|
+
),
|
|
5930
6014
|
/* @__PURE__ */ jsx38(
|
|
5931
6015
|
"div",
|
|
5932
6016
|
{
|