discourse-ai/app/controllers/discourse_ai/ai_bot
Isaac Janzen cd0cfc0bfc
DEV: Group PMs by date (#1287)
# Preview

https://github.com/user-attachments/assets/3fe3ac8f-c938-4df4-9afe-11980046944d

# Details

- Group pms by `last_posted_at`. In this first iteration we are group by `7 days`, `30 days`, then by month beyond that. 
- I inject a sidebar section link with the relative (last_posted_at) date and then update a tracked value to ensure we don't do it again. Then for each month beyond the first 30days, I add a value to the `loadedMonthLabels` set and we reference that (plus the year) to see if we need to load a new month label.
- I took the creative liberty to remove the `Conversations` section label - this had no purpose
- I hid the _collapse all sidebar sections_ carrot. This had no purpose. 
- Swap `BasicTopicSerializer` to `ListableTopicSerializer` to get access to `last_posted_at`
2025-04-25 13:20:18 -05:00
..
artifacts_controller.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
bot_controller.rb FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
conversations_controller.rb DEV: Group PMs by date (#1287) 2025-04-25 13:20:18 -05:00
shared_ai_conversations_controller.rb FIX: automatically bust cache for share ai assets (#942) 2024-11-22 11:23:15 +11:00