Skip to content

Conversation

@Maphikza
Copy link
Member

@Maphikza Maphikza commented May 8, 2025

Remove Moderation Notifications

Overview

This PR removes the moderation notifications feature from the HORNETS-Relay-Panel as moderation is now fully automated. The manual review process that required notifications has been replaced with an automated system, making the moderation notifications component and related files unnecessary.

Changes

Removed Components and Files

  • src/api/moderationNotifications.api.ts - API functions for moderation notifications
  • src/hooks/useModerationNotifications.ts - Hook for moderation notifications functionality
  • src/components/moderation/ModerationNotifications/ - Main component directory
  • src/pages/ModerationNotificationsPage.tsx - Page component
  • src/components/header/components/notificationsDropdown/ModerationNotificationsOverlay/ - Dropdown overlay component

Modified Components

  • Notifications Dropdown

    • Removed moderation notifications tab
    • Updated notification count calculation
    • Simplified the component structure
  • Notifications Overlay

    • Removed moderation notification handling
    • Removed link to moderation notifications page
  • Router

    • Removed moderation notifications route
  • Types and Interfaces

    • Removed moderationData property from Message interface
    • Removed moderation type from NotificationType
    • Changed notification severity from 'moderation' back to 'error'

Important Notes

  • The moderation mode settings in the relay settings section are preserved as they control how the automated moderation system behaves
  • The notifications system now only shows payment and report notifications
  • This change reduces code complexity and focuses the UI on active notification types

Testing

  • Verified that the notifications dropdown works correctly without moderation notifications
  • Confirmed that removing the moderation notifications route doesn't affect navigation
  • Ensured that the application starts and runs without errors related to missing moderation components

This commit includes:
- New API endpoints for viewing and unblocking moderated events
- Enhanced ModerationNotifications component with event details modal
- Unblock button for false positives in moderation system
- Scroll position reset after event deletion
- Updated BaseModal to use 'open' prop instead of deprecated 'visible' prop
This commit includes:
- Implementation of moderation mode feature in relay settings
- Addition of strict and passive mode options
- Improved text color contrast for better readability on dark backgrounds
- Integration with existing relay settings UI
@f7f376a1fcd0d0e11a10ed1b6577c9 f7f376a1fcd0d0e11a10ed1b6577c9 merged commit fdca8a6 into main May 13, 2025
2 checks passed
@AnthonyMarin AnthonyMarin deleted the refactor/rename-subscribers-component branch June 26, 2025 04:16
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.

3 participants