feat: Notifications module v3.9.1#1107
Open
igorgoncalves wants to merge 3 commits intomainfrom
Open
Conversation
…TagModel, fix user ID lookup and UI refinements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Motivação
O sistema não possuía um módulo de notificações centralizado. Os usuários precisavam de uma forma de receber avisos do sistema e dos administradores, e os administradores precisavam de uma interface para criar e gerenciar essas notificações.
🔧 Alterações Realizadas
notificationsadicionado com controllersNotificationsController(admin) eInboxController(usuário)NotificationeNotificationRecipientrefatorados para herdar deTagModel, padronizando timestamps viaCTimestampBehaviorNotificationServiceregistrado como componente da aplicação (Yii::app()->notifier)user->loginInfos->idnoInboxControllerpara identificação correta do usuário logado📌 Requisitos
app/migrations/3.9.0/notification_timestamps.sql🛠️ Fluxo de Teste
🧪 Fluxo de Teste 1 (FT1) — Enviar notificação como admin:
✅ Sucesso: Notificação criada e listada na tela de gerenciamento com destinatários
❌ Falha: Erro de validação ou notificação não aparece na lista
🧪 Fluxo de Teste 2 (FT2) — Receber e ler notificação no inbox:
✅ Sucesso: Notificação marcada como lida e contador atualizado
❌ Falha: Notificação não aparece ou erro ao marcar como lida
✨ Migrations Utilizadas
app/migrations/3.9.0/notification_timestamps.sql— Adiciona colunasupdated_atemnotificationecreated_at/updated_atemnotification_recipient✔️ Checklist - Padrões para PR
config.php?CHANGELOG?Documentação
Houve alteração nos fluxo de uso?
(Lembrete: Em caso afirmativo, adicionar label Atualização de manual)