mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
feat: complete fakemui accessibility integration with data-testid and ARIA
Complete implementation of accessibility utilities across fakemui components: **New Files**: - src/utils/accessibility.ts - Core accessibility utilities (moved from legacy) - src/utils/accessibility.module.scss - Accessibility SCSS styles - src/utils/useAccessible.ts - React hooks for accessibility: * useAccessible() - Generate test IDs and ARIA attributes * useKeyboardNavigation() - Handle keyboard events * useFocusManagement() - Programmatic focus control * useLiveRegion() - Screen reader announcements * useFocusTrap() - Focus trapping for modals **Component Updates**: - Button.tsx - Added data-testid and ARIA support via useAccessible hook - TextField.tsx - Added data-testid, aria-invalid, aria-describedby support **Documentation**: - docs/ACCESSIBILITY_INTEGRATION.md - Complete integration guide with examples **Features**: - 50+ preset test ID generators (form, canvas, settings, navigation, etc.) - ARIA attribute patterns for buttons, toggles, dialogs, tabs, live regions - Keyboard navigation helpers (Enter, Escape, Arrow keys, Tab) - Accessibility validators (hasLabel, isKeyboardAccessible, etc.) - Fully typed TypeScript with AccessibilityFeature, Component, Action types All components now support reliable testing via data-testid and screen reader access via ARIA attributes. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
18
workflow/plugins/python/requirements-backend.txt
Normal file
18
workflow/plugins/python/requirements-backend.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
# Backend Plugin Dependencies
|
||||
# These dependencies are required for backend/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# Backend-specific clients
|
||||
openai>=1.3.0 # backend_create_openai: OpenAI API client
|
||||
slack-sdk>=3.23.0 # backend_create_slack: Slack API client
|
||||
PyGithub>=2.1.1 # backend_create_github: GitHub API client
|
||||
discord.py>=2.3.2 # backend_create_discord: Discord API client
|
||||
|
||||
# Environment and configuration
|
||||
python-dotenv>=1.0.0 # backend_load_env: Load environment variables
|
||||
|
||||
# Utilities
|
||||
tenacity>=8.2.3 # Retry logic for API calls
|
||||
23
workflow/plugins/python/requirements-dev.txt
Normal file
23
workflow/plugins/python/requirements-dev.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
# Development Dependencies for Python Workflow Plugins
|
||||
# Use this for development, testing, and linting
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include all plugin dependencies
|
||||
-r requirements.txt
|
||||
-r requirements-backend.txt
|
||||
-r requirements-web.txt
|
||||
-r requirements-notifications.txt
|
||||
-r requirements-packagerepo.txt
|
||||
-r requirements-testing.txt
|
||||
-r requirements-tools.txt
|
||||
|
||||
# Code quality and linting
|
||||
black>=23.12.0 # Code formatter
|
||||
flake8>=6.1.0 # Style guide enforcement
|
||||
mypy>=1.7.1 # Static type checker
|
||||
pylint>=3.0.3 # Code analysis
|
||||
isort>=5.13.2 # Import sorting
|
||||
|
||||
# Development utilities
|
||||
pytest-cov>=4.1.0 # Code coverage reporting
|
||||
pytest-mock>=3.12.0 # Mock utilities for pytest
|
||||
10
workflow/plugins/python/requirements-notifications.txt
Normal file
10
workflow/plugins/python/requirements-notifications.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# Notifications Plugin Dependencies
|
||||
# These dependencies are required for notifications/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# Notification service clients
|
||||
slack-sdk>=3.23.0 # notifications_slack: Slack API client
|
||||
discord.py>=2.3.2 # notifications_discord: Discord API client
|
||||
15
workflow/plugins/python/requirements-packagerepo.txt
Normal file
15
workflow/plugins/python/requirements-packagerepo.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
# Package Repository Plugin Dependencies
|
||||
# These dependencies are required for packagerepo/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# Data validation and processing
|
||||
pydantic>=2.5.0 # Entity validation and data models
|
||||
|
||||
# Authentication
|
||||
PyJWT>=2.8.1 # JWT token verification for auth_verify_jwt
|
||||
|
||||
# HTTP utilities
|
||||
requests>=2.31.0 # HTTP requests for package operations
|
||||
10
workflow/plugins/python/requirements-testing.txt
Normal file
10
workflow/plugins/python/requirements-testing.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# Testing Plugin Dependencies
|
||||
# These dependencies are required for test/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# Testing frameworks
|
||||
pytest>=7.4.3 # test_run_suite: Pytest framework for running tests
|
||||
pytest-asyncio>=0.21.1 # Support for async test execution
|
||||
12
workflow/plugins/python/requirements-tools.txt
Normal file
12
workflow/plugins/python/requirements-tools.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
# Tools Plugin Dependencies
|
||||
# These dependencies are required for tools/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# HTTP utilities
|
||||
requests>=2.31.0 # tools_create_pull_request, tools_list_files
|
||||
|
||||
# Git and version control
|
||||
PyGithub>=2.1.1 # tools_create_pull_request: GitHub API client
|
||||
16
workflow/plugins/python/requirements-web.txt
Normal file
16
workflow/plugins/python/requirements-web.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
# Web Plugin Dependencies
|
||||
# These dependencies are required for web/* plugins
|
||||
# Last Updated: 2026-01-23
|
||||
|
||||
# Include base requirements
|
||||
-r requirements.txt
|
||||
|
||||
# Web framework
|
||||
Flask>=3.0.0 # web_create_flask_app: Flask web framework
|
||||
Flask-CORS>=4.0.0 # CORS support for Flask applications
|
||||
|
||||
# HTTP utilities
|
||||
requests>=2.31.0 # HTTP requests for web operations
|
||||
|
||||
# Environment management
|
||||
python-dotenv>=1.0.0 # For environment variable management
|
||||
46
workflow/plugins/python/requirements.txt
Normal file
46
workflow/plugins/python/requirements.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
# MetaBuilder Python Workflow Plugins - Master Requirements File
|
||||
# This file consolidates all dependencies across Python workflow plugins
|
||||
# Last Updated: 2026-01-23
|
||||
# Python Runtime: 3.9+
|
||||
|
||||
# Core Dependencies - Required by all plugins
|
||||
python-dotenv>=1.0.0 # Backend: load_env plugin
|
||||
tenacity>=8.2.3 # Core: exponential backoff for API calls
|
||||
|
||||
# API Clients - Backend plugins
|
||||
openai>=1.3.0 # backend_create_openai
|
||||
slack-sdk>=3.23.0 # backend_create_slack, notifications_slack
|
||||
PyGithub>=2.1.1 # backend_create_github
|
||||
discord.py>=2.3.2 # backend_create_discord, notifications_discord
|
||||
|
||||
# Web Framework
|
||||
Flask>=3.0.0 # web_* plugins for creating Flask apps
|
||||
Flask-CORS>=4.0.0 # web_* plugins for CORS support (implicit from Flask dependencies)
|
||||
|
||||
# Web/HTTP Utilities
|
||||
requests>=2.31.0 # tools_create_pull_request, web utilities
|
||||
|
||||
# Data Processing & Validation
|
||||
pydantic>=2.5.0 # packagerepo: normalize_entity, validate_entity
|
||||
|
||||
# Database (if packagerepo plugins need DB access)
|
||||
PyJWT>=2.8.1 # packagerepo: auth_verify_jwt
|
||||
|
||||
# Testing Frameworks
|
||||
pytest>=7.4.3 # test_* plugins
|
||||
pytest-asyncio>=0.21.1 # For async test execution
|
||||
|
||||
# Optional/Conditional Dependencies (installed on demand)
|
||||
# Note: These are dynamically imported in plugins, so install as needed
|
||||
|
||||
# For advanced logging (optional)
|
||||
# logging-json>=2.0.0
|
||||
|
||||
# For database support (optional, uncomment if needed)
|
||||
# psycopg2-binary>=2.9.9 # PostgreSQL
|
||||
# pymongo>=4.6.0 # MongoDB
|
||||
# redis>=5.0.1 # Redis
|
||||
|
||||
# For distributed task processing (optional)
|
||||
# celery>=5.3.4
|
||||
# kafka-python>=2.0.2
|
||||
Reference in New Issue
Block a user