8 Commits

Author SHA1 Message Date
William Valentin
b544399f9c backend: remove __main__ runner; typing: fix mypy across core and routes; tooling: use uv for pytest in pre-commit; security: narrow broad except in config; mypy: relax untyped decorator check for backend.app.main 2025-09-15 01:25:25 -07:00
William Valentin
a0ae5f869e feat(frontend): add dedicated /cli page, nav links, and CTA buttons; remove CLI modals for leaner UX
- New CLI page at /cli with detailed usage and improved Quick Start card header
- Add CLI link to navbars and small ‘Try the CLI’ CTAs on Home & Templates
- Remove CLI modals and unused showCliModal() handler (keep_small_simple)
- Self-host Bootstrap and Font Awesome; add OSI logo and GPL notice in footers
- Dockerfile: verify vendor assets exist at build time
- Minor a11y/contrast and heading-order cleanups (100 a11y)
2025-09-15 00:47:31 -07:00
William Valentin
3002003b6f fix(lint): resolve line length violations in main.py
- Split long error message strings to meet 88 character limit
- Maintain readability while conforming to flake8 standards
- Fix file upload validation error messages
2025-09-14 17:03:51 -07:00
William Valentin
d15dffd120 fix: address linting and security warnings in configuration system
- Add type annotations for mypy compliance
- Add nosec comment for intentional bind-all-interfaces configuration
- Add explanatory comment for exception handling
- Minor formatting improvements
2025-09-14 15:58:35 -07:00
William Valentin
f3b3562e6a feat: add environment variable support to CLI and backend metadata
- Update CLI to use configurable app name and version from settings
- Make backend package metadata configurable via environment variables
- Add CONTACT_EMAIL environment variable support
- Ensure consistent branding across CLI, API, and web interface
2025-09-14 15:57:25 -07:00
William Valentin
c4fd9427ed feat: integrate configuration system into FastAPI application
- Use configurable app title, description, and API settings
- Add template context injection for all HTML routes
- Implement file upload validation with size/extension limits
- Add enhanced health check and info endpoints with feature flags
- Support conditional API documentation based on settings
2025-09-14 15:57:08 -07:00
William Valentin
4f94583b54 feat: add comprehensive environment variable configuration system
- Create Settings class with support for 70+ configuration variables
- Add python-dotenv integration for .env file loading
- Support app metadata, server settings, security, performance tuning
- Add feature flags, monitoring, and asset optimization settings
- Include validation helpers for booleans, lists, and CORS origins
- Provide template context injection for HTML templates
2025-09-14 15:56:59 -07:00
William Valentin
860f60591c Fix contrast issues with text-muted and bg-dark classes
- Fixed Bootstrap bg-dark class to use better contrasting color
- Added comprehensive text-muted contrast fixes for various contexts
- Improved dark theme colors for better accessibility
- Fixed CSS inheritance issues for code elements in dark contexts
- All color choices meet WCAG AA contrast requirements
2025-09-14 14:58:35 -07:00