feat: add accessibility annotations to hotspots#19
Merged
trmquang93 merged 2 commits intomainfrom Apr 2, 2026
Merged
Conversation
Allow users to annotate hotspots with accessibility metadata (label, role, hint, traits) so generated instructions include VoiceOver/TalkBack implementation guidance. Bumps file format to v12. - Add collapsible Accessibility section to HotspotModal with label, role select, hint, and trait toggle pills - Add platform-specific accessibility API mappings for SwiftUI, React Native, Flutter, and Jetpack Compose - Render Accessibility table in screens.md and guidance in build-guide.md - Add accessibility field to MCP server create/update hotspot tools - Backfill accessibility: null for older .drawd files - Save/restore accessibility data with hotspot presets - Add 18 new tests covering rendering, migration, and integration
- Extract shared accessibilitySchema constant in hotspot-tools.js (was duplicated verbatim in create and update tool definitions) - Fix stale closure bug in trait toggle onClick (use functional updater so rapid clicks don't lose state) - Add per-platform docsUrl to ACCESSIBILITY_PLATFORM_MAP (was hardcoded to Apple docs URL for all platforms) - Remove unused _platform parameter from renderAccessibilityBlock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
accessibility: { label, role, hint, traits[] }field to hotspot data model (file format v12)screens.md+ guidance inbuild-guide.mdaccessibilityfield to MCP servercreate_hotspotandupdate_hotspottool schemasaccessibility: nullfor older.drawdfiles, save/restore with presetsTest plan
npm test-- 310 tests pass (18 new: 2 importFlow, 12 instructionRenderers, 4 generateInstructionFiles)npm run build-- lint + production build passes#### Accessibilitytable in screens.md and### Accessibilityguidance in build-guide.md (for platform-specific builds).drawdfile -- hotspots getaccessibility: nullbackfill, no errors