feat: Added generic webhooks workflow engine, light mode support, and template permissions, few major and many minor bugs, fixes#390
Conversation
|
Thanks for this — it's a lot of solid work, and some of it is genuinely well done: the template-permission change is textbook (RLS + server predicate + UI gating + a test), the WhatsApp-config A few things I'd want addressed before this can merge:
None of this takes away from the effort here — happy to help work through the migration and endpoint pieces if useful. Thanks again for the contribution! |
ArnasDon
left a comment
There was a problem hiding this comment.
Comment for the requested changes added in the thread.
|
Thank you for the reply, really appreciate you took out time to check. I will complete the requested changes and send everything back for review. While using the application extensively (our team has already crossed 2,000 message limit tier during testing), we found a few additional bugs and feature requests, these features are there in top tier whatsapp marketing crms like gallabox (https://gallabox.com/) New Feature Requests & Bugs3. Broadcast Test MessageBefore sending a broadcast to all recipients, add an option to send a test broadcast message to a selected contact or number for verification. 5. Template Popup Scrolling IssueWhen sending a template from the Contacts page, if the template body is long, the "Fill in all body variables to send" and "Send Template" section moves below the popup and becomes inaccessible. Suggested Fix:
6. Media Gallery Improvements
7. Delete All ContactsAdd an option to Delete All Contacts (with proper confirmation). 8. Select All ContactsAdd a Select All option on the Contacts page to simplify bulk operations. 9. Filter Contacts Without TagsAdd a filter to display only contacts that have no tags assigned. 10. Template Deletion ErrorDeleting templates sometimes returns the following error: These are reported issues from my team, some of the below i have completed. Completed Fixes (Verified)1. ✅ Image Template Creation FixedTemplate creation with images is now working correctly. 11. ✅ Clone & View Template AddedSettings → Message Templates now includes:
12. ✅ Broadcast CSV Upload FixedCSV upload for creating new broadcasts is working correctly. 13. ✅ Bulk Actions for Contacts AddedBulk actions have been added to Contacts, including:
Thank you! Looking forward to the next review build. |
…ture verification, and configurable marketing/prefix options
|
"Thanks again for the feedback! I've closed this PR and split the work up into four separate PRs as requested to make reviewing easier. I have also fully addressed your feedback in the new PRs: the migrations have been cleanly re-numbered to 038+, the marketing endpoint is now gated behind a config flag, and the generic webhooks now use HMAC signature verification and rate-limiting." |
Fork Contribution Summary
This fork introduces several key features, optimization improvements, and security enhancements to the base CRM template:
1. Generic Webhooks Integration & Workflows
A brand new automated workflow system triggered by incoming generic JSON payloads.
/api/webhooks/incoming/[id]) that parses JSON payloads.customer.name) or inserting them dynamically inside static texts.2. Comprehensive Light Mode Theme Support
Bridges the gap for complete light/dark theme toggle support across all sections:
data-modeselectors.3. Template Management & Agent Permissions
accountIdcontext instead of matchinguserId, preventing isolation boundary leaks.4. Performance & Messaging Latency Optimizations
5. Security & Access Control
ownerandadminroles, establishing read-only view restrictions for agents.