-
Notifications
You must be signed in to change notification settings - Fork 2
Feat: Company Dashboard Notifications & Layout Enhancements #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Import getMemberRemovedEmail function in member deletion endpoint - Fetch member and requesting user profile information before removal - Send removal notification email to removed member with context about their access removal - Include member name, company name, removed by information, and previous role in email - Handle email sending asynchronously to prevent request failures if email service is unavailable - Fix brand name capitalization from "CodeUnia" to "Codeunia" across all email templates - Add comprehensive email template for member removal with clear explanation of access changes and remaining account capabilities
…roval and rejection - Fetch event creator's email and name from profiles table for direct notification - Send approval emails to event creator as primary recipient, with company as secondary - Send rejection emails to event creator as primary recipient, with company as secondary - Add personalized greeting with creator's name in email templates - Add error handling and logging for email delivery failures - Update email templates to include creator name parameter - Fix edit URL in rejection email to use company slug for proper navigation - Ensure creator receives notifications independently of company email address
…e-approval workflow - Pass userId parameter to updateHackathon and updateEvent service methods for tracking - Add event_updated and event_status_changed notification types with appropriate icons and colors - Add hackathon_updated and hackathon_status_changed notification types with appropriate icons and colors - Implement automatic re-approval workflow when approved events are edited - Reset approval_status to pending when approved events are modified - Create admin notifications when events require re-approval after edits - Notify company members about event status changes via notification service - Log moderation actions when events are edited after approval - Implement similar re-approval workflow for hackathons with admin and creator notifications - Ensures content quality by requiring re-review of previously approved items when modified
…out consistency - Update company header section padding from `py-12` to `pt-24 pb-12` in events and hackathons pages for consistent top spacing - Adjust main content area padding from `py-12` to `pt-24 pb-12` on company profile page to align with header spacing - Increase company profile banner height from `h-48` to `h-56 sm:h-64` for better visual prominence on responsive layouts - Adjust CardHeader negative margin from `-mt-16` to `-mt-20` to properly overlap with larger banner on company profile - Ensures consistent spacing across all company pages and improves visual hierarchy with responsive banner sizing
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis PR implements user-context-aware updates for hackathons and events with re-approval workflows, adds creator-focused email notifications for event approvals and rejections, introduces member removal emails, adds new notification types for status changes, updates branding terminology (CodeUnia → Codeunia), and adjusts UI spacing across company pages. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User/Admin
participant API as API Handler
participant Service as Service Layer
participant DB as Database
participant Notify as Notification Service
participant Email as Email Service
User->>API: PUT /update approved event/hackathon
API->>Service: updateEvent/Hackathon(id, data, userId)
Service->>DB: Fetch current item
alt Item is approved
Service->>DB: Reset approval_status to pending,<br/>clear approved_by & approved_at
Service->>Notify: Create admin notifications<br/>(re-approval needed)
Service->>Notify: Notify company members<br/>(status changed to pending)
end
Service->>DB: Persist updated item
Service-->>API: Return updated item
Notify->>Email: Send admin notifications
Notify->>Email: Send company member notifications
API-->>User: Response (200 OK)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (15)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR introduces several improvements across the Company Dashboard, focusing on notification workflows, moderation updates, and UI refinements. These changes enhance communication, improve visibility into important actions, and refine the user experience.
✨ What’s New
1. Company Member Notifications
2. Admin Moderation Notifications
3. Event & Hackathon Update Notifications
Added a notification system for:
Notifications include reason messages, improving clarity on what changed and why.
4. UI Improvements for Company Pages
🔧 Code Overview
🧪 Testing
Verified email triggers for:
Manually tested dashboard UI changes across different roles and screen sizes.
📌 Notes
Future work may include:
Authored by: @akshay0611
Summary by CodeRabbit
New Features
Notifications
UI Updates
Branding