discourse/plugins/discourse-ai/spec/lib/translation
Keegan George c6ab2c030b
PERF: Lazy-load translation progress chart on admin AI translations page (#39458)
Previously, the admin AI translations page blocked rendering on an
expensive SQL query (CROSS JOIN of all eligible posts × all supported
locales with EXISTS subqueries) with no caching, causing multi-second
blank page loads on large sites.

In this update, the endpoint is split into a fast config endpoint (show)
and a lazy-loaded progress endpoint (progress), the expensive query is
cached for 30 minutes (keyed by locale config), and the frontend renders
the page instantly with a loading spinner while chart data loads
asynchronously.

---------

Co-authored-by: Nat <natalie.tay@discourse.org>
2026-04-23 11:31:24 -07:00
..
base_translator_spec.rb DEV: Use structured output for translations (#39079) 2026-04-03 11:39:27 +08:00
category_candidates_spec.rb FEATURE: Expand AI translation settings to allow choosing specific categories instead of just 'all public content' (#39000) 2026-03-31 22:53:37 +08:00
category_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
category_localizer_spec.rb PERF: Cache LlmModel lookups in backfill jobs (#36359) 2025-12-01 17:04:25 -03:00
content_splitter_spec.rb
entry_point_spec.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
language_detector_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
localizable_quota_spec.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
post_candidates_spec.rb PERF: Lazy-load translation progress chart on admin AI translations page (#39458) 2026-04-23 11:31:24 -07:00
post_detection_text_spec.rb
post_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
post_localizer_spec.rb FIX: Ensure upload reference is available before cooking (#36887) 2025-12-29 23:33:16 +08:00
tag_candidates_spec.rb FEATURE: Expand AI translation settings to allow choosing specific categories instead of just 'all public content' (#39000) 2026-03-31 22:53:37 +08:00
tag_locale_detector_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
tag_localizer_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
topic_candidates_spec.rb PERF: Fix localization backfills to pass (id, locale) pairs to workers (#39486) 2026-04-23 22:21:39 +08:00
topic_locale_detector_spec.rb FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
topic_localizer_spec.rb PERF: Cache LlmModel lookups in backfill jobs (#36359) 2025-12-01 17:04:25 -03:00
translation_spec.rb FIX: Also automatically translate to site's default locale (#37292) 2026-01-24 00:08:34 +08:00