discourse-ai/app/controllers/discourse_ai
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
..
admin FEATURE: Add spending metrics to AI usage (#1268) 2025-04-17 15:09:48 -07:00
ai_bot DEV: Group PMs by date (#1287) 2025-04-25 13:20:18 -05:00
ai_helper FEATURE: Add streaming to composer helper (#1256) 2025-04-14 08:18:50 -07:00
discord FEATURE: Discord Bot integration (#831) 2024-10-16 12:41:18 -03:00
embeddings FEATURE: disable rate limiting when skipping hyde (#793) 2024-09-04 15:51:01 +10:00
sentiment FIX: Ensure category badging present in sentiment reports (#1222) 2025-03-26 12:37:41 -07:00
summarization FIX/REFACTOR: FoldContent revamp (#866) 2024-10-25 11:51:17 -03:00