443 Commits

Author SHA1 Message Date
bc2c24bcff more refactor
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
2025-12-21 20:34:32 -08:00
a25eafc062 Refactor: Add @testing-library/user-event dependency and enhance tests with improved logging and error handling for better clarity and maintainability
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 31m47s
2025-12-16 18:50:45 -08:00
d5f185ad99 Refactor tests and improve error handling across various services
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m38s
- Updated `useAuth` tests to use async functions for JSON responses to avoid promise resolution issues.
- Changed `AdminBrandManager` tests to use `mockImplementation` for consistent mock behavior.
- Enhanced `ProfileManager.Authenticated` tests to ensure proper error handling and assertions for partial updates.
- Modified `SystemCheck` tests to prevent memory leaks by using `mockImplementation` for API calls.
- Improved error handling in `ai.routes.ts` by refining validation schemas and adding error extraction utility.
- Updated `auth.routes.test.ts` to inject mock logger for better error tracking.
- Refined `flyer.routes.ts` to ensure proper validation and error handling for flyer ID parameters.
- Enhanced `admin.db.ts` to ensure specific errors are re-thrown for better error management.
- Updated `budget.db.test.ts` to improve mock behavior and ensure accurate assertions.
- Refined `flyer.db.ts` to improve error handling for race conditions during store creation.
- Enhanced `notification.db.test.ts` to ensure specific error types are tested correctly.
- Updated `recipe.db.test.ts` to ensure proper handling of not found errors.
- Improved `user.db.ts` to ensure consistent error handling for user retrieval.
- Enhanced `flyerProcessingService.server.test.ts` to ensure accurate assertions on transformed data.
- Updated `logger.server.ts` to disable transport in test environments to prevent issues.
- Refined `queueService.workers.test.ts` to ensure accurate mocking of email service.
- Improved `userService.test.ts` to ensure proper mock implementations for repository classes.
- Enhanced `checksum.test.ts` to ensure reliable file content creation in tests.
- Updated `pdfConverter.test.ts` to reset shared state objects and mock implementations before each test.
2025-12-15 16:40:13 -08:00
2affda25dc Refactor geocoding services and improve logging
- Updated the Nominatim geocoding service to use a class-based structure and accept a logger instance for better logging control.
- Modified tests for the Nominatim service to align with the new structure and improved logging assertions.
- Removed the disabled notification service test file.
- Added a new GeocodingFailedError class to handle geocoding failures more explicitly.
- Enhanced error logging in the queue service to include structured error objects.
- Updated user service to accept a logger instance for better logging in address upsert operations.
- Added request-scoped logger to Express Request interface for type-safe logging in route handlers.
- Improved logging in utility functions for better debugging and error tracking.
- Created a new GoogleGeocodingService class for Google Maps geocoding with structured logging.
- Added tests for the useAiAnalysis hook to ensure proper functionality and error handling.
2025-12-13 17:52:30 -08:00
0694a5501f added genai rate limiting
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m47s
2025-12-10 10:29:57 -08:00
7912d29961 home page errors in progress
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 8m50s
2025-12-09 23:41:18 -08:00
12e6b0b44d home page errors in progress
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m0s
2025-12-09 23:29:17 -08:00
9d552b7456 Refactor database environment variable usage across workflows and application code
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m53s
- Updated Gitea workflows to standardize on `DB_NAME` instead of `DB_DATABASE` for database name references.
- Modified deployment, backup, reset, and restore workflows to ensure consistent environment variable usage.
- Removed dotenv dependency and preload script, transitioning to environment variable management directly in scripts.
- Adjusted application code to utilize `DB_NAME` for database connections and logging.
- Enhanced README to reflect changes in environment variable configuration and usage.
- Cleaned up package.json scripts to remove unnecessary preload references.
2025-12-04 18:02:38 -08:00
7d5ec198ac chore: update dependencies and remove Vitest globals from tsconfig
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m14s
2025-12-04 10:08:04 -08:00
ec1a7fc2e9 move to centralized secret
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 59s
2025-12-02 19:09:33 -08:00
33b1800f72 ugh
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m30s
2025-12-02 18:43:49 -08:00
b800f85f9b move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m0s
2025-12-02 18:12:39 -08:00
d028511d38 move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m9s
2025-12-02 17:15:10 -08:00
80e2222d20 move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m21s
2025-12-02 14:31:01 -08:00
aa18f5ed7c come on ai get it right
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m35s
2025-12-01 19:24:58 -08:00
3b25d185c1 splitting unit + integration testing apart attempt #1
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m46s
2025-11-30 15:44:41 -08:00
1df7cf6801 fix image saving + new icon
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-30 01:25:53 -08:00
fe2c1a0727 more TS fixes + tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m5s
2025-11-29 17:09:51 -08:00
753c675d9f acheivments + flyercorrection
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m18s
2025-11-29 13:35:10 -08:00
79c57fd8b0 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m24s
2025-11-28 20:04:51 -08:00
7701d2a580 testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 24s
2025-11-28 18:00:42 -08:00
d0ca6db7a4 testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 30s
2025-11-28 17:53:27 -08:00
a7fe9e085b testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m49s
2025-11-28 17:12:52 -08:00
c244844f2b testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m28s
2025-11-28 16:34:34 -08:00
05586df3e7 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m15s
2025-11-28 15:23:51 -08:00
761866ade2 i hate vitest now
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-27 16:36:01 -08:00
0f8cb221df i hate vite now
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-27 15:19:00 -08:00
0d0b5a75ba i hate vite now 2025-11-27 15:02:04 -08:00
90f5a2c643 i hate vite now
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 38m52s
2025-11-27 14:27:32 -08:00
3d891a9fea get rid of mockImplementation(() => promise) - causing memory leaks
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 37s
2025-11-27 13:03:35 -08:00
78fa36f7a0 get rid of mockImplementation(() => promise) - causing memory leaks
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 29s
2025-11-27 13:00:47 -08:00
f6cd0b5949 we went to mocks - now going to unit-setup.ts - centralized
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-26 18:43:34 -08:00
997446febf add integration testing report from backend server
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m33s
2025-11-25 20:38:51 -08:00
1d0bd630b2 test, more id fixes, and naming all files
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 48s
2025-11-25 05:59:56 -08:00
778d608b16 working ! testing !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m31s
2025-11-25 00:52:33 -08:00
2f55a303b0 some more re-org + fixes
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m55s
2025-11-24 15:02:13 -08:00
9801e62899 deploy moment aha
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m16s
2025-11-23 13:54:15 -08:00
93f5481f94 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m8s
2025-11-23 09:10:12 -08:00
131a6897c1 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 51s
2025-11-23 08:52:00 -08:00
51c227af78 upload file size limit increased in server.ts
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m9s
2025-11-23 00:46:07 -08:00
2f0a114265 upload file size limit increased in server.ts
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m16s
2025-11-23 00:36:55 -08:00
f0913cad17 upload file size limit increased in server.ts
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 32s
2025-11-23 00:22:39 -08:00
7bdbd708c1 prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m56s
2025-11-22 21:06:42 -08:00
cfc041bdcd prod broken
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 7s
2025-11-22 20:54:26 -08:00
e6c18a59d0 prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m30s
2025-11-22 20:35:29 -08:00
3a0e5124b3 prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m30s
2025-11-22 20:25:24 -08:00
16b1872180 prod broken
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 57s
2025-11-22 20:10:07 -08:00
8fbeb015ca prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m33s
2025-11-22 19:50:43 -08:00
dd8fa2a6c4 more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m36s
2025-11-22 18:45:42 -08:00
6017295180 more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m42s
2025-11-22 17:52:59 -08:00