Commit Graph

35 Commits

Author SHA1 Message Date
Yoga Pangestu
6fe5e81717 refactor: add type hinting to closures and fix logic errors in Filament codebase
- Added comprehensive parameter and return type hinting to closures across various Filament resources, actions, and relation managers to improve type safety and static analysis.
- Fixed logic in ReportRelationManager where report count was incorrectly compared, preventing the 'Buat Laporan' button from showing correctly.
- Corrected namespaces for RepeatableEntry and TextEntry in ViewCooperation (changed from Filament\Schemas to Filament\Infolists).
- Fixed component rendering in JournalistResource form by ensuring sections are correctly returned in the mapping.
- Added @var docblocks to resolve lint errors related to auth()->user() and verified query builder return types.
- Standardized file retrieval logic in PartnerResource and improved overall code reliability."
2026-01-12 15:17:21 +07:00
Yoga Pangestu
95dbcb1c75 refator(partner): change back url in show 2026-01-12 13:25:31 +07:00
Yoga Pangestu
c793c8e67a refactor: standardize action naming conventions and organization
- Refactor custom Filament actions into resource-specific subfolders (Cooperation, Proposal, Report).
- Standardize all action identifiers to snake_case for consistency.
- Move action identifiers directly into ::make('name') calls.
- Remove getDefaultName() from custom action classes to favor explicit naming.
- Update relation managers and resources to use the new namespaced action classes.
- Standardize closure syntax (fn) and string formatting across schemas and actions.
2026-01-12 13:20:56 +07:00
Yoga Pangestu
aa5eede978 feat(cooperation): add grid to view 2026-01-12 11:19:52 +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
2b49688f8f feat: Enhance cooperation proposal management with media handling and improved infolist display
- Removed debug statement from CreateCooperation.php.
- Updated CooperationProposalRelationManager to include a detailed infolist schema with media and status information.
- Improved proposal creation logic in CooperationsTable to handle proposal attachments and store them in the media library.
- Implemented media handling in CooperationProposal model for better integration with file uploads.
2026-01-12 10:33:47 +07:00
Yoga Pangestu
2d362b54dc feat: Remove custom page classes for login, registration, media, company, and verification management 2026-01-12 09:46:54 +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
b97b8a3708 feat: Add payment information fields and media handling for proposal template and banner in CooperationResource 2026-01-09 13:09:58 +07:00
Yoga Pangestu
7e1c688c78 feat: Enhance cooperation management with proposal template handling and media uploads 2026-01-09 12:40:50 +07:00
Yoga Pangestu
aab02b44fe feat: Implement verified scope for PartnerMedia and update relationships in CooperationForm and AnnouncementResource 2026-01-08 14:38:37 +07:00
Yoga Pangestu
57eece15db feat: Add navigationSort property to various resources for improved navigation order 2026-01-08 14:14:23 +07:00
Yoga Pangestu
69c86e5d3c Refactor verification process and UI updates
- Updated JournalistResource to conditionally display actions based on user roles and verification status.
- Modified ManageJournalists page to hide header actions if verification request status is not NEED_REVISION.
- Changed CategoryResource navigation label from 'Kategori Berita' to 'Kategori'.
- Adjusted ManageCategories page to reflect the new category label and modal headings.
- Refactored Company model to change verificationRequest relationship from MorphOne to HasOne.
- Removed verificationRequest method from Journalist and PartnerMedia models.
- Updated VerificationRequest model to change verifiable relationship from MorphTo to BelongsTo.
- Introduced VerificationService to handle verification logic, including data completeness checks and submission processes.
- Created a new migration to adjust the verification_requests table structure.
- Enhanced admin verification view to display detailed verification progress and review history.
- Updated company and media forms to conditionally show the save button based on verification request status.
2026-01-08 13:55:37 +07:00
Yoga Pangestu
926d25d6cf refactor: Remove navigationSort property from various Filament resource classes for cleaner code 2026-01-08 08:40:18 +07:00
Yoga Pangestu
3ae2054ebd feat: Implement contact management system with email reply functionality and database migration 2026-01-06 09:37:55 +07:00
Yoga Pangestu
20804431c5 feat: Redirect to resource index page after create and edit operations. 2026-01-05 15:06:59 +07:00
Yoga Pangestu
3760eeb00d fix: Improve Filament component behavior, update dependencies, and adjust styling. 2026-01-05 09:29:57 +07:00
Yoga Pangestu
eb72bac3cb refactor: update internal Filament navigation to use getUrl() methods and remove redundant getRedirectUrl() implementations. 2026-01-05 09:18:10 +07:00
Yoga Pangestu
38533fa246 feat: Add a 'Kembali' action button to the ViewPartner header. 2026-01-05 09:02:51 +07:00
Yoga Pangestu
fa6e2ef92d refactor: rename cooperation resource navigation group to 'Kelola' 2026-01-05 08:41:57 +07:00
Yoga Pangestu
904552bd68 feat: Restrict company user access to media and journalist management until company and partner media data is complete, and remove journalist permissions from seeders. 2025-12-19 15:33:10 +07:00
Yoga Pangestu
25b856acde feat: Implement resource locking and add role-based journalist filtering. 2025-12-19 14:54:58 +07:00
Yoga Pangestu
fcc09599e8 feat: add partner view page with detailed infolist and link from cooperation media manager 2025-12-19 14:14:34 +07:00
Yoga Pangestu
ee7192a087 feat: Add role-based navigation badge count for cooperations and update arrow function syntax. 2025-12-16 14:51:57 +07:00
Yoga Pangestu
79893f0177 fix: Corrected accepted file types for image uploads from images/* to image/* and adjusted minor code formatting. 2025-12-16 14:30:29 +07:00
Yoga Pangestu
825c1b210c style: Apply minor formatting adjustments to anonymous function syntax and string concatenations. 2025-12-16 14:22:06 +07:00
Yoga Pangestu
b88660b8c8 feat: Add force delete and restore actions to Partner and Announcement resources, and apply minor formatting adjustments across several Filament resources and relation managers. 2025-12-16 14:05:04 +07:00
Yoga Pangestu
ff54d97d98 refactor: Standardize anonymous function syntax and update modal width definitions to use Filament's Width enum. 2025-12-16 13:59:46 +07:00
Yoga Pangestu
89f0d511e4 feat: Organize Filament resources with navigation groups, update modal width enum usage, and add clean code documentation. 2025-12-16 13:53:59 +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
Yoga Pangestu
7f1d10f4be refactor: update empty state icons across various resources
- Replaced the default empty state icon 'heroicon-o-bookmark' with specific Heroicon variants for improved visual representation in the Journalist, Partner, Classification, Department, Location, SubClassification, SubLocation, Theme, User, ContentRecaps, IssueManagements, MediaMonitorings, Announcement, and News resources.
- Updated the empty state description to ensure consistency across resources.
2025-12-12 10:11:24 +07:00
Yoga Pangestu
e9513b7634 feat(partner): partner page 2025-12-05 09:46:47 +07:00
Yoga Pangestu
2f8c862ee9 fix(journalist): remove $this 2025-12-05 09:09:44 +07:00
Yoga Pangestu
0167811e47 feat(table): move timestamp column to Columns Folder and adjust in module 2025-12-05 09:02:43 +07:00
Yoga Pangestu
0341d452a0 feat(journalist): implement journalist crud and create migration and model 2025-12-05 08:53:27 +07:00