Commit Graph

60 Commits

Author SHA1 Message Date
ec56099e2a Merge pull request 'feat/app-settings' (#2) from feat/app-settings into main
Some checks failed
Run Tests / test (push) Successful in 1m56s
Deploy to Server / deploy (push) Failing after 2s
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
Reviewed-on: #2
2025-10-25 19:36:36 +02:00
c71908c8d9 Merge branch 'main' into feat/app-settings
All checks were successful
Run Tests / test (push) Successful in 1m51s
2025-10-25 19:34:10 +02:00
75f533b87b fix: Update HTTP status code for unprocessable entity and improve test database setup
All checks were successful
Run Tests / test (push) Successful in 1m51s
2025-10-25 19:26:43 +02:00
5b1322ddbc feat: Add application-level settings for CSS color management
Some checks failed
Run Tests / test (push) Failing after 1m51s
- Introduced a new table `application_setting` to store configurable application options.
- Implemented functions to manage CSS color settings, including loading, updating, and reading environment overrides.
- Added a new settings view to render and manage theme colors.
- Updated UI to include a settings page with theme color management and environment overrides display.
- Enhanced CSS styles for the settings page and sidebar navigation.
- Created unit and end-to-end tests for the new settings functionality and CSS management.
2025-10-25 19:20:52 +02:00
713c9feebb Merge pull request 'feat/database-setup' (#1) from feat/database-setup into main
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m38s
Deploy to Server / deploy (push) Failing after 3s
Run Tests / test (push) Successful in 1m48s
Reviewed-on: #1
2025-10-25 18:16:57 +02:00
e74ec79cc9 feat: Add staging environment setup guide and configuration files; update .gitignore
All checks were successful
Run Tests / test (push) Successful in 1m49s
2025-10-25 18:01:46 +02:00
f3ce095b71 docs: Add summary for Postgres container setup in quickstart guide 2025-10-25 17:05:49 +02:00
4e1658a638 refactor: Update CI configuration and local setup documentation; remove obsolete currency migration scripts 2025-10-25 16:59:35 +02:00
bff75a722e fix: Disable trust_env for httpx requests in live server and currency seeding fixtures
All checks were successful
Run Tests / test (push) Successful in 1m49s
2025-10-25 16:40:55 +02:00
d455320eea fix: Update CI workflow to configure APT proxy and improve currency workflow tests
Some checks failed
Run Tests / test (push) Failing after 2m5s
2025-10-25 16:34:10 +02:00
2182f723f7 feat: Add step to install Playwright browsers in CI workflow
Some checks failed
Run Tests / test (push) Failing after 2m15s
2025-10-25 16:23:47 +02:00
b3e6546bb9 fix: Comment out pip caching step in CI workflow
Some checks failed
Run Tests / test (push) Failing after 16s
2025-10-25 16:22:02 +02:00
5c66bf7899 fix: Update import statement for client in currency workflow tests
Some checks failed
Run Tests / test (push) Has been cancelled
2025-10-25 16:21:26 +02:00
9bd5b60d7a fix: Update cache key to include requirements-test.txt for better dependency management
Some checks failed
Run Tests / test (push) Failing after 4m48s
2025-10-25 16:11:32 +02:00
01a702847d fix: Update database host in CI workflow to use service name instead of localhost
Some checks failed
Run Tests / test (push) Failing after 4m47s
2025-10-25 16:05:27 +02:00
1237902d55 feat: Add wait step for database service availability in CI workflow
Some checks failed
Run Tests / test (push) Failing after 5m46s
2025-10-25 15:57:03 +02:00
dd3f3141e3 feat: Add currency management feature with CRUD operations
Some checks failed
Run Tests / test (push) Failing after 5m2s
- Introduced a new template for currency overview and management (`currencies.html`).
- Updated footer to include attribution to AllYouCanGET.
- Added "Currencies" link to the main navigation header.
- Implemented end-to-end tests for currency creation, update, and activation toggling.
- Created unit tests for currency API endpoints, including creation, updating, and activation toggling.
- Added a fixture to seed default currencies for testing.
- Enhanced database setup tests to ensure proper seeding and migration handling.
2025-10-25 15:44:57 +02:00
659b66cc28 style: Update color variables in CSS and improve scenario prompts in templates
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m51s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Failing after 4m44s
2025-10-25 11:16:24 +02:00
2b1771af86 fix: Update .gitignore to match test database naming pattern 2025-10-25 11:16:14 +02:00
9b0c29bade refactor: Simplify caching steps in CI workflow and remove redundant cache for test dependencies
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
Deploy to Server / deploy (push) Failing after 3s
Run Tests / test (push) Failing after 5m18s
2025-10-24 19:53:03 +02:00
f35607fedc feat: Add CI workflow for running tests and update database URL handling
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 1m8s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Failing after 9m32s
2025-10-24 19:19:24 +02:00
28fea1f3fe docs: Update README and architecture documents with build instructions and detailed data models
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m59s
Deploy to Server / deploy (push) Failing after 3s
2025-10-24 13:49:04 +02:00
ae19cd67c4 fix: Downgrade docker/build-push-action to v4 and update deploy script to use environment variables
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m10s
Deploy to Server / deploy (push) Failing after 2s
2025-10-23 21:18:25 +02:00
e2f11a1459 refactor: Remove hardcoded production environment variables from Dockerfile
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m9s
Deploy to Server / deploy (push) Failing after 3s
2025-10-23 19:41:13 +02:00
f864ad563a fix: Add proxy configuration in Dockerfile and remove hardcoded environment variables
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 12s
Deploy to Server / deploy (push) Failing after 3s
2025-10-23 19:38:22 +02:00
93a2f54f97 fix: build workflow variables
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 4m10s
Deploy to Server / deploy (push) Failing after 2s
2025-10-23 19:28:41 +02:00
8dedfb8f26 feat: Refactor database configuration to use granular environment variables; update Docker and CI/CD workflows accordingly
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6s
Deploy to Server / deploy (push) Failing after 2s
2025-10-23 19:17:24 +02:00
8c3062fd80 chore: Update action versions in build workflow and add playwright to requirements 2025-10-23 17:55:06 +02:00
0acc2cb3fe fix: Correct registry URL variable in build and deploy workflows
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) Failing after 4m43s
2025-10-23 17:44:15 +02:00
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