Grouped Notifications UI (#30440)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class REST::NotificationGroupSerializer < ActiveModel::Serializer
 | 
			
		||||
  # Please update app/javascript/api_types/notification.ts when making changes to the attributes
 | 
			
		||||
  attributes :group_key, :notifications_count, :type, :most_recent_notification_id
 | 
			
		||||
 | 
			
		||||
  attribute :page_min_id, if: :paginated?
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class REST::NotificationSerializer < ActiveModel::Serializer
 | 
			
		||||
  # Please update app/javascript/api_types/notification.ts when making changes to the attributes
 | 
			
		||||
  attributes :id, :type, :created_at, :group_key
 | 
			
		||||
 | 
			
		||||
  attribute :filtered, if: :filtered?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user