discourse/plugins/discourse-ai/spec/requests/admin
Rafael dos Santos Silva 6b7a086644
FEATURE: Add estimated completion time to AI translation backfill (#35474)
## 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"
/>
2025-10-17 11:55:26 -03:00
..
ai_artifacts_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
ai_embeddings_controller_spec.rb DEV: Fix random typos (#33839) 2025-07-24 22:04:13 +02:00
ai_features_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
ai_llm_quotas_controller_spec.rb
ai_llms_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
ai_personas_controller_spec.rb
ai_spam_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
ai_tools_controller_spec.rb
ai_translations_controller_spec.rb FEATURE: Add estimated completion time to AI translation backfill (#35474) 2025-10-17 11:55:26 -03:00
ai_usage_controller_spec.rb FIX: ensure usage report is timezone aware to prevent gaps (#33913) 2025-07-29 13:42:31 -07:00
rag_document_fragments_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
reviewable_controller_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00