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 refactors the message targeting system by splitting the single targets property into two separate properties: targetAppIds for application identifiers and targetUsers for user role targets. The MessageTarget enum is renamed to MessageTargetUsers to better reflect its purpose, with a backward-compatible alias maintained in the exports.

Key Changes:

  • Split targets property into targetAppIds (string[]) and targetUsers (MessageTargetUsers[])
  • Renamed MessageTarget enum to MessageTargetUsers for clarity
  • Added corresponding getter and setter helper functions for the new properties

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/message/message.ts Renamed MessageTarget to MessageTargetUsers, replaced single targets property key with targetAppIds and targetUsers in MessagePropsKey enum and MessageProps type
src/message/messages.ts Updated import, replaced getTargets/assocTargets functions with separate getTargetAppIds/getTargetUsers/assocTargetAppIds/assocTargetUsers helper functions
src/message/index.ts Added backward-compatible alias exporting MessageTargetUsers as MessageTarget

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2026

@SteRiccio SteRiccio merged commit 4d53da6 into master Jan 3, 2026
5 checks passed
@SteRiccio SteRiccio deleted the feat/messages-helpers branch January 3, 2026 21:07
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