Chore/wpb 20631 update welcome message#52
Conversation
PR Review: Update Welcome MessageSummaryThis PR improves the welcome message sent when the Poll App is added to a conversation. The changes enhance user experience by providing a clearer introduction and explanation of the app's capabilities. ✅ Strengths
🔍 Code Quality ObservationsPositive:
Minor Considerations:
🧪 Test CoverageObservation: The existing test file ( Recommendation: Consider adding a test to verify the welcome message format, especially since this is user-facing content: @Test
fun `when app says hello, then send welcome message with usage instructions`() = runTest {
// This would verify the message structure and content
userCommunicationService.sayHello(manager, Stub.id())
coVerify {
proxySenderService.send(
manager = manager,
message = match { it.text.contains("Hi, I'm the Poll App") }
)
}
}However, given that the PR checklist shows "I have not added automated test to this contribution," this appears to be an intentional decision for this change. 🔒 SecurityNo security concerns identified. The changes are purely presentational and don't introduce any:
⚡ PerformanceNo performance impact. The change from building strings at runtime to using compile-time constants (if anything) slightly improves performance. 📝 DocumentationThe usage instructions in the code match the README.md commands, which is good for consistency. The welcome message now serves as inline documentation for users. 🎯 Recommendations SummaryOptional Improvements:
Approval Status: ✅ Ready to merge The changes are clean, improve user experience, and don't introduce any bugs or issues. The minor suggestions above are optional refinements that could be addressed in a follow-up PR if desired. Review generated by Claude Code |
bbaarriiss
left a comment
There was a problem hiding this comment.
Appoved with a simple, optional todo.
| @@ -22,13 +22,14 @@ class UserCommunicationService( | |||
| private val version: String | |||
| ) { | |||
| private companion object : KLogging() { | |||
There was a problem hiding this comment.
Btw, I don't think we need KLogging() here. It could be nice to remove it as well, hopefully it will not break sth unexpected.
There was a problem hiding this comment.
Thank you for mentioning that. After wanting to verify why it's there I've noticed that this dependency is very outdated (2.0.6 v.s. 7.0.14). I've created a Jira ticket for it for further investigation of why it's the case: WPB-22879

PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
The capabilities of the App were not clear once it's added to the conversation
Solutions
Greet, describe App's purpose and usage when added to a conversation.
Testing
Test Coverage
How to Test
Verify that there's a message, once an App is added to the conversation.
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.