discourse/plugins
Joffrey JAFFEUX 671e6066bf
DEV: adds first_messages/last_messages to thread SDK (#26861)
This commit introduces several enhancements to the ChatSDK module, aiming to improve the functionality and usability of chat thread interactions. Here's what has been changed and added:

1. **New Method: `first_messages`:**
   - Added a method to retrieve the first set of messages from a specified chat thread.
   - This method is particularly useful for fetching initial messages when entering a chat thread.
   - Parameters include `thread_id`, `guardian`, and an optional `page_size` which defaults to 10.
   - Usage example added to demonstrate fetching the first 15 messages from a thread.

2. **New Method: `last_messages`:**
   - Added a method to retrieve the last set of messages from a specified chat thread.
   - This method supports reverse pagination, where the user may want to see the most recent messages first.
   - Similar to `first_messages`, it accepts `thread_id`, `guardian`, and an optional `page_size` parameter, defaulting to 10.
   - Usage example provided to illustrate fetching the last 20 messages from a thread.
2024-05-03 17:30:39 +02:00
..
automation FIX: Prevent race condition in recurring automations (#26828) 2024-05-01 09:01:58 +03:00
chat DEV: adds first_messages/last_messages to thread SDK (#26861) 2024-05-03 17:30:39 +02:00
checklist UX: loading spinner when clicking an item 2024-04-25 18:45:38 +02:00
discourse-details DEV: refactor morphed preview specs 2024-04-10 10:36:20 +02:00
discourse-lazy-videos Update translations (#26821) 2024-04-30 21:57:28 +02:00
discourse-local-dates FIX: ensure [date-range don't clashes with checklist 2024-04-08 08:22:21 +02:00
discourse-narrative-bot Update translations (#26463) 2024-04-02 18:19:46 +02:00
discourse-presence DEV: Add appEvents for composer / DEditor toolbar events (#26517) 2024-04-05 08:35:25 -05:00
footnote FEATURE: Allow dismissing tooltips by clicking their button (#26668) 2024-04-18 13:16:55 +02:00
poll DEV: Allow RenderGlimmer to be used inside post-cooked-glued widgets (#26675) 2024-04-18 15:39:29 +01:00
spoiler-alert DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
styleguide DEV: add toast progress bar to styleguide (#26767) 2024-04-26 16:49:58 +08:00