Commit Graph

121 Commits

Author SHA1 Message Date
Aiirondev_dev bc61e87ab0 Refactor UI styles to use CSS variables for consistent theming
- Updated background colors across various templates to use CSS variables for better theming support.
- Replaced hardcoded colors with variables like `var(--ui-surface)` and `var(--ui-surface-soft)` for backgrounds.
- Adjusted text colors to use `var(--ui-text)` for improved readability and consistency.
- Enhanced the theme toggle functionality in the base template to dynamically change theme colors based on user preference.
- Ensured that all relevant templates reflect the new theming approach for a cohesive user experience.
2026-04-20 20:20:33 +02:00
Aiirondev_dev 2d37ded5be Remove outdated German section and streamline tenant management documentation for clarity 2026-04-20 20:05:44 +02:00
Aiirondev_dev 31de22d460 Add detailed explanation of multi-tenant architecture and operational guidelines in the documentation v0.6.21 2026-04-20 15:55:50 +02:00
Aiirondev_dev 96f918828c Refactor tenant management script to use MongoClient directly for database operations and add documentation for multi-tenant architecture 2026-04-20 15:48:46 +02:00
Aiirondev_dev eb912c3a73 Add tenant management container and update management script for improved tenant operations 2026-04-20 15:36:02 +02:00
Aiirondev_dev 3044b36e9f Add tenant management script for zero-downtime operations and database handling 2026-04-20 15:31:46 +02:00
Aiirondev_dev e464628ab7 Enhance admin content layout with responsive design adjustments and improved styling for item cards v0.6.20 2026-04-20 14:34:17 +02:00
Aiirondev_dev a5a6f89f18 Add predefined filters and update cost labels to include currency symbol v0.6.19 2026-04-20 14:10:23 +02:00
Aiirondev_dev 6835ee87a7 Update modal button class and increase z-index for improved visibility v0.6.18 2026-04-20 09:40:08 +02:00
Aiirondev_dev 3a9d45327a Improve mobile layout with viewport adjustments, scrolling enhancements, and refined modal styling 2026-04-20 09:31:11 +02:00
Aiirondev_dev bfbc8b6796 Refactor color styles to use CSS variables for improved consistency and maintainability v0.6.17 2026-04-19 23:35:45 +02:00
Aiirondev_dev 2f6ab9c3fb Enhance navbar styles with improved responsiveness and visual effects v0.6.16 2026-04-19 23:13:57 +02:00
Aiirondev_dev 7a4c3b82c0 Enhance dark mode support and improve mobile layout with theme-aware styles and optimizations v0.6.15 2026-04-19 21:54:00 +02:00
Aiirondev_dev 1d6c722cd3 Implement dynamic page size for mobile devices and optimize rendering with content visibility v0.6.14 2026-04-19 21:43:17 +02:00
Aiirondev_dev 3e48aa23cc Refactor scroll distance calculation and prefetch logic for mobile layout in main and admin templates 2026-04-19 21:36:41 +02:00
Aiirondev_dev e2f8da213a Remove manifest and service worker routes; update base.html to reflect changes v0.6.13 2026-04-19 21:15:40 +02:00
Aiirondev_dev 91fc5cae21 Add routes to serve manifest.json and service worker; update manifest link in base.html v0.6.12 2026-04-19 20:06:11 +02:00
Aiirondev_dev b47fcdf804 Refactor manifest.json for Ausleihsystem; add service worker for caching and offline support v0.6.11 2026-04-19 19:58:26 +02:00
Aiirondev_dev 92bea9a87e Remove student account fields and related logic from registration process v0.6.10 2026-04-19 19:38:46 +02:00
Aiirondev_dev 84ac9e812a Enhance get_current_status logic to maintain 'completed' status and add TTL for push notifications v0.6.9 2026-04-19 16:57:35 +02:00
Aiirondev_dev d2f882ed61 Add booking type options and enhance booking logic in terminplan.html; create test for terminplan endpoint v0.6.8 2026-04-19 16:25:30 +02:00
Aiirondev_dev 4c586abee0 Fix typo in requirements.txt (missing newline merged cryptography and pywebpush) v0.6.7 2026-04-19 15:39:42 +02:00
Aiirondev_dev 50c4096f3f Auto-generate VAPID keys upon startup using py-vapid, and add pywebpush to requirements, drop obsolete script v0.6.6 v0.6.5 2026-04-19 15:34:13 +02:00
Aiirondev_dev c42ba39882 Integrate frontend UI to request Web Push permission and show setting panel v0.6.3 v0.6.4 2026-04-19 15:05:20 +02:00
Aiirondev_dev 12d0ab06cf Fix damaged item push notification route to admins (Admin vs IsAdmin DB field typo) and add direct URL v0.6.2 2026-04-19 14:48:48 +02:00
Aiirondev_dev bb146059f3 Fix HTML syntax error in base.html - remove duplicate > v0.6.1 2026-04-19 14:30:27 +02:00
Aiirondev_dev 78a9d85a4e chore: Remove compiled Python bytecode files from __pycache__ 2026-04-19 14:20:25 +02:00
Aiirondev_dev 21b8aebb91 Add comprehensive test suite for Ausleihung (Borrowing) system
- Create 26 pytest tests covering all core borrowing functionality
- Test status determination (planned → active → completed)
- Test CRUD operations (create, read, update, delete)
- Test conflict detection for overlapping borrowings
- Test full lifecycle scenarios (create → activate → complete)
- Test edge cases (same start/end time, no end date, etc.)
- All tests passing with MongoDB integration
- Add TEST_AUSLEIHUNG.md documentation with usage guide

Test Coverage:
- Status Determination: 5 tests
- CRUD Operations: 8 tests
- Conflict Detection: 3 tests
- Query Operations: 3 tests
- Lifecycle Tests: 3 tests
- Edge Cases: 3 tests
- Period Bookings: 1 test

Run with: pytest test_ausleihung.py -v
2026-04-19 14:19:30 +02:00
Aiirondev_dev f98ad5d0ee Implement Web Push Notifications system
- Add push_notifications.py module for managing subscriptions and sending notifications
- Create Flask API endpoints for subscription management (/api/push/*)
- Integrate push sending with existing notification system (_create_notification)
- Create frontend JavaScript library (push-notifications.js) for client-side subscription
- Update base.html template with manifest link and Service Worker registration
- Add manifest.json and service-worker.js for PWA support
- Add pywebpush dependency to requirements.txt
- Create generate-vapid-keys.sh script for VAPID key generation
- Add comprehensive documentation (WEB_PUSH_NOTIFICATIONS.md)

Features:
- Subscribe/unsubscribe users from push notifications
- Store subscriptions in MongoDB with automatic indexing
- Send push to individual users or all admins
- Notification deduplication and versioning
- Service Worker handles offline caching and push events
- Full PWA support for mobile app installation
- VAPID authentication for secure push communication
v0.6.0
2026-04-19 13:59:00 +02:00
Aiirondev_dev 3469264445 Add debugging for planned booking activation issues 2026-04-19 13:40:27 +02:00
Aiirondev_dev a2a0f0dc53 fix: Improve pin_compose_app_image script with clearer state tracking and proper build block handling v0.5.34 2026-04-19 13:24:17 +02:00
Aiirondev_dev c551352f25 Fix docker-compose YAML structure: normalize depends_on formatting and fix pin_compose_app_image script v0.5.33 2026-04-19 13:19:22 +02:00
Aiirondev_dev 3a845ce07f feat: Update nginx service dependencies to ensure they start only after app and redis services v0.5.32 2026-04-19 13:13:51 +02:00
Aiirondev_dev 1bfe998906 feat: Update nginx service dependency to ensure it starts only after the app service v0.5.31 2026-04-19 13:08:41 +02:00
Aiirondev_dev 3fdbadd454 feat: Refactor image handling in Docker Compose file processing for improved indentation management v0.5.30 2026-04-19 12:59:23 +02:00
Aiirondev_dev 110327b73e feat: Enhance scheduler initialization to clean up stale lock files for multi-worker deployments v0.5.29 2026-04-18 14:02:28 +02:00
Aiirondev_dev d8cd1906b3 feat: Update item status handling during appointment activation and cancellation v0.5.28 2026-04-18 13:18:17 +02:00
Aiirondev_dev b8a7d6c797 feat: Enhance appointment scheduling to set initial status and notify users on activation v0.5.27 2026-04-18 12:57:14 +02:00
Aiirondev_dev ac3e48da3d feat: Implement background scheduler initialization to prevent race conditions in multi-worker deployments v0.5.25 v0.5.26 2026-04-18 12:39:07 +02:00
Aiirondev_dev 5d9069e690 feat: Add function to open item modal with details fetched from backend v0.5.24 2026-04-18 11:59:12 +02:00
Aiirondev_dev 16f34a1425 feat: Create activation notifications for appointments when status changes to active v0.5.23 2026-04-18 11:50:48 +02:00
Aiirondev_dev a12eea15d7 feat: Enhance item detail views with damage history and improved loading logic v0.5.22 2026-04-18 11:39:56 +02:00
Aiirondev_dev 5ba5aea6f6 feat: Add notification creation for activated appointments with item details v0.5.21 2026-04-18 11:02:48 +02:00
Aiirondev_dev 6e7d961a98 feat: Add endpoint to retrieve calendar bookings for the current user session v0.5.20 2026-04-18 10:44:51 +02:00
Aiirondev_dev 627de12bea feat: Update username generation to use abbreviated format from first and last name v0.5.19 2026-04-18 00:06:55 +02:00
Aiirondev_dev ec165ea6bd feat: Generate username automatically from first and last name during registration v0.5.18 2026-04-17 23:58:12 +02:00
Aiirondev_dev 29e0356641 feat: Implement optimized image serving and caching for improved performance v0.5.17 2026-04-17 23:46:08 +02:00
Aiirondev_dev fd6915a923 feat: Enhance favorites management by binding session favorites to authenticated users and updating cache handling v0.5.16 2026-04-17 23:25:02 +02:00
Aiirondev_dev 9b7ba39702 feat: Update user registration to include first and last name fields and enhance permission checks for upload actions v0.5.15 2026-04-17 23:22:10 +02:00
Aiirondev_dev 3b637de188 feat: Implement custom permission settings in user registration and update user addition logic v0.5.14 2026-04-17 23:07:37 +02:00