feat(zohocliq): Full Thread support with Title and Posting Options#175
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #175 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 475 478 +3
===========================================
Files 159 160 +1
Lines 1700 1709 +9
===========================================
+ Hits 1700 1709 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
|
@ricardoapaes Thanks. |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
feat(zohocliq): Full Thread support with Title and Posting Options
This feature expands thread support in Zoho Cliq, allowing for more granular control over how the discussion is initiated and posted.
New Parameters Added:
thread_message_id: The ID of the parent message to reply to (as in the previous feature).thread_title: Allows setting a specific title for the thread, making it easier to organize discussions in the channel.post_in_parent: An optional boolean that controls whether the reply should also be posted in the parent channel, in addition to the thread.Implementation Details:
thread_titleandpost_in_parentfields to the message sending function.PR Type
Enhancement
Description
Add thread support with title and posting options to Zoho Cliq messages
Introduce
ThreadConfigtrait with helper methods for thread configurationAdd three new optional parameters:
thread_message_id,thread_title,post_in_parentUpdate channel and chat message classes to support thread functionality
Add test coverage for new thread configuration methods
Diagram Walkthrough
File Walkthrough
ThreadConfig.php
New trait for thread configuration methodssrc/ZohoCliq/Messages/ThreadConfig.php
setThreadId()method to format and set thread message IDfrom two integer slices
setThreadTitle()method to set custom thread titlesetThreadPostInParent()method to enable posting in parentchannel
Message.php
Add thread configuration trait and fieldssrc/ZohoCliq/Messages/Message.php
ThreadConfigtrait usage to base Message class$definedarray:thread_message_id,thread_title,post_in_parentcapabilities
ChannelMessage.php
Add thread fields to channel messagessrc/ZohoCliq/Messages/ChannelMessage.php
$definedarray:thread_message_id,thread_title,post_in_parentChatMessage.php
Add thread fields to chat messagessrc/ZohoCliq/Messages/ChatMessage.php
$definedarray:thread_message_id,thread_title,post_in_parentClientTest.php
Add thread configuration teststests/ZohoCliq/ClientTest.php
setThreadId(),setThreadTitle(), andsetThreadPostInParent()in test casesClientTest.php
Add thread configuration to webhook teststests/ZohoCliqWebHook/ClientTest.php
setThreadId(),setThreadTitle(), andsetThreadPostInParent()methods