- Added Playwright tests for the Stark import system covering navigation, modal interactions, CSV uploads, and database verification.
- Developed Selenium tests to validate the complete workflow of Stark material imports, including API checks and project creation.
- Created a JavaScript test suite for Stark imports using Selenium WebDriver.
- Introduced integration tests to verify database connections, table existence, and API endpoint availability.
- Enhanced test scripts with detailed logging and error handling for better traceability.
- Ensured cleanup of temporary files and resources after tests execution.
- Created DATABASE_BACKUP_SETUP.md for detailed backup instructions
- Implemented backup-databases.sh for automated database backups
- Added logrotate configuration for managing backup logs
- Developed setup scripts for user-specific backup configurations
- Included error handling and logging in backup processes
- Established cron job setup for automated backups
- Provided examples and troubleshooting tips in documentation
- Integrated OpenAI Costs API into the backend service with new methods for fetching costs and detailed breakdowns.
- Added new API endpoints for retrieving costs, budget status, and detailed cost breakdown.
- Updated frontend to display OpenAI costs and budget status, including new UI components and states.
- Enhanced styling for budget status and cost breakdown sections.
- Configured environment variables for OpenAI API access.
- Created comprehensive documentation for setup, API endpoints, and user flow.
- Added test script for validating API endpoints.
- Fixed production issues by ensuring new endpoints are loaded correctly.
- Created a new dashboard component for displaying real-time quote metrics.
- Integrated with Ordrestyring GraphQL API for fetching offers and metrics.
- Added backend endpoint for dashboard data retrieval.
- Implemented responsive design and error handling for user-friendly experience.
- Configured auto-refresh for live data updates every 5 minutes.
fix: Resolve issues with API key configuration and pagination limits
- Updated service to check for both API key variable names.
- Adjusted pagination limit from 500 to 200 to comply with API constraints.
- Modified status mapping logic to align with actual API responses.
docs: Add quick start guide and detailed implementation summary
- Created quick start guide for easy access to the dashboard.
- Documented technical implementation details, including API key management and error handling.
- Provided troubleshooting tips for common issues encountered by users.
- Created `test_alignment.html` to test Excel-style table alignment.
- Implemented `test_excel_table_prod.py` for verifying Excel-style table in production.
- Developed `test_material_search.py` to check styling of material search table.
- Added `test_materials_screenshot.py` for taking screenshots of materials page and verifying table styling.
- Created `test_materials_with_login.py` to test materials table styling with user login.
- Implemented `test_prod_materials.py` to validate production materials page styling and CSS loading.
- Added PUT /api/customer-projects/:projectId endpoint to handle updates for selected_package_id and selected_package_name.
- Implemented auto-save feature in FinalReview.js to persist material changes automatically.
- Enhanced error handling in InlineSmartPackage.js for package selection saving.
- Updated documentation for materials saving error analysis and implementation details.
- Removed unused code sections in PlanningDashboard.js and added comments for future features.
- Tilføjet /api/materials/search endpoint som søger i bygma_products
- Søger i tekst, vareNr og varegrp kolonner
- Returnerer max 50 resultater sorteret alfabetisk
- Frontend kan nu søge materialer i database via manuel tilføjelse
- Tilføjet condition så B7 pakke-beskrivelse kun vises hvis selectedPackage.id !== 'manual'
- Disabled fallback materials useEffect for manuel mode
- Materialer kommer nu kun fra smart pakke valg eller manuel tilføjelse
- Tilføjet 'Spring over - Tilføj manuelt' knap i Smart Pakke vælger
- Material søgning i database med autocomplete
- Manuel material tilføjelse (eksisterende funktionalitet)
- Hurtig opgave oprettelse med prompts
- Fuld fleksibilitet: vælg mellem Smart Pakke eller manuel mode
- Kan søge i 1000+ materialer fra database
- Kan tilføje custom opgaver med timer/m² eller fast tid
- Fjernet automatisk valg af B7 pakken
- Tilføjet intelligent AI-baseret pakke forslag baseret på projekt titel
- Tilføjet Tagpap Renovering pakke
- Tilføjet Facade Træbeklædning pakke
- Smart forslag UI med lilla gradient boks
- Bruger kan nu selv vælge mellem 3 pakker
- Implemented VisualAITester class for automated UI/UX testing
- Configured environment variables for API keys and paths
- Developed methods for browser setup, login, screenshot capture, and image encoding
- Integrated OpenAI Vision API for visual quality analysis with detailed feedback
- Created tests for various application pages including homepage, project flow, geometry form, and more
- Generated comprehensive HTML report summarizing test results and AI analysis
- Added functionality to copy AI prompts for automated issue resolution
- Implemented authentication tests including valid login and logout
- Developed navigation tests for various sections: Projekt Flow, Planlægning, Materialer, Smart Pakker, Nøgletal, and AI Budget
- Created end-to-end tests for project flow including project creation and geometry input
- Added countdown tests to verify countdown functionality and text format
- Included detailed logging of test results and execution summary
- Configured WebDriver setup with headless option for CI/CD compatibility
- Integrated screenshot functionality for error tracking
- Added a comprehensive manual testing guide for the countdown functionality in `test_countdown_manual.md`.
- Developed a detailed Selenium test suite in `test_countdown_selenium.py` to verify countdown behavior, including server accessibility, login, countdown progression, and UI elements.
- Created a minimal Selenium test version in `test_countdown_selenium_minimal.py` for quick checks without complex setup.
- Introduced a verification script in `test_countdown_verification.py` to analyze code correctness, including server checks, build file existence, and countdown logic.
- Implemented BackupImport component for exporting and importing SmartPackages.
- Added API calls for exporting JSON backups and importing packages.
- Included file validation for JSON format during import.
- Enhanced user interface with MUI components for better user experience.
feat: Create Components Library for reusable components
- Developed ComponentsLibrary component to manage reusable components for SmartPackages.
- Integrated CRUD operations for components with API endpoints.
- Added filtering functionality by component category.
- Included dummy data for initial testing and development.
feat: Implement Statistics View for SmartPackages
- Created StatisticsView component to display package statistics.
- Added API call to fetch statistics and display key metrics.
- Included visual representation of categories and most used materials.
chore: Create migration for smart_package_components table
- Added SQL migration script to create smart_package_components table.
- Inserted sample data for testing and development purposes.
- Included verification query to check data integrity after insertion.
- Created a new HTML page for testing the Tømmer Opgaver API with buttons for various endpoints.
- Added a LICENSE file for React and related libraries in the frontend build.
- Documented a complete server check report, detailing fixes, test results, and server status.
- Added sample test data for quotes, including project details, geometry, labor, materials, and calculations.
- Implemented a new test suite for production API verification using curl, ensuring all critical endpoints respond correctly and return valid JSON.
- Added frontend integration tests to check for critical errors in the UI and verify key UI elements are present and functional.
- Created test data for quotes and project calculations to facilitate testing.
- Developed a script to check offers in the Ordrestyring system, including detailed task descriptions.
- Added tests for generating PDFs from quote data, ensuring the output is valid and contains expected information.
- Implemented a test script for the Røsevangen project, integrating with the Ordrestyring API and verifying database entries.
Task 22: Fix Kalendervisning/planlægning
Changes:
- Added comprehensive empty state messages for calendar view
- Better data validation before rendering calendar grid
- Helpful messages when no calendar data is available
- Separate message when no employees are found
- Empty week message when no tasks are scheduled
- User-friendly tips for troubleshooting calendar issues
- Improved UX with clear explanations of what might be wrong
- All messages in Danish matching application language
Messages include:
- 'Ingen kalenderdata tilgængelig' with sync tips
- 'Ingen medarbejdere fundet' with Ordrestyring reference
- 'Ingen planlagte opgaver denne uge' with navigation help
Task 21: Vinkelhus calculation support
Changes:
- Added 'Vinkelhus' checkbox to enable L-shaped building mode
- Added fields for second wing dimensions (wing2Width, wing2Length)
- Visual UI section for second wing with green highlighting
- Real-time total area calculation showing both wings combined
- Backend calculates area for both wings separately and combines:
* Flat roof: wing1_area + wing2_area
* Pitched roof: calculates each wing surface area independently
- Database migration adds is_corner_house, wing2_width, wing2_length columns
- Form labels update dynamically (Vinge 1/Vinge 2) when corner house mode active
- Proper data persistence and loading for corner house configurations