ffa15aee2b
feat: add Chart.js and Flatpickr with CDN fallback strategy
...
Add optional libraries with local fallback for offline development:
Vendor files added:
- static/shared/js/vendor/chart.umd.min.js (Chart.js 4.4.1)
- static/shared/js/vendor/flatpickr.min.js (Flatpickr 4.6.13)
- static/shared/css/vendor/flatpickr.min.css
Template updates:
- admin/base.html: Add optional blocks for chartjs_script, flatpickr_script, flatpickr_css
- shared/includes/optional-libs.html: CDN fallback loaders for both libraries
Usage in page templates:
{% block flatpickr_css %}
{% from 'shared/includes/optional-libs.html' import flatpickr_css_loader %}
{{ flatpickr_css_loader() }}
{% endblock %}
{% block chartjs_script %}
{% from 'shared/includes/optional-libs.html' import chartjs_loader %}
{{ chartjs_loader() }}
{% endblock %}
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-06 19:09:06 +01:00
8a367077e1
refactor: migrate vendor APIs to token-based context and consolidate architecture
...
## Vendor-in-Token Architecture (Complete Migration)
- Migrate all vendor API endpoints from require_vendor_context() to token_vendor_id
- Update permission dependencies to extract vendor from JWT token
- Add vendor exceptions: VendorAccessDeniedException, VendorOwnerOnlyException,
InsufficientVendorPermissionsException
- Shop endpoints retain require_vendor_context() for URL-based detection
- Add AUTH-004 architecture rule enforcing vendor context patterns
- Fix marketplace router missing /marketplace prefix
## Exception Pattern Fixes (API-003/API-004)
- Services raise domain exceptions, endpoints let them bubble up
- Add code_quality and content_page exception modules
- Move business logic from endpoints to services (admin, auth, content_page)
- Fix exception handling in admin, shop, and vendor endpoints
## Tailwind CSS Consolidation
- Consolidate CSS to per-area files (admin, vendor, shop, platform)
- Remove shared/cdn-fallback.html and shared/css/tailwind.min.css
- Update all templates to use area-specific Tailwind output files
- Remove Node.js config (package.json, postcss.config.js, tailwind.config.js)
## Documentation & Cleanup
- Update vendor-in-token-architecture.md with completed migration status
- Update architecture-rules.md with new rules
- Move migration docs to docs/development/migration/
- Remove duplicate/obsolete documentation files
- Merge pytest.ini settings into pyproject.toml
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-12-04 22:24:45 +01:00
86d67b5cfb
feat: add customer authentication pages and documentation
...
Add complete customer authentication UI with login, registration,
forgot password, and dashboard pages.
Templates Added:
- app/templates/shop/account/login.html
- Two-column layout with vendor branding
- Email/password login with validation
- Password visibility toggle
- "Remember me" functionality
- Error/success alerts
- Loading states with spinner
- app/templates/shop/account/register.html
- Customer registration form
- Client-side validation (password strength, email format)
- Marketing consent checkbox
- Confirm password matching
- app/templates/shop/account/forgot-password.html
- Password reset request page
- Email validation
- Success confirmation
- app/templates/shop/account/dashboard.html
- Customer account dashboard
- Overview of orders, profile, addresses
Styles Added:
- static/shared/css/auth.css
- Authentication page styling
- Two-column layout system
- Form components and validation states
- Theme-aware with CSS variables
- Dark mode support
- Mobile responsive
- static/shared/css/base.css updates
- Enhanced utility classes
- Additional form styles
- Improved button states
Documentation Added:
- docs/frontend/shop/authentication-pages.md
- Comprehensive guide to auth page implementation
- Component architecture
- API integration patterns
- Theme customization
- docs/development/CUSTOMER_AUTHENTICATION_IMPLEMENTATION.md
- Implementation details and technical decisions
- Security considerations
- Testing procedures
- docs/development/CUSTOMER_AUTH_SUMMARY.md
- Quick reference guide
- Endpoints and flows
- Updated docs/frontend/shop/architecture.md
- Added authentication section
- Documented all auth pages
- Updated docs/frontend/shop/page-templates.md
- Added auth template documentation
- Updated mkdocs.yml
- Added new documentation pages to navigation
Features:
- Full theme integration with vendor branding
- Alpine.js reactive components
- Tailwind CSS utility-first styling
- Client and server-side validation
- JWT token management
- Multi-access routing support (domain/subdomain/path)
- Error handling with user-friendly messages
- Loading states and animations
- Mobile responsive design
- Dark mode support
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-25 21:09:27 +01:00