- Add new "alle-kommentare" (all comments) view for staff users only
- Allows staff to view and manage all user comments across the system
- Grouped by document with user information displayed
- Staff can delete any comment via the dedicated delete button
- Restricts access via user_passes_test decorator
- Create all_comments.html template
- Based on user_comments template with added username field
- Shows comment author, creation time, and edit time
- Provides delete functionality for comment management
- Update navigation menu
- Add "Alle Kommentare" link in user dropdown menu
- Link only visible to staff members
- Add URL route for alle-kommentare page
- Path: /dokumente/alle-kommentare/
- URL name: all_comments
- Bump application versions
- Update footer version from 0.965 to 0.966
- Update K8s deployment version from 0.917 to 0.918
- ArgoCD deployment already at 0.966
All existing tests pass (148 tests total)
- Redesign incomplete Vorgaben page from card layout to unified table format
- Add visual status indicators (✓/✗) for each completeness category
- Link Vorgaben directly to admin edit pages (/autorenumgebung/ instead of /admin/)
- Enhance Vorgabe admin with Kurztext and Langtext inlines for complete editing
- Update all tests to work with new table structure and admin URLs
- Add JavaScript for dynamic summary count updates
- Maintain staff-only access control and responsive design
All 112 tests passing successfully.
## New Incomplete Vorgaben Page
- Created new incomplete_vorgaben view in dokumente/views.py
- Added URL pattern /dokumente/unvollstaendig/ in dokumente/urls.py
- Built responsive Bootstrap template showing 4 categories of incomplete Vorgaben:
1. Vorgaben without references
2. Vorgaben without Stichworte
3. Vorgaben without Kurz- or Langtext
4. Vorgaben without Checklistenfragen
- Added navigation link "Unvollständig" to main menu
- Created comprehensive test suite with 14 test cases covering all functionality
- All incomplete Vorgaben tests now passing (14/14)
## Bug Fixes and Improvements
- Fixed model field usage: corrected Referenz model field names (name_nummer, url)
- Fixed test logic: corrected test expectations and data setup for accurate validation
- Fixed template styling: made badge styling consistent across all sections
- Removed debug output: cleaned up print statements for production readiness
- Enhanced test data creation to use correct model field names
## Test Coverage
- Total tests: 41/41 passing
- Search functionality: 27 tests covering validation, security, case-insensitivity, and content types
- Incomplete Vorgaben: 14 tests covering page functionality, data categorization, and edge cases
- Both features are fully tested and production-ready
## Security Enhancements
- Input validation prevents SQL injection attempts
- HTML escaping prevents XSS attacks in search results
- Length validation prevents buffer overflow attempts
- Character validation ensures only appropriate input is processed
The application now provides robust search capabilities with comprehensive security measures and a valuable content management tool for identifying incomplete Vorgaben entries.