Commit Graph

231 Commits

Author SHA1 Message Date
0e51a3883d fix: Update registry secrets in build and deploy workflows for consistency
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Has been cancelled
2025-10-23 17:39:47 +02:00
f228eac61f feat: Add Docker support and CI/CD workflows documentation; include setup instructions for Docker-based deployment
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m35s
Deploy to Server / deploy (push) Failing after 3s
Run Tests / test (push) Failing after 6m2s
2025-10-23 17:25:26 +02:00
119bbcc7a8 feat: Add Docker workflows for building, testing, and deploying the application; include Dockerfile for image creation 2025-10-23 17:06:14 +02:00
8aee7b0d74 refactor: Enhance architecture documentation with detailed sections on purpose, constraints, runtime view, deployment, and key concepts; add implementation plan and update quickstart reference 2025-10-23 16:59:15 +02:00
76f92f8a7d remove coverage xml 2025-10-21 19:25:16 +02:00
c6948bc954 fix: Update file list formatting in architecture documentation for consistency 2025-10-21 18:26:30 +02:00
bd36f46d30 fix: Update file list formatting in architecture documentation for consistency 2025-10-21 18:24:06 +02:00
9ed2a70521 refactor: Update documentation links for improved navigation; remove obsolete architecture file 2025-10-21 18:18:38 +02:00
4b3a15ed15 Add comprehensive architecture documentation and related scripts
- Introduced multiple architecture documentation files covering building block view, runtime view, deployment view, concepts, architecture decisions, quality requirements, technical risks, glossary, UI and styling, testing, CI, and development setup.
- Migrated existing content from `architecture_overview.md` and `implementation_plan.md` into structured documentation.
- Created scripts for checking broken links in documentation and formatting Markdown files for consistency.
- Updated quickstart guide to provide clearer setup instructions and usage overview.
- Removed outdated MVP features and testing strategy documents to streamline documentation.
2025-10-21 15:39:17 +02:00
2bae273d9e feat: Add currency normalization with migration and backfill tooling; update models and API for currency integration 2025-10-21 10:49:48 +02:00
672cafa5b9 feat: Implement currency management with models, routes, and UI updates; add backfill script for existing records 2025-10-21 10:33:08 +02:00
fcea39deb0 feat: Add currency and unit support across models, routes, and templates; enhance UI for consumption, costs, and production 2025-10-21 09:53:04 +02:00
139ae04538 Enhance UI rendering and add unit tests for simulation functionality
- Updated the `_render` function in `ui.py` to correctly pass the request object to `TemplateResponse`.
- Initialized `upcoming_maintenance` as a typed list in `_load_dashboard` for better type safety.
- Added new unit tests in `test_simulation.py` to cover triangular sampling and uniform distribution defaults.
- Implemented a test to ensure that running the simulation without parameters returns an empty result.
- Created a parameterized test in `test_ui_routes.py` to verify that additional UI routes render the correct templates and context.
2025-10-21 09:26:39 +02:00
9114b584c2 feat: Enhance end-to-end testing framework with improved server setup and UI validation 2025-10-21 09:04:06 +02:00
f020d276bc Enhance testing framework and UI feedback
- Updated architecture documentation to include details on UI rendering checks and Playwright end-to-end tests.
- Revised testing documentation to specify Playwright for frontend E2E tests and added details on running tests.
- Implemented feedback mechanism in scenario form for successful creation notifications.
- Added feedback div in ScenarioForm.html for user notifications.
- Created new fixtures for Playwright tests to manage server and browser instances.
- Developed comprehensive E2E tests for consumption, costs, equipment, maintenance, production, and scenarios.
- Added smoke tests to verify UI page loading and form submissions.
- Enhanced unit tests for simulation and validation, including new tests for report generation and validation errors.
- Created new test files for router validation to ensure consistent error handling.
- Established a new test suite for UI routes to validate dashboard and reporting functionalities.
- Implemented validation tests to ensure proper handling of JSON payloads.
2025-10-21 08:29:11 +02:00
ae4b9c136f feat: Introduce reusable template components and enhance styling utilities for consistent UI 2025-10-21 07:43:10 +02:00
18f4ae7278 Refactor templates to externalize JavaScript: Moved inline scripts to separate JS files and added JSON data attributes for better maintainability and performance. Updated consumption, costs, equipment, maintenance, production, reporting, and simulations templates accordingly. 2025-10-21 07:20:02 +02:00
5a84445e90 feat: Enhance equipment, maintenance, production, and simulation management interfaces
- Updated equipment.html to include scenario filtering, equipment addition form, and dynamic equipment listing.
- Enhanced maintenance.html with scenario filtering, maintenance entry form, and dynamic equipment selection.
- Improved production.html to allow scenario filtering and production output entry.
- Revamped reporting.html to display scenario KPI summaries with refresh functionality.
- Expanded simulations.html to support scenario selection, simulation run history, and detailed results display.
- Refactored base_header.html for improved navigation structure and active link highlighting.
2025-10-21 00:09:00 +02:00
5ecd2b8d19 feat: Add main CSS styles for the application
feat: Refactor Dashboard template to extend base layout and improve structure

feat: Enhance Parameter Input template with improved layout and feedback mechanisms

feat: Update Scenario Form template to utilize base layout and improve user experience

feat: Create base layout template for consistent styling across pages

feat: Add Consumption, Costs, Equipment, Maintenance, Production, Reporting, and Simulations templates with placeholders for future functionality

feat: Implement base header and footer partials for consistent navigation and footer across the application
2025-10-20 22:58:59 +02:00
c6233e1a56 refactor: Centralize database session management in a shared dependency module 2025-10-20 22:30:56 +02:00
434be86b76 feat: Enhance dashboard metrics and summary statistics
- Added new summary fields: variance, 5th percentile, 95th percentile, VaR (95%), and expected shortfall (95%) to the dashboard.
- Updated the display logic for summary metrics to handle non-finite values gracefully.
- Modified the chart rendering to include additional percentile points and tail risk metrics in tooltips.

test: Introduce unit tests for consumption, costs, and other modules

- Created a comprehensive test suite for consumption, costs, equipment, maintenance, production, reporting, and simulation modules.
- Implemented fixtures for database setup and teardown using an in-memory SQLite database for isolated testing.
- Added tests for creating, listing, and validating various entities, ensuring proper error handling and response validation.

refactor: Consolidate parameter tests and remove deprecated files

- Merged parameter-related tests into a new test file for better organization and clarity.
- Removed the old parameter test file that was no longer in use.
- Improved test coverage for parameter creation, listing, and validation scenarios.

fix: Ensure proper validation and error handling in API endpoints

- Added validation to reject negative amounts in consumption and production records.
- Implemented checks to prevent duplicate scenario creation and ensure proper error messages are returned.
- Enhanced reporting endpoint tests to validate input formats and expected outputs.
2025-10-20 22:06:39 +02:00
606cb64ff1 Enhance simulation API and logic: refactor parameter handling, add support for multiple distributions, and improve simulation result persistence 2025-10-20 21:18:24 +02:00
e73a987d25 Refactor and enhance CalMiner application
- Updated README.md to reflect new features and usage instructions.
- Removed deprecated Dashboard.html component and integrated dashboard functionality directly into the main application.
- Revised architecture documentation for clarity and added module map and request flow diagrams.
- Enhanced maintenance model to include equipment association and cost tracking.
- Updated requirements.txt to include new dependencies (httpx, pandas, numpy).
- Improved consumption, maintenance, production, and reporting routes with better validation and response handling.
- Added unit tests for maintenance and production routes, ensuring proper CRUD operations and validation.
- Enhanced reporting service to calculate and return detailed summary statistics.
- Redesigned Dashboard.html for improved user experience and integrated Chart.js for visualizing simulation results.
2025-10-20 20:53:55 +02:00
fee857637f Add models and routes for costs, consumption, equipment, maintenance, and production; implement CRUD operations and unit tests 2025-10-20 19:21:47 +02:00
0b19a93e0d Implement distribution management API and UI forms; add distribution model and tests 2025-10-20 18:51:23 +02:00
4533a4c166 Add unit tests for scenarios, parameters, reporting, and simulation features 2025-10-20 18:38:02 +02:00
39c45e720c Add initial implementation of CalMiner with project structure, environment setup, and core features
- Create .env.example for environment variables
- Update README with project structure and development setup instructions
- Implement FastAPI application with API routes for scenarios and parameters
- Add database models for scenarios, parameters, and simulation results
- Introduce validation middleware for JSON requests
- Create services for running simulations and generating reports
- Add testing strategy and directory structure in documentation
2025-10-20 18:37:57 +02:00
cb9749010f Initial project structure 2025-10-20 17:12:33 +02:00
ebac14cbb2 Add .gitignore file and update README and implementation plan documentation 2025-10-20 17:03:45 +02:00
328910a985 Add comprehensive documentation for CalMiner, including architecture, development setup, MVP features, implementation plan, and testing strategy 2025-10-20 16:25:39 +02:00
218b0ba58d first commit 2025-10-20 15:02:35 +02:00