File tree Expand file tree Collapse file tree 2 files changed +42
-2
lines changed
report-app/src/app/pages/report-viewer Expand file tree Collapse file tree 2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,32 @@ <h3>Usage Details</h3>
146146 </ li >
147147 }
148148 </ ul >
149+
150+ @if (details.summary.completionStats) {
151+ @let stats = details.summary.completionStats;
152+ < h3 > Evaluation Stats</ h3 >
153+ < ul class ="status-badge-group ">
154+ < li class ="status-badge neutral ">
155+ < b > Executed evaluations:</ b >
156+ {{stats.allPromptsCount - stats.failedPrompts.length}}/{{stats.allPromptsCount}}
157+ </ li >
158+ </ ul >
159+ < div >
160+ @if (stats.failedPrompts.length > 0) {
161+ < details >
162+ < summary class ="neutral-button failed-prompt-button ">
163+ Inspect evaluation errors
164+ </ summary >
165+ < div >
166+ @for (prompt of stats.failedPrompts; track prompt) {
167+ < b > {{ prompt.promptName }}</ b >
168+ < pre class ="callout neutral code "> {{ prompt.error }}</ pre >
169+ }
170+ </ div >
171+ </ details >
172+ }
173+ </ div >
174+ }
149175 }
150176 </ div >
151177 </ section >
390416 [class.warn] ="totalPercent < 90 && totalPercent >= 80 "
391417 [class.error] ="totalPercent < 80 "
392418 >
393- {{ result.score.totalPoints }} / {{ result.score.maxOverallPoints }} points ({{totalPercent
394- }}%)
419+ {{ result.score.totalPoints }} / {{ result.score.maxOverallPoints }} points ({{totalPercent}}%)
395420 </ span >
396421 </ div >
397422 </ div >
Original file line number Diff line number Diff line change @@ -246,3 +246,18 @@ lighthouse-category + lighthouse-category {
246246.hidden {
247247 visibility : hidden ;
248248}
249+
250+ .failed-prompt-button.neutral-button {
251+ font-size : 0.8rem ;
252+ padding : 0.8rem ;
253+ height : 1.4rem ;
254+ margin : 0.5rem 0 ;
255+ background-color : var (--button-active-bg-color );
256+ color : color-mix (in srgb , var (--accent-yellow ) 75% , transparent );
257+ border-color : var (--button-active-bg-color );
258+ font-weight : bold ;
259+
260+ & :active , & :hover {
261+ background-color : transparent ;
262+ }
263+ }
You can’t perform that action at this time.
0 commit comments