-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add internal notes support to Trengo integration #17606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Add createInternalNote method to Trengo app with JSDoc documentation - Create dedicated create-internal-note action for adding notes to tickets - Enhance send-a-message action with createInternalNote option and proper validation - Update package version to 0.1.1 - Leverage existing new-internal-note webhook source for notifications
WalkthroughA new "Create Internal Note" action was added to the Trengo integration, allowing users to create internal notes on tickets. The "Send a Message" action was updated to optionally create internal notes instead of sending messages. The Trengo app gained a Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Action
participant App
participant TrengoAPI
User->>Action: Trigger "Create Internal Note"
Action->>App: call createInternalNote(ticketId, note)
App->>TrengoAPI: POST /tickets/notes
TrengoAPI-->>App: Response
App-->>Action: Response
Action-->>User: Summary & Result
sequenceDiagram
participant User
participant Action
participant App
participant TrengoAPI
User->>Action: Trigger "Send a Message"
alt createInternalNote = true
Action->>App: call createInternalNote(ticketId, message)
App->>TrengoAPI: POST /tickets/notes
TrengoAPI-->>App: Response
App-->>Action: Response
Action-->>User: Internal note created summary
else createInternalNote = false
Action->>App: sendMessage(...)
App->>TrengoAPI: POST /messages
TrengoAPI-->>App: Response
App-->>Action: Response
Action-->>User: Message sent summary
end
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
components/trengo/actions/create-internal-note/create-internal-note.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs components/trengo/actions/send-a-message/send-a-message.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs components/trengo/trengo.app.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (3)components/trengo/package.json (1)
components/trengo/actions/send-a-message/send-a-message.mjs (3)
components/trengo/actions/create-internal-note/create-internal-note.mjs (1)
🔇 Additional comments (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@seynadio is attempting to deploy a commit to the Pipedreamers Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified. |
Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:
|
Summary
Changes
Test plan
API Usage
Uses Trengo's
/tickets/notes
endpoint for creating internal notes.Summary by CodeRabbit
New Features
Chores