Skip to content

[Chatwoot] search contacts + show unread convo count - #22719

Merged
raycastbot merged 2 commits into
raycast:mainfrom
xmok:ext/chatwoot
Nov 7, 2025
Merged

raycastbot merged 2 commits into
raycast:mainfrom
xmok:ext/chatwoot

Conversation

@xmok

@xmok xmok commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Description

Contacts

  • delete contact
  • search contact w/ pagination

Conversations

  • show unread count

Screenshot

chatwoot 2025-11-07 at 01 46 06

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: chatwoot Issues related to the chatwoot extension platform: macOS OP is author The OP of the PR is the author of the extension labels Nov 6, 2025
@raycastbot

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR enhances the Chatwoot extension with new contact management and conversation features. The changes add contact deletion functionality with confirmation dialogs, implement paginated contact search with throttling, and display unread message counts in conversation lists. The implementation includes proper type definitions, API service methods, and UI components that follow Raycast's design patterns.

The contact search feature uses conditional API calls (list vs search) based on query presence, while the delete functionality includes optimistic updates for better user experience. The unread count display uses numbered icons capped at 99 with tooltips, and all features include proper error handling with toast notifications.

Important Files Changed

Filename Score Overview
extensions/chatwoot/CHANGELOG.md 5/5 Added changelog entry documenting new contact and conversation features with proper formatting
extensions/chatwoot/src/types.ts 5/5 Added unread_count field to Conversation type for unread message count feature
extensions/chatwoot/src/chatwoot.ts 5/5 Added delete and search methods to ContactsService for contact management functionality
extensions/chatwoot/src/list-conversations.tsx 5/5 Added unread count display as numbered icon accessory in conversation list items
extensions/chatwoot/src/list-contacts.tsx 4/5 Enhanced with search functionality and contact deletion with proper error handling and UX patterns

Confidence score: 4/5

  • This PR is safe to merge with low risk of production issues
  • Score reflects well-implemented features with proper error handling, though list-contacts.tsx has moderate complexity that should be monitored
  • Pay attention to extensions/chatwoot/src/list-contacts.tsx for the search throttling and deletion logic implementation

5 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@pernielsentikaer pernielsentikaer self-assigned this Nov 7, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 6694175 into raycast:main Nov 7, 2025
@github-actions

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@xmok
xmok deleted the ext/chatwoot branch November 8, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: chatwoot Issues related to the chatwoot extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants