Skip to content

v1.6.0 — 2026-04-01#95

Merged
kingRayhan merged 2 commits intomainfrom
copilot/add-in-app-notifications
Apr 1, 2026
Merged

v1.6.0 — 2026-04-01#95
kingRayhan merged 2 commits intomainfrom
copilot/add-in-app-notifications

Conversation

@kingRayhan
Copy link
Copy Markdown
Member

@kingRayhan kingRayhan commented Apr 1, 2026

v1.6.0 — 2026-04-01

✨ Features

  • feat: add in-app notifications with Inngest queue integration (d70acd2)
  • feat: enhance notification system with improved display and payload handling (1f2b650)
  • feat: integrate unread notification count in sidebars and navbar (b21f7c0)

🐛 Bug Fixes

  • fix: address code review — actor guard, article author username in payload, correct deep links (1f5fe25)

🔧 Other Changes

  • refactor: clean up and standardize WorkOS skill documentation (b49acae)

Summary by CodeRabbit

  • New Features

    • Unread notification counter badges now display in the sidebar and navbar, enabling quick access to updates.
    • Enhanced in-app notification system with improved payload handling and display capabilities.
  • Bug Fixes

    • Fixed incorrect author username display in notification payloads.
    • Fixed deep link navigation functionality.
    • Resolved actor guard validation issue.
  • Documentation

    • Improved documentation with enhanced clarity.

- Added unread notification count display in HomeLeftSidebar and DashboardSidebar components.
- Created NotificationsNavLink and DashboardNotificationsMenuItem for improved navigation and user experience.
- Updated NavbarActions to include a notification button that reflects unread counts.

This enhancement provides users with immediate visibility of unread notifications across the application.
- Updated CHANGELOG.md to include new features such as in-app notifications, enhanced notification display, and unread notification count integration.
- Addressed code review feedback with various bug fixes.
- Refactored WorkOS skill documentation for improved clarity.

Bumped version number in package.json to 1.6.0.
@kingRayhan kingRayhan merged commit 32ac0eb into main Apr 1, 2026
1 check was pending
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 1, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5319c440-7f7e-4ba5-9281-98c6fdb41604

📥 Commits

Reviewing files that changed from the base of the PR and between cd29f2c and 5067a5f.

📒 Files selected for processing (7)
  • CHANGELOG.md
  • package.json
  • src/app/(home)/_components/HomeLeftSidebar.tsx
  • src/app/dashboard/_components/DashboardSidebar.tsx
  • src/components/Navbar/NavbarActions.tsx
  • src/components/notifications/NavbarNotificationButton.tsx
  • src/components/notifications/use-unread-notification-count.ts

📝 Walkthrough

Walkthrough

This PR introduces unread notification count display throughout the application. A new custom hook queries notification counts via React Query. Notification components are added to the navbar and sidebars with numerical badges capping at "99+". The package version is bumped to 1.6.0.

Changes

Cohort / File(s) Summary
Version & Release
CHANGELOG.md, package.json
Version bumped to 1.6.0 with changelog entries documenting notification features, bug fixes, and documentation updates.
Home Sidebar
src/app/(home)/_components/HomeLeftSidebar.tsx
Refactored notifications link into dedicated NotificationsNavLink component; added optional badge prop to NavLink with conditional numeric badge rendering (capped at "99+").
Dashboard Sidebar
src/app/dashboard/_components/DashboardSidebar.tsx
Introduced DashboardNotificationsMenuItem component; menu items reordered to insert notifications link with unread badge; active state handled via pathname comparison.
Navbar Integration
src/components/Navbar/NavbarActions.tsx, src/components/notifications/NavbarNotificationButton.tsx
Added NavbarNotificationButton component to navbar, displaying ghost icon button with absolute-positioned unread badge; session-aware with tooltip/ARIA localization.
Notification Utilities
src/components/notifications/use-unread-notification-count.ts
New React Query hook useUnreadNotificationCount that fetches unread counts via notificationActions.unreadNotificationCount(), with 60-second cache and session-conditional execution.

Sequence Diagram

sequenceDiagram
    participant React as React Component
    participant Session as useSession()
    participant Query as useQuery() Hook
    participant API as notificationActions
    participant Cache as Query Cache
    participant UI as Notification Badge

    React->>Session: Check authenticated session
    Session-->>React: Return session data
    
    alt Session exists
        React->>Query: Call useUnreadNotificationCount()
        Query->>Cache: Check cached result
        
        alt Cache miss or stale
            Query->>API: Call unreadNotificationCount()
            API-->>Query: Return { data: { count } }
            Query->>Cache: Store result (60s TTL)
        else Cache hit
            Cache-->>Query: Return cached count
        end
        
        Query-->>React: Return { data: count }
        React->>UI: Render badge if count > 0
        UI-->>React: Display "99+" or actual count
    else No session
        React-->>React: Return null (skip rendering)
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 Hop along with notifications bright,
Unread counts now in sight!
Badges bloom where once was bare,
Capped at ninety-nine with care,
Version six hops through the air!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch copilot/add-in-app-notifications

Comment @coderabbitai help to get the list of available commands and usage tips.

@kingRayhan kingRayhan deleted the copilot/add-in-app-notifications branch April 4, 2026 16:54
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.

1 participant