Skip to content

Upgrade and cleanup#115

Merged
CodeWithDennis merged 4 commits into6.xfrom
upgrade-and-cleanup
Apr 20, 2026
Merged

Upgrade and cleanup#115
CodeWithDennis merged 4 commits into6.xfrom
upgrade-and-cleanup

Conversation

@CodeWithDennis
Copy link
Copy Markdown
Owner

This pull request includes two main changes: it removes the unused Placeholder import and configuration from the application service provider, and it refactors the notification JavaScript classes to use private fields and provide a toJSON method for serializing notification data.

Code cleanup and dependency removal:

  • Removed the unused import and configuration for Placeholder in AppServiceProvider.php, simplifying the list of translatable components. [1] [2]

Notification JavaScript improvements:

  • Refactored the notification-related classes (FilamentNotification, FilamentNotificationAction, FilamentNotificationActionGroup) in notifications.js to use private fields (e.g., _id, _title) instead of public properties, improving encapsulation.
  • Added a toJSON method to each notification-related class, enabling proper serialization of notification data before dispatching events. Now, notifications and actions are sent as plain objects rather than class instances.

@CodeWithDennis CodeWithDennis merged commit 0fa6fdb into 6.x Apr 20, 2026
6 checks passed
@CodeWithDennis CodeWithDennis deleted the upgrade-and-cleanup branch April 20, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant