develop #1

Merged
Arnike merged 21 commits from develop into main 2026-02-07 18:06:51 +03:00
Owner
No description provided.
Arnike added 21 commits 2026-02-07 18:06:25 +03:00
- Updated .dockerignore and .gitignore for better file management.
- Introduced .env.example for environment variable configuration.
- Added docker-compose.dev.yml for development with mock data and live reload.
- Enhanced Dockerfile to include necessary dependencies and entrypoint script.
- Created mock_data.py to provide sample data for testing without OpenStack/Prometheus.
- Added unit tests for template filters in dashboard.
- Cleaned up various files for consistency and improved readability.
- Introduced a new script for exporting the dashboard as a PDF using html2canvas and jsPDF.
- Added a favicon.ico file and linked it in the base template.
- Updated the base template to include the new PDF export script and modified the button for PDF export functionality.
- Enhanced the index template to include an ID for the dashboard content for PDF generation.
- Consolidated current and projected CPU distribution charts into a single chart for improved clarity.
- Updated chart IDs and labels to reflect the new combined data representation.
- Adjusted JavaScript logic to handle the new chart structure and updated statistics calculations accordingly.
- Updated Dockerfile to standardize environment variable syntax and improve readability.
- Added new CSS variables for chart grid color and enhanced dark theme contrast for CPU chart statistics.
- Modified index.html to utilize new CSS variables for better theme adaptability and improved chart rendering.
- Added DM Sans font to the project, including multiple weights and styles for improved typography.
- Updated package.json and package-lock.json to include @fontsource/dm-sans dependency.
- Enhanced dashboard context to include current cluster CPU state, integrating new data into the context and API responses.
- Updated relevant templates and JavaScript to utilize the new current cluster data for better visualization and user experience.
- Introduced a new API endpoint `/api/source-status/` to return the status of Prometheus and OpenStack data sources.
- Implemented lightweight health check functions for both Prometheus and OpenStack.
- Updated the dashboard template to display the status of data sources dynamically.
- Added tests for the new API endpoint to ensure correct functionality and response handling.
- Configured a cache timeout for source status checks to improve performance.
- Updated index.html to include additional flavor statistics with dynamic data binding for second and third common flavors.
- Refactored JavaScript functions to handle multiple elements for flavor statistics, ensuring accurate updates and removal of loading animations.
- Improved user experience by providing clearer visual representation of flavor data on the dashboard.
Add initial project configuration and CI/CD workflows
Some checks failed
CI / ci (push) Has been cancelled
1baa6e7e6b
- Created pyproject.toml to define project metadata and dependencies for the watcher-visio dashboard.
- Added CI workflow in ci.yml for automated testing, linting, and security checks on push and pull request events.
- Introduced docker-build.yml for building and releasing Docker images, including steps for tagging, logging in to the registry, and generating release notes.
Refactor CI workflows and update Docker build process
Some checks failed
CI / ci (push) Failing after 1m5s
02b38a25eb
- Removed caching step for pip in ci.yml to streamline dependency installation.
- Added a blank line in docker-build.yml for improved readability and organization of job steps.
Refactor code for consistency and readability
Some checks failed
CI / ci (push) Failing after 14s
2a0e0c216a
- Standardized string quotes across multiple files to use double quotes for consistency.
- Improved formatting of JSON dumps in mock data for better readability.
- Enhanced the structure of various functions and data definitions for clarity.
- Updated test cases to reflect changes in data structure and ensure accuracy.
Update Prometheus query function to include timeout parameter
Some checks failed
CI / ci (push) Has been cancelled
876bfa9d2e
- Added a timeout parameter to the requests.get call in the query_prometheus function to enhance reliability and prevent hanging requests.
Update CI workflow to streamline security checks
All checks were successful
CI / ci (push) Successful in 14s
CI / ci (pull_request) Successful in 14s
0a3c0ac54d
- Removed the Safety security check from the CI workflow in ci.yml to simplify the process.
- Retained the installation of Ruff and Bandit for linting and security checks, ensuring continued code quality and security assessment.
Arnike merged commit 7246f54263 into main 2026-02-07 18:06:51 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Arnike/watcher-visio#1
No description provided.