mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 15:23:00 +08:00
## Summary - Adds estimated completion time (ETA) display for AI translation backfill progress - ETA is calculated based on the configured hourly rate and remaining untranslated posts - Display format automatically adjusts based on time remaining (minutes, hours, or days) - ETA appears inline with the post count for better UX ## Implementation Details - Backend sends `hourly_rate` from site settings to frontend - Frontend calculates total remaining posts across all locales - ETA calculation: `remaining_posts / hourly_rate` - Format logic: - < 1 hour: shows minutes - 1-24 hours: shows hours - \> 24 hours: shows days - Only displays when backfill is enabled and there are posts remaining <img width="1243" height="242" alt="image" src="https://github.com/user-attachments/assets/314bc399-9694-43ec-8591-0237c1b902f6" /> |
||
|---|---|---|
| .. | ||
| ai_artifacts_controller_spec.rb | ||
| ai_embeddings_controller_spec.rb | ||
| ai_features_controller_spec.rb | ||
| ai_llm_quotas_controller_spec.rb | ||
| ai_llms_controller_spec.rb | ||
| ai_personas_controller_spec.rb | ||
| ai_spam_controller_spec.rb | ||
| ai_tools_controller_spec.rb | ||
| ai_translations_controller_spec.rb | ||
| ai_usage_controller_spec.rb | ||
| rag_document_fragments_controller_spec.rb | ||
| reviewable_controller_spec.rb | ||