Skip to content

Conversation

@SteRiccio
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to handle app notifications for messages. It updates the @openforis/arena-core dependency from version 1.0.69 to 1.0.75 to gain access to new message notification capabilities, implements a new service method to filter messages for push notifications targeted at specific users, and exposes two new API endpoints for retrieving these notifications.

  • Updates arena-core dependency to access MessageNotificationType and related utilities
  • Adds getNotifiedToUser service method to filter messages by notification type and user targeting
  • Implements new authentication middleware for logged-in user validation and refactors error handling

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updates @openforis/arena-core dependency to version 1.0.75
yarn.lock Updates lockfile with new arena-core version and checksum
src/service/message/index.ts Adds getNotifiedToUser method to filter messages by push notification type and user targeting
src/api/middleware/auth.ts Refactors unauthorized error handling and adds requireLoggedInUser middleware
src/api/message/read.ts Adds two new endpoints for retrieving notified messages and their count
src/api/endpoint/message.ts Defines two new endpoint paths for notified messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@SteRiccio SteRiccio merged commit 1e5e051 into master Jan 6, 2026
5 checks passed
@SteRiccio SteRiccio deleted the feat/messages-notification branch January 6, 2026 22:38
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.

2 participants