@@ -172,12 +172,15 @@ export default function App() {
172172 className = "inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/40 bg-white/5 text-white/80 transition hover:bg-white/10 hover:text-white"
173173 aria-label = "Open GitHub repository"
174174 >
175+ < span className = "sr-only" > GitHub</ span >
175176 < svg
176- aria-hidden
177+ aria-hidden = "true"
177178 viewBox = "0 0 24 24"
178179 className = "h-5 w-5"
179180 fill = "currentColor"
181+ role = "img"
180182 >
183+ < title > GitHub</ title >
181184 < path d = "M12 0C5.37 0 0 5.48 0 12.24c0 5.41 3.44 9.99 8.2 11.61.6.12.82-.27.82-.59 0-.29-.01-1.05-.02-2.05-3.34.75-4.04-1.65-4.04-1.65-.55-1.43-1.35-1.81-1.35-1.81-1.1-.77.08-.75.08-.75 1.22.09 1.86 1.28 1.86 1.28 1.08 1.9 2.83 1.35 3.52 1.03.11-.81.42-1.35.76-1.66-2.67-.31-5.47-1.37-5.47-6.12 0-1.35.47-2.45 1.24-3.31-.13-.31-.54-1.56.12-3.26 0 0 1-.33 3.3 1.26a11.1 11.1 0 0 1 3-.41c1.02 0 2.05.14 3 .41 2.3-1.59 3.3-1.26 3.3-1.26.66 1.7.25 2.95.12 3.26.77.86 1.24 1.96 1.24 3.31 0 4.76-2.8 5.8-5.48 6.11.43.39.81 1.17.81 2.36 0 1.7-.02 3.07-.02 3.48 0 .32.22.71.82.59C20.56 22.23 24 17.65 24 12.24 24 5.48 18.63 0 12 0Z" />
182185 </ svg >
183186 </ a >
@@ -192,11 +195,13 @@ export default function App() {
192195 >
193196 Rstack
194197 < svg
195- aria-hidden
198+ aria-hidden = "true"
196199 viewBox = "0 0 12 12"
197200 className = { `h-3 w-3 transition-transform ${ isRepoMenuOpen ? 'rotate-180' : '' } ` }
198201 fill = "none"
202+ role = "img"
199203 >
204+ < title > Toggle menu</ title >
200205 < path
201206 d = "M2.2 4.2 6 8l3.8-3.8"
202207 stroke = "currentColor"
@@ -264,12 +269,8 @@ export default function App() {
264269 </ div >
265270 </ header >
266271
267- < section className = "grid gap-4 sm:grid-cols-3 " >
272+ < section className = "grid gap-4 sm:grid-cols-2 " >
268273 < StatCard label = "Total tracked runs" value = { stats . total } />
269- < StatCard
270- label = "Pass ratio"
271- value = { stats . total ? `${ Math . round ( stats . passRate * 100 ) } %` : '—' }
272- />
273274 < StatCard label = "Last updated" value = { stats . lastUpdated ?? '—' } />
274275 </ section >
275276
@@ -287,15 +288,11 @@ function buildStats(records: EcosystemCommitRecord[]) {
287288 if ( ! records . length ) {
288289 return {
289290 total : 0 ,
290- passRate : 0 ,
291291 lastUpdated : null as string | null ,
292292 } ;
293293 }
294294
295295 const total = records . length ;
296- const passed = records . filter (
297- ( record ) => record . overallStatus === 'success' ,
298- ) . length ;
299296 const lastUpdated = records [ 0 ] ?. commitTimestamp
300297 ? ( ( ) => {
301298 const date = new Date ( records [ 0 ] . commitTimestamp ) ;
@@ -314,7 +311,6 @@ function buildStats(records: EcosystemCommitRecord[]) {
314311
315312 return {
316313 total,
317- passRate : total > 0 ? passed / total : 0 ,
318314 lastUpdated,
319315 } ;
320316}
0 commit comments