discourse-ai/assets/javascripts/discourse
Rafael dos Santos Silva 8e00e036e1
FEATURE: Make emotion /filter ordering match the dashboard table (#939)
* FEATURE: Make emotion /filter ordering match the dashboard table

This change makes the /filter endpoint use the same criteria we use
in the dashboard table for emotion, so it is not confusing for users.
It means that only posts made in the period with the emotion shall be
shown in the /filter, and the order is simply a count of posts that
match the emotion in the period.

It also uses a trick to extract the filter period, and apply it to
the CTE clause that calculates post emotion count on the period, making
it a bit more efficient. Downside is that /filter filters are evaluated
from left to right, so it will only get the speed-up if the emotion
order is last. As we do this on the dashboard table, it should cover
most uses of the ordering, kicking the need for materialized views
down the road.

* Remove zero score in filter

* add table tooltip

* lint
2024-11-21 15:18:31 -03:00
..
admin FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
components DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
connectors DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
controllers FIX: Misc fixes for sentiment in the admin dashboard (#928) 2024-11-19 19:16:21 -03:00
lib DEV: Added compatibility with the Glimmer Post Menu (#887) 2024-11-12 15:46:17 -03:00
routes FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00
services UX: update gist toggle styles (#926) 2024-11-19 15:33:34 -05:00
templates FEATURE: Make emotion /filter ordering match the dashboard table (#939) 2024-11-21 15:18:31 -03:00
admin-discourse-ai-plugin-route-map.js FEATURE: custom user defined tools (#677) 2024-06-27 17:27:40 +10:00
admin-discourse-ai-route-map.js FEATURE: Expose sentiment classifications via the admin dashboard. (#284) 2023-11-08 10:50:37 -03:00
discourse-ai-shared-conversation-show-route-map.js FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
preferences-ai-route-map.js FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00