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 helper functions to the Messages module and refactors message property naming for better clarity. The changes include new target user types for data roles, date-based message filtering, and template variable replacement functionality.

  • Added getter and setter functions for date-based message scheduling and expiration
  • Introduced new message target user types (DataAnalysts, DataCleaners) and enhanced user targeting logic
  • Added utility functions for clearing hidden properties and replacing body template variables with user-specific data

Reviewed changes

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

File Description
src/message/message.ts Added DataAnalysts and DataCleaners target user types; renamed date property keys from scheduledDate/validUntil to dateScheduledAt/dateValidUntil for consistency
src/message/messages.ts Fixed typo (assoProp→assocProp); added date getters, assocNotificationTypes setter; enhanced isTargetingUser with date validation and new user types; added clearHiddenProps and replaceBodyTemplateVariables helper functions

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

@SteRiccio SteRiccio merged commit 12fa94a into master Jan 5, 2026
5 checks passed
@SteRiccio SteRiccio deleted the feat/messages-3 branch January 5, 2026 23:37
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