notifciations issues fixed final
This commit is contained in:
143
CHANGELOG.md
143
CHANGELOG.md
@@ -1,7 +1,7 @@
|
||||
# IGNY8 Change Log
|
||||
|
||||
**Current Version:** 1.2.0
|
||||
**Last Updated:** December 27, 2025
|
||||
**Current Version:** 1.2.2
|
||||
**Last Updated:** December 28, 2025
|
||||
|
||||
---
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
| Version | Date | Summary |
|
||||
|---------|------|---------|
|
||||
| 1.2.2 | Dec 28, 2025 | **NEW** - Full notifications page with filtering and bulk actions |
|
||||
| 1.2.1 | Dec 28, 2025 | **Critical Fix** - AI task notifications now working |
|
||||
| 1.2.0 | Dec 27, 2025 | **Final Launch Release** - Notifications system, Dashboard widgets, ThreeWidgetFooter, UI polish |
|
||||
| 1.1.9 | Dec 27, 2025 | UI improvements - PageContext, SearchModal, AppHeader/Layout updates |
|
||||
| 1.1.8 | Dec 27, 2025 | Section 6 SIDEBAR restructure - Dropdowns, breadcrumbs, navigation cleanup |
|
||||
@@ -29,6 +31,143 @@
|
||||
|
||||
---
|
||||
|
||||
## v1.2.2 - December 28, 2025
|
||||
|
||||
### Full Notifications Page Implementation
|
||||
|
||||
**Problem:**
|
||||
- NotificationDropdown "View All Notifications" link was broken (404 error)
|
||||
- Link pointed to `/notifications` which didn't exist
|
||||
- No way to view full notification history or apply filters
|
||||
- No bulk actions for managing notifications
|
||||
|
||||
**Solution:**
|
||||
- Created comprehensive NotificationsPage at `/account/notifications`
|
||||
- Added advanced filtering capabilities (severity, type, read status, site, date range)
|
||||
- Implemented bulk actions (mark all as read)
|
||||
- Integrated into sidebar navigation under ACCOUNT section
|
||||
- Fixed broken link in NotificationDropdown
|
||||
|
||||
**Features:**
|
||||
- **Filters:**
|
||||
- Severity: info/success/warning/error
|
||||
- Notification type: All AI operations, WordPress sync, credits, setup events
|
||||
- Read status: all/unread/read
|
||||
- Site: Filter by specific site
|
||||
- Date range: From/to date filters
|
||||
- **Actions:**
|
||||
- Mark individual notifications as read
|
||||
- Mark all as read (bulk)
|
||||
- Delete individual notifications
|
||||
- Navigate to action URL on click
|
||||
- **UI:**
|
||||
- Full notification history with proper styling
|
||||
- Severity icons with color coding
|
||||
- Relative timestamps with date-fns
|
||||
- Site badges when applicable
|
||||
- Unread badge in sidebar menu
|
||||
- Empty states for no notifications/no matches
|
||||
- Loading states with spinner
|
||||
|
||||
**Frontend Changes:**
|
||||
- **NEW PAGE**: `frontend/src/pages/account/NotificationsPage.tsx`
|
||||
- **Route Added**: `/account/notifications` in App.tsx
|
||||
- **Sidebar**: Added Notifications menu item with Bell icon and unread count badge
|
||||
- **Fixed**: NotificationDropdown link updated from `/notifications` to `/account/notifications`
|
||||
|
||||
**Documentation Updates:**
|
||||
- `docs/30-FRONTEND/PAGES.md` - Added NotificationsPage with features
|
||||
- `docs/10-MODULES/NOTIFICATIONS.md` - Updated with new page details, removed "broken link" warnings
|
||||
- Version updated from v1.2.1 to v1.2.2
|
||||
|
||||
### Files Changed
|
||||
- `frontend/src/pages/account/NotificationsPage.tsx` - NEW: Full notifications page
|
||||
- `frontend/src/App.tsx` - Added notifications route and lazy import
|
||||
- `frontend/src/components/header/NotificationDropdown.tsx` - Fixed link to /account/notifications
|
||||
- `frontend/src/layout/AppSidebar.tsx` - Added Notifications menu item with Bell icon
|
||||
- `docs/30-FRONTEND/PAGES.md` - Added NotificationsPage documentation
|
||||
- `docs/10-MODULES/NOTIFICATIONS.md` - Updated with new page, fixed issues, version history
|
||||
- `CHANGELOG.md` - Added this entry
|
||||
|
||||
### Files Added
|
||||
```
|
||||
frontend/src/pages/account/NotificationsPage.tsx (475 lines)
|
||||
```
|
||||
|
||||
### Git Reference
|
||||
```bash
|
||||
git add frontend/src/pages/account/NotificationsPage.tsx frontend/src/App.tsx frontend/src/components/header/NotificationDropdown.tsx frontend/src/layout/AppSidebar.tsx docs/30-FRONTEND/PAGES.md docs/10-MODULES/NOTIFICATIONS.md CHANGELOG.md
|
||||
git commit -m "feat: add full notifications page with filtering and bulk actions"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## v1.2.1 - December 28, 2025
|
||||
|
||||
### Critical Bug Fix - AI Task Notifications
|
||||
|
||||
**Problem:**
|
||||
- Notifications system was implemented in v1.2.0 but notifications were never being created
|
||||
- AI functions (clustering, idea generation, content generation, etc.) completed successfully but no notifications appeared in the dropdown
|
||||
- NotificationService existed but was never called from AIEngine
|
||||
|
||||
**Root Cause:**
|
||||
- `AIEngine.execute()` method completed successfully but never called `NotificationService`
|
||||
- No notification creation in either success or failure paths
|
||||
- Celery logs showed tasks completing but no notification records in database
|
||||
|
||||
**Solution:**
|
||||
- Added `_create_success_notification()` method to AIEngine class
|
||||
- Added `_create_failure_notification()` method to AIEngine class
|
||||
- Integrated notification creation in `execute()` success path (after DONE phase)
|
||||
- Integrated notification creation in `_handle_error()` failure path
|
||||
- Used lazy imports to avoid Django app loading issues at module level
|
||||
- Maps each AI function to appropriate NotificationService method:
|
||||
- `auto_cluster` → `notify_clustering_complete/failed`
|
||||
- `generate_ideas` → `notify_ideas_complete/failed`
|
||||
- `generate_content` → `notify_content_complete/failed`
|
||||
- `generate_image_prompts` → `notify_prompts_complete/failed`
|
||||
- `generate_images` → `notify_images_complete/failed`
|
||||
|
||||
**Testing:**
|
||||
- Celery worker restarted successfully with new code
|
||||
- Notifications now created for both successful and failed AI operations
|
||||
- Frontend notification dropdown will display notifications via existing API integration
|
||||
|
||||
**Documentation Added:**
|
||||
- Created comprehensive `docs/10-MODULES/NOTIFICATIONS.md`
|
||||
- Documents all notification types and triggers
|
||||
- Includes frontend implementation details
|
||||
- Lists all 15 notification types with message formats
|
||||
- Debug commands and testing procedures
|
||||
- Added to `docs/INDEX.md` module listing
|
||||
- **Clarified:** No dedicated notifications page exists (only dropdown)
|
||||
|
||||
**Additional Fix - Keyword Import Notifications:**
|
||||
- Added notification creation to `add_to_workflow` endpoint in KeywordViewSet
|
||||
- When users add keywords to workflow, notification now appears
|
||||
- Notification format: "Added X keywords to [site]"
|
||||
- Lazy import pattern to avoid circular dependencies
|
||||
|
||||
### Files Changed
|
||||
- `backend/igny8_core/ai/engine.py` - Added notification creation methods and integration points
|
||||
- `backend/igny8_core/modules/planner/views.py` - Added notification for keyword import
|
||||
- `docs/10-MODULES/NOTIFICATIONS.md` - NEW: Complete notifications module documentation
|
||||
- `docs/INDEX.md` - Added Notifications module to index
|
||||
|
||||
### Files Added
|
||||
```
|
||||
docs/10-MODULES/NOTIFICATIONS.md
|
||||
```
|
||||
|
||||
### Git Reference
|
||||
```bash
|
||||
git add backend/igny8_core/ai/engine.py backend/igny8_core/modules/planner/views.py docs/10-MODULES/NOTIFICATIONS.md docs/INDEX.md CHANGELOG.md
|
||||
git commit -m "fix: AI task notifications + keyword import notifications + comprehensive docs"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## v1.2.0 - December 27, 2025
|
||||
|
||||
### Final Launch Release - Notifications, Dashboard, UI Polish
|
||||
|
||||
Reference in New Issue
Block a user