Commit Graph

10 Commits

Author SHA1 Message Date
Yoga Pangestu
7f51781334 Refactor database migrations to use explicit foreign key constraints with cascade on delete, update enum column definitions to use enum values and add indexes, and refine model casts. 2026-02-02 13:19:27 +07:00
Yoga Pangestu
2d7f4ee0e8 feat: Enhance cooperation and reporting workflows with refined relationships, new payment management, and updated actions. 2026-02-02 11:56:49 +07:00
Yoga Pangestu
e5fc61abc3 refactor: update several relationship methods from HasMany to HasOne and singularize relationship names. 2026-01-28 09:01:00 +07:00
Yoga Pangestu
a847b6e1fc Refactor model relationships by converting multiple HasOne relationships to HasMany and pluralizing method names for consistency. 2026-01-27 21:04:49 +07:00
Yoga Pangestu
24c95ceb87 feat: Integrate Swindon\FilamentHashids trait into multiple models for enhanced ID encoding 2026-01-19 11:03:33 +07:00
Yoga Pangestu
1d52463286 feat(cooperation): refactor workflow and implement payment system
- Refactored cooperation workflow to include manual status transitions.
- Implemented payment tracking with CooperationPayment model and PayAction.
- Updated UpdateCooperationStatusCommand for automatic assignment and verification transitions.
- Removed deprecated date columns (assignment_deadline, verification_deadline).
- Enhanced Filament UI with new actions (Complete, Proceed to Payment, Pay).
- Added CooperationSeeder for testing purposes.
2026-01-14 15:41:23 +07:00
Yoga Pangestu
f038da6735 refactor(cooperation): change relation to task assignment from has many to has one and adjust related logic 2026-01-14 10:23:30 +07:00
Yoga Pangestu
9ca4e68de9 refactor: implement local scopes for enums with #[Scope] attribute across models
- Added local scopes for Enum-based fields (status, type, decision) in models: Cooperation, VerificationRequest, PartnerMedia, CooperationProposal, CooperationMedia, and VerificationReview.
- Refactored query logic in Commands, Services, and Filament Resources to use the new scopes for better readability and maintainability.
- Added specific pivot status scopes in PartnerMedia model for cleaner relationship filtering.
- Fixed incorrect Enum usage in ViewCooperation.php during the refactoring process.
- Standardized code style for closures and string concatenation in the modified files.
2026-01-12 11:14:22 +07:00
Yoga Pangestu
6265410fb0 feat: Refactor media handling and improve file upload configurations in Cooperation and Journalist resources 2026-01-09 15:00:36 +07:00
Yoga Pangestu
c7a72a169e feat: implement comprehensive cooperation management module with models, migrations, and Filament resources 2025-12-16 12:37:53 +07:00