Skip to content
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

[Feature Request] API for UI clients #701

Open
devlikepro opened this issue Dec 20, 2024 · 3 comments
Open

[Feature Request] API for UI clients #701

devlikepro opened this issue Dec 20, 2024 · 3 comments
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request patron:PRO

Comments

@devlikepro
Copy link
Contributor

devlikepro commented Dec 20, 2024

In order to show "Chat UI" with "chats + profile picture + last message" it'd be good to have a dedicated endpoint that would return all info at once:

  1. Chat Id
  2. Contact Name (if any or phone)
  3. Profile Picture (if any)
  4. Last Message

We should also add pagination there so it doesn't return all chats by default.

May be with expand parameters so we can control the behaviour:

  • expand=profilePicture
  • expand=profilePicture&lastMessage

The main focus is NOWEB, but we need to check how it's solve in WEBJS as well

May be we even could provide a simple UI for that in Dashboard or as a separate project so it'll be easy to start implementing such UI 🤔

patron:PRO

@devlikepro
Copy link
Contributor Author

devlikepro commented Dec 20, 2024

@devlikepro devlikepro added enhancement New feature or request engine:ALL Related to all engines or basic mechanisms labels Dec 20, 2024
@matteus-siqueira
Copy link

matteus-siqueira commented Dec 20, 2024

+1

patron:PLUS

@melquisedeque-magalhaes

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request patron:PRO
Projects
None yet
Development

No branches or pull requests

3 participants