AccessBuild Day 3: Auto-Scanning Is Live. Here’s What I Learned.
Описание и применение
API теперь принимает XML‑дерево Android UI, классифицирует элементы, оценивает доступность и сохраняет аудит в 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