AccessBuild Day 3: Auto-Scanning Is Live. Here’s What I Learned.
说明与用途
API 现在接受 Android UI XML 树,分类元素,评估可访问性,并将审计结果保存在 Supabase,提供审计历史和统计信息。
问题
The API could only score manually pasted elements; it lacked memory and persistence for real-world Android UI scans.
结果
Implemented auto-scanning of Android UI trees, added persistence, and exposed audit/history endpoints, achieving a 40% accessibility score on a test banking login screen.
工作流
- Receive raw Android UI tree XML via /scan endpoint
- Walk through each node and classify element type
- Check for accessibility labels
- Calculate grade (A‑F) based on label coverage
- Write audit record to Supabase PostgreSQL
- Return grade and audit data to client
证据
Yesterday, the API could only score elements you pasted in manually. Today, it parses real Android UI tree XML, extracts every interactive element, scores it, and saves the result to Supabase.
The new /scan endpoint accepts a raw UI tree dump. It walks through every node, classifies each element as button/input/icon/link, checks for accessibility labels, and returns a grade from A to F. Then it writes the audit to the database.
I ran the first auto-scan on a test banking login screen. Five interactive elements. Only two had labels. Result: D — 40% accessible
- 记录日期: 2026-10-06T13:55:59.268Z