Commit Graph

63 Commits

Author SHA1 Message Date
GW_MC
30e500ec44 Added macro for handling both transaction and pooled connection 2025-12-07 19:09:37 +08:00
GW_MC
e758452509 Include user table, identity and session table 2025-12-07 19:08:22 +08:00
GW_MC
9c139d6007 refactor: replace IntoServiceError trait with direct ServiceError conversions 2025-12-07 14:40:11 +08:00
ce404670d6 Merge pull request 'Basic Documentation' (#8) from documentation into master
All checks were successful
Verify / verify-generated-code (push) Successful in 53s
Verify / verify-openapi-spec (push) Successful in 6s
Verify / verify-frontend-api-client (push) Successful in 8s
Test / test-frontend (push) Successful in 21s
Test / frontend-build (push) Successful in 24s
Test / lint (push) Successful in 1m9s
Test / test (push) Successful in 1m14s
Reviewed-on: #8
2025-12-05 22:50:20 +08:00
GW_MC
5668f465bb feat: add initial documentation and setup files for YANPM
All checks were successful
Test / test-frontend (pull_request) Successful in 23s
Test / frontend-build (pull_request) Successful in 26s
Verify / verify-generated-code (pull_request) Successful in 53s
Verify / verify-openapi-spec (pull_request) Successful in 6s
Test / test (pull_request) Successful in 1m15s
Test / lint (pull_request) Successful in 1m13s
Verify / verify-frontend-api-client (pull_request) Successful in 8s
2025-12-05 21:09:58 +08:00
f9c1cac50f Merge pull request 'feature/openapi' (#7) from feature/openapi into master
All checks were successful
Test / test-frontend (push) Successful in 21s
Test / frontend-build (push) Successful in 22s
Verify / verify-generated-code (push) Successful in 52s
Verify / verify-openapi-spec (push) Successful in 1m10s
Test / test (push) Successful in 1m12s
Test / lint (push) Successful in 1m11s
Verify / verify-frontend-api-client (push) Successful in 21s
Reviewed-on: #7
2025-12-05 20:50:35 +08:00
GW_MC
5e0ab960f9 fix: update import path for TanstackQueryApiClient to use the correct generated client
All checks were successful
Test / test-frontend (pull_request) Successful in 22s
Test / frontend-build (pull_request) Successful in 25s
Verify / verify-generated-code (pull_request) Successful in 53s
Verify / verify-openapi-spec (pull_request) Successful in 1m11s
Test / test (pull_request) Successful in 1m13s
Test / lint (pull_request) Successful in 1m14s
Verify / verify-frontend-api-client (pull_request) Successful in 22s
2025-12-05 20:43:46 +08:00
GW_MC
75a3777cb0 add verify frontend api client
Some checks failed
Test / test-frontend (pull_request) Successful in 21s
Test / frontend-build (pull_request) Failing after 20s
Test / test (pull_request) Has been skipped
Test / lint (pull_request) Has been skipped
Verify / verify-openapi-spec (pull_request) Has been cancelled
Verify / verify-frontend-api-client (pull_request) Has been cancelled
Verify / verify-generated-code (pull_request) Has been cancelled
2025-12-05 20:40:11 +08:00
GW_MC
d33f4f103f move generated client into generated/api-client
Some checks failed
Test / test-frontend (pull_request) Successful in 22s
Test / frontend-build (pull_request) Failing after 19s
Test / test (pull_request) Has been skipped
Test / lint (pull_request) Has been skipped
Verify / verify-openapi-spec (pull_request) Has been cancelled
Verify / verify-generated-code (pull_request) Has been cancelled
2025-12-05 20:37:46 +08:00
GW_MC
a7524ab076 Added openapi based api client 2025-12-05 20:28:59 +08:00
GW_MC
1c051f9502 Add verification workflow for generated code and OpenAPI spec
All checks were successful
Test / test-frontend (pull_request) Successful in 24s
Test / frontend-build (pull_request) Successful in 24s
Verify / verify-generated-code (pull_request) Successful in 7m58s
Verify / verify-openapi-spec (pull_request) Successful in 1m12s
Test / test (pull_request) Successful in 1m12s
Test / lint (pull_request) Successful in 1m11s
2025-12-05 19:00:04 +08:00
GW_MC
81fbf8281f Refactor health check API to include OpenAPI tagging and enhance HealthInfo schema documentation 2025-12-05 18:17:29 +08:00
GW_MC
8875122e1b Add OpenAPI specification and generation command 2025-12-05 18:03:25 +08:00
GW_MC
65d40c1e83 Add start server command and logging setup for CLI 2025-12-05 18:03:17 +08:00
GW_MC
d2b842d933 Add CLI command for generating OpenAPI documentation 2025-12-05 17:22:51 +08:00
GW_MC
34ebfaddbc Add OpenAPI support and health info endpoint documentation 2025-12-05 17:01:29 +08:00
efdb47a117 Merge pull request 'Add health check routes and state management' (#6) from feature/health-check into master
All checks were successful
Test / verify-generated-code (push) Successful in 53s
Test / test-frontend (push) Successful in 19s
Test / frontend-build (push) Successful in 23s
Test / test (push) Successful in 1m12s
Test / lint (push) Successful in 1m12s
Reviewed-on: #6
2025-12-05 15:15:29 +08:00
GW_MC
5210c64c5d Simplify health endpoint
All checks were successful
Test / verify-generated-code (pull_request) Successful in 54s
Test / test-frontend (pull_request) Successful in 22s
Test / frontend-build (pull_request) Successful in 25s
Test / test (pull_request) Successful in 1m12s
Test / lint (pull_request) Successful in 1m13s
2025-12-05 15:08:21 +08:00
GW_MC
23c6bc4fd0 Add #[allow(dead_code)] annotation to HealthState::new for test usage
All checks were successful
Test / verify-generated-code (pull_request) Successful in 55s
Test / test-frontend (pull_request) Successful in 20s
Test / frontend-build (pull_request) Successful in 23s
Test / test (pull_request) Successful in 1m13s
Test / lint (pull_request) Successful in 1m15s
2025-12-05 14:20:56 +08:00
GW_MC
bbc6977e73 Add health check routes and state management
Some checks failed
Test / verify-generated-code (pull_request) Successful in 56s
Test / test-frontend (pull_request) Successful in 22s
Test / frontend-build (pull_request) Successful in 24s
Test / test (pull_request) Successful in 1m14s
Test / lint (pull_request) Failing after 1m13s
2025-12-05 14:05:09 +08:00
968911e489 Merge pull request 'setup frontend' (#5) from feature/frontend-setup into master
All checks were successful
Test / verify-generated-code (push) Successful in 48s
Test / test-frontend (push) Successful in 21s
Test / frontend-build (push) Successful in 23s
Test / test (push) Successful in 1m10s
Test / lint (push) Successful in 1m10s
Reviewed-on: #5
2025-12-02 20:50:06 +08:00
GW_MC
c79ef265db use workflow specific cache instead of artifact
All checks were successful
Test / verify-generated-code (pull_request) Successful in 54s
Test / test-frontend (pull_request) Successful in 23s
Test / frontend-build (pull_request) Successful in 25s
Test / test (pull_request) Successful in 1m13s
Test / lint (pull_request) Successful in 1m12s
2025-12-02 20:44:18 +08:00
GW_MC
0374d63efe Add frontend build artifact handling and linting steps to CI workflow
Some checks failed
Test / verify-generated-code (pull_request) Successful in 55s
Test / test-frontend (pull_request) Successful in 20s
Test / frontend-build (pull_request) Failing after 38s
Test / test (pull_request) Has been skipped
Test / lint (pull_request) Has been skipped
2025-12-02 20:18:48 +08:00
GW_MC
06cabb0e18 Add catch-all 404 route and NotFound component to frontend routing
Some checks failed
Test / verify-generated-code (pull_request) Successful in 49s
Test / test (pull_request) Failing after 1m10s
Test / test-frontend (pull_request) Successful in 23s
Test / lint (pull_request) Failing after 1m8s
2025-12-02 19:51:49 +08:00
GW_MC
051951dc44 Added frontend testing script and job
Some checks failed
Test / verify-generated-code (pull_request) Successful in 53s
Test / test (pull_request) Failing after 1m9s
Test / test-frontend (pull_request) Successful in 1m7s
Test / lint (pull_request) Failing after 1m8s
2025-12-02 19:48:25 +08:00
GW_MC
edbcdaeff4 Implement frontend routing and API fallback handling; add dependencies for include_dir and mime_guess
Some checks failed
Test / verify-generated-code (pull_request) Successful in 7m59s
Test / test (pull_request) Failing after 1m12s
Test / lint (pull_request) Failing after 1m11s
2025-12-02 19:25:46 +08:00
GW_MC
27173c01da Added basic frontend setup 2025-12-02 19:18:14 +08:00
6b73b64a3a Merge pull request 'feature/api-setup' (#4) from feature/api-setup into master
All checks were successful
Test / verify-generated-code (push) Successful in 53s
Test / test (push) Successful in 1m9s
Test / lint (push) Successful in 1m9s
Reviewed-on: #4
2025-12-02 17:25:45 +08:00
GW_MC
f4e6eb56c8 Update sea-orm dependencies to use workspace configuration; add dead code annotations in service error handling and settings service
All checks were successful
Test / verify-generated-code (pull_request) Successful in 7m57s
Test / test (pull_request) Successful in 1m9s
Test / lint (pull_request) Successful in 1m9s
2025-12-02 17:12:24 +08:00
GW_MC
f71cf370cd Refactor AppState and update database connection handling; integrate SettingsService 2025-12-02 16:56:01 +08:00
GW_MC
fae951c902 Add async-trait and sea-orm dependencies; implement SettingsService for configuration management 2025-12-02 16:55:39 +08:00
GW_MC
8b98590a1e Add service_error module for error handling 2025-12-02 16:55:08 +08:00
GW_MC
6cd55d06a2 Implement basic middleware handling
All checks were successful
Test / verify-generated-code (pull_request) Successful in 8m1s
Test / test (pull_request) Successful in 1m9s
Test / lint (pull_request) Successful in 1m5s
2025-12-02 15:47:56 +08:00
GW_MC
547d73fab7 temp allow deadcode for AppState struct
All checks were successful
Test / verify-generated-code (pull_request) Successful in 8m32s
Test / test (pull_request) Successful in 1m10s
Test / lint (pull_request) Successful in 1m7s
2025-11-27 19:05:41 +08:00
GW_MC
537737b1cc refactor configs into a crate 2025-11-27 18:59:40 +08:00
GW_MC
bb622df89b Basic route structure 2025-11-27 18:50:11 +08:00
GW_MC
e849b71a40 Implement API setup with configuration management and startup tasks
- Add `Cargo.toml` for API with dependencies.
- Create `config.rs` for managing application settings.
- Implement logging and server settings in `config.rs`.
- Add `main.rs` to initialize the application and handle database connections.
- Introduce `task` module with startup tasks, including database migrations.
- Update `.gitignore` to exclude `config.yaml` and remove `.gitkeep`.
2025-11-26 19:45:37 +08:00
GW_MC
56c1161e97 Change database log level to debug 2025-11-25 21:17:03 +08:00
GW_MC
f9218e0927 Add support for environment file generation in EnvFile struct
- Introduced new methods for writing environment files in YAML and DotEnv formats.
- Updated EnvFile struct to include a buffer for storing key-value pairs.
- Modified write_env_files function to create and write to environment files based on configuration.
- Added tests for environment file writing functionality.
2025-11-25 21:16:21 +08:00
d9105957a8 Merge pull request 'Setup database' (#1) from feature/database-setup into master
All checks were successful
Test / verify-generated-code (push) Successful in 1m9s
Test / test (push) Successful in 1m10s
Test / lint (push) Successful in 48s
Reviewed-on: #1
2025-11-19 21:49:30 +08:00
GW_MC
f0cfe5ec43 Cache rust toolchain in setup-rust action
All checks were successful
Test / verify-generated-code (pull_request) Successful in 2m15s
Test / test (pull_request) Successful in 1m10s
Test / lint (pull_request) Successful in 47s
2025-11-19 21:44:38 +08:00
GW_MC
afb10424d5 Merge branch 'master' into feature/database-setup
All checks were successful
Test / verify-generated-code (pull_request) Successful in 1m19s
Test / test (pull_request) Successful in 1m17s
Test / lint (pull_request) Successful in 58s
2025-11-19 21:17:35 +08:00
GW_MC
3de9ecc5c1 remove unused returns, and reexport ConnectOption
All checks were successful
Test / verify-generated-code (pull_request) Successful in 1m38s
Test / test (pull_request) Successful in 3m30s
Test / lint (pull_request) Successful in 3m57s
2025-11-19 21:02:28 +08:00
GW_MC
800c55238d fix clippy
All checks were successful
Test / test (pull_request) Successful in 3m14s
Test / verify-generated-code (pull_request) Successful in 3m43s
Test / lint (pull_request) Successful in 58s
2025-11-19 19:59:21 +08:00
GW_MC
6d1888e6c3 Fix clippy warnings
Some checks failed
Test / verify-generated-code (pull_request) Successful in 8m9s
Test / test (pull_request) Successful in 7m54s
Test / lint (pull_request) Failing after 3m21s
2025-11-19 19:27:43 +08:00
GW_MC
43c6b54ebd add gitkeep for api
Some checks failed
Test / verify-generated-code (pull_request) Successful in 7m53s
Test / test (pull_request) Successful in 8m3s
Test / lint (pull_request) Failing after 7m21s
2025-11-15 12:52:40 +08:00
a20d6456c6 Merge pull request 'action-runner' (#3) from action-runner into master
Some checks failed
Test / verify-generated-code (push) Failing after 2m43s
Test / test (push) Failing after 2m47s
Test / lint (push) Failing after 2m48s
Reviewed-on: #3
2025-11-15 12:15:51 +08:00
GW_MC
f7d6ab9604 Update verify generated code to watch only generated folders
Some checks failed
Test / verify-generated-code (pull_request) Has been cancelled
Test / test (pull_request) Has been cancelled
Test / lint (pull_request) Has been cancelled
2025-11-15 12:14:04 +08:00
GW_MC
3b459915b6 Add composite action for setting up Rust environment and create test workflow 2025-11-15 12:13:59 +08:00
GW_MC
17f7e06e8a Update verify generated code to watch only generated folders
Some checks failed
Test / verify-generated-code (pull_request) Failing after 7m55s
Test / test (pull_request) Successful in 7m59s
Test / lint (pull_request) Failing after 7m22s
2025-11-15 11:41:52 +08:00