Commit Graph

258 Commits

Author SHA1 Message Date
0f79864188 feat: enhance project and scenario management with role-based access control
- Implemented role-based access control for project and scenario routes.
- Added authorization checks to ensure users have appropriate roles for viewing and managing projects and scenarios.
- Introduced utility functions for ensuring project and scenario access based on user roles.
- Refactored project and scenario routes to utilize new authorization helpers.
- Created initial data seeding script to set up default roles and an admin user.
- Added tests for authorization helpers and initial data seeding functionality.
- Updated exception handling to include authorization errors.
2025-11-09 23:14:54 +01:00
27262bdfa3 feat: Implement session management with middleware and update authentication flow 2025-11-09 23:14:41 +01:00
3601c2e422 feat: Implement user and role management with repositories
- Added RoleRepository and UserRepository for managing roles and users.
- Implemented methods for creating, retrieving, and assigning roles to users.
- Introduced functions to ensure default roles and an admin user exist in the system.
- Updated UnitOfWork to include user and role repositories.
- Created new security module for password hashing and JWT token management.
- Added tests for authentication flows, including registration, login, and password reset.
- Enhanced HTML templates for user registration, login, and password management with error handling.
- Added a logo image to the static assets.
2025-11-09 21:48:35 +01:00
53879a411f feat: implement user and role models with password hashing, and add tests for user functionality 2025-11-09 21:45:29 +01:00
2d848c2e09 feat: add integration tests for project and scenario lifecycles, update templates to new Starlette signature, and optimize project retrieval logic 2025-11-09 19:47:35 +01:00
dad862e48e feat: reorder project route registration to prioritize static UI paths and add pytest coverage for navigation endpoints 2025-11-09 19:21:25 +01:00
400f85c907 feat: enhance project and scenario detail pages with metrics, improved layouts, and updated styles 2025-11-09 19:15:48 +01:00
7f5ed6a42d feat: enhance dashboard with new metrics, project and scenario utilities, and comprehensive tests 2025-11-09 19:02:36 +01:00
053da332ac feat: add dashboard route, template, and styles for project and scenario insights 2025-11-09 18:50:00 +01:00
02da881d3e feat: implement scenario comparison validation and API endpoint with comprehensive unit tests 2025-11-09 18:42:04 +01:00
c39dde3198 feat: enhance UI with responsive sidebar toggle and filter functionality for projects and scenarios 2025-11-09 17:48:55 +01:00
faea6777a0 feat: add CSS styles and JavaScript functionality for projects and scenarios, including filtering and layout enhancements 2025-11-09 17:36:31 +01:00
d36611606d feat: connect project and scenario routers to new Jinja2 views with forms and error handling 2025-11-09 17:32:23 +01:00
191500aeb7 feat: add project and scenario templates for detailed views and forms 2025-11-09 17:27:46 +01:00
61b42b3041 feat: implement CRUD APIs for projects and scenarios with validated schemas 2025-11-09 17:23:10 +01:00
8bf46b80c8 feat: add pytest coverage for repository and unit-of-work behaviors 2025-11-09 17:17:42 +01:00
c69f933684 feat: implement repository and unit-of-work patterns for service layer operations 2025-11-09 16:59:58 +01:00
c6fdc2d923 feat: add initial schema and update changelog for database models 2025-11-09 16:57:58 +01:00
dc3ebfbba5 feat: add initial Alembic configuration files for database migrations 2025-11-09 16:57:32 +01:00
32a96a27c5 feat: enhance database models with metadata and new resource types 2025-11-09 16:54:46 +01:00
203a5d08f2 feat: add initial database models and changelog for financial inputs and projects 2025-11-09 16:50:14 +01:00
c6a0eb2588 v2 init 2025-11-09 16:49:46 +01:00
d807a50f77 v2 init 2025-11-09 16:49:27 +01:00
22ddfb671d update README
Some checks failed
CI / test (push) Failing after 7m43s
CI / build (push) Has been skipped
2025-11-09 13:28:24 +01:00
971b4a19ea moved docs to own repo
Some checks failed
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled
2025-11-09 13:25:51 +01:00
5b1278cbea fix: add echo statement to log pip cache directory in CI workflow 2025-11-06 12:08:26 +01:00
b6511e5273 feat: add build job to CI workflow for Docker image creation and pushing
All checks were successful
CI / test (push) Successful in 12m19s
CI / build (push) Successful in 3m27s
2025-11-06 12:06:05 +01:00
bcb15bd0e4 chore: remove obsolete CI workflow configuration 2025-11-06 11:59:48 +01:00
42f8714d71 feat: add CI workflow configuration for testing and building
All checks were successful
CI / test (push) Successful in 14m26s
2025-11-06 11:44:35 +01:00
1881ebe24f fix: correct syntax for environment variable references in CI workflow
All checks were successful
CI / test (push) Successful in 6m11s
2025-11-04 21:36:05 +01:00
d90aae3d0a style: update CSS variables and styles for improved theming and consistency
Some checks failed
CI / test (push) Failing after 4m1s
2025-11-04 21:23:52 +01:00
9934d1483d Merge pull request 'feat/ci-overhaul-20251029' (#11) from feat/ci-overhaul-20251029 into main
Some checks failed
CI / test (push) Failing after 2m5s
Reviewed-on: #11
2025-11-02 18:13:14 +01:00
df1c971354 Merge https://git.allucanget.biz/allucanget/calminer into feat/ci-overhaul-20251029
Some checks failed
CI / test (pull_request) Failing after 2m15s
2025-11-02 16:29:25 +01:00
3a8aef04b0 fix: update database connection details in CI workflow for consistency 2025-11-02 16:29:19 +01:00
45d746d80a Merge pull request 'fix: update UVICORN_PORT and UVICORN_WORKERS in Dockerfile for consistency' (#10) from feat/ci-overhaul-20251029 into main
Some checks failed
CI / test (push) Failing after 4m22s
Reviewed-on: #10
2025-11-02 15:59:22 +01:00
f1bc7f06b9 fix: hardcode database connection details in CI workflow for consistency
Some checks failed
CI / test (pull_request) Failing after 1m54s
2025-11-02 13:40:06 +01:00
82e98efb1b fix: remove DB_PORT variable and use hardcoded value in CI workflow for consistency
Some checks failed
CI / test (pull_request) Failing after 2m24s
2025-11-02 13:09:09 +01:00
f91349dedd Merge branch 'main' into feat/ci-overhaul-20251029
Some checks failed
CI / test (pull_request) Failing after 2m47s
2025-11-02 13:02:18 +01:00
efee50fdc7 fix: update UVICORN_PORT and UVICORN_WORKERS in Dockerfile for consistency
Some checks failed
CI / test (pull_request) Failing after 2m39s
2025-11-02 12:23:26 +01:00
e254d50c0c Merge pull request 'fix: refactor database environment variables in CI workflow for consistency' (#9) from feat/ci-overhaul-20251029 into main
Some checks failed
CI / test (push) Failing after 1m55s
Reviewed-on: #9
2025-11-02 11:21:15 +01:00
6eef8424b7 fix: update DB_PORT to be a string in CI workflow for consistency
Some checks failed
CI / test (pull_request) Failing after 2m15s
2025-11-02 11:13:45 +01:00
c1f4902cf4 fix: update UVICORN_PORT to 8003 in Dockerfile and docker-compose.yml
Some checks failed
CI / test (pull_request) Failing after 3m19s
2025-11-02 11:07:28 +01:00
52450bc487 fix: refactor database environment variables in CI workflow for consistency
Some checks failed
CI / test (pull_request) Failing after 6m30s
2025-10-29 15:34:06 +01:00
c3449f1986 Merge pull request 'Add UI and styling documentation; remove idempotency and logging audits' (#8) from feat/ci-overhaul-20251029 into main
All checks were successful
CI / test (push) Successful in 2m22s
Reviewed-on: #8
2025-10-29 14:26:14 +01:00
f863808940 fix: update .gitignore to include ruff cache and clarify act runner files
All checks were successful
CI / test (pull_request) Successful in 2m21s
2025-10-29 14:23:24 +01:00
37646b571a fix: update system dependencies in CI workflow
Some checks failed
CI / test (pull_request) Failing after 2m51s
2025-10-29 13:57:22 +01:00
22f43bed56 fix: update CI workflow to configure apt-cacher-ng and install system dependencies
All checks were successful
CI / test (pull_request) Successful in 3m26s
2025-10-29 13:54:41 +01:00
72cf06a31d feat: add step to install Playwright browsers in CI workflow
Some checks failed
CI / test (pull_request) Failing after 1m10s
2025-10-29 13:39:02 +01:00
b796a053d6 fix: update database host in CI workflow to use service name
Some checks failed
CI / test (pull_request) Failing after 19s
2025-10-29 13:30:56 +01:00
04d7f202b6 Add UI and styling documentation; remove idempotency and logging audits
Some checks failed
CI / test (pull_request) Failing after 1m8s
- Introduced a new document outlining UI structure, reusable template components, CSS variable conventions, and per-page data/actions for the CalMiner application.
- Removed outdated idempotency audit and logging audit documents as they are no longer relevant.
- Updated quickstart guide to streamline developer setup instructions and link to relevant documentation.
- Created a roadmap document detailing scenario enhancements and data management strategies.
- Deleted the seed data plan document to consolidate information into the setup process.
- Refactored setup_database.py for improved logging and error handling during database setup and migration processes.
2025-10-29 13:20:44 +01:00