chatwoot/app/javascript/widget/api
Pranav bf5e4a92dd
chore: Limit the number of articles retrieved by widget (#11095)
The UI displays only six articles, and this update introduces a per_page
parameter to control the number of articles returned per API call. The
value is capped between 1 and 100, with a default fallback if a lower
number is set.

This change is necessary due to high website traffic, where excessive
payloads are returned without adding value.

**Changes:** 
- Add index to status, account_id, portal_id, views.
- Add per_page param in the API.
- Update the code in the frontend to fetch only 6
2025-03-15 14:10:12 -07:00
..
specs feat: Use vitest instead of jest, run all the specs anywhere in app/ folder in the CI (#9722) 2024-07-10 08:32:16 -07:00
agent.js
article.js feat: Add store and API to support articles in widget (#7616) 2023-07-26 14:08:27 -07:00
campaign.js
contacts.js
conversation.js feat: do not send contact details to the widget (#9223) 2024-04-12 15:30:07 +05:30
conversationLabels.js
endPoints.js chore: Limit the number of articles retrieved by widget (#11095) 2025-03-15 14:10:12 -07:00
events.js
integration.js feat: Add the support for video calls with Dyte in the live-chat widget (#6208) 2023-01-09 11:52:31 -08:00
message.js