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 chore: Refactor widget (#5621) 2022-10-14 09:13:11 +05:30
article.js feat: Add store and API to support articles in widget (#7616) 2023-07-26 14:08:27 -07:00
campaign.js chore: Refactor widget (#5621) 2022-10-14 09:13:11 +05:30
contacts.js chore: Enhance contact merge action for identified users (#4886) 2022-06-23 15:48:56 +05:30
conversation.js feat: do not send contact details to the widget (#9223) 2024-04-12 15:30:07 +05:30
conversationLabels.js Feature: Website SDK (#653) 2020-04-03 13:04:58 +05:30
endPoints.js chore: Limit the number of articles retrieved by widget (#11095) 2025-03-15 14:10:12 -07:00
events.js fix: Add missing referer & initiated_at.timestamp to events (#2920) 2021-08-31 11:46:15 +05:30
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 Feature: Rich Message Types (#610) 2020-04-10 16:42:37 +05:30