discourse/plugins/discourse-ai/spec/system
Keegan George e6e538ee8e
FIX: AI usage doesn't refresh custom date ranges correctly (#34816)
## 🔍 Overview 
Fixes custom date range functionality in AI usage admin page where:
  - Users experienced visual glitches when selecting dates
  - Date picker would show incorrect dates after refresh
  - Users had to refresh multiple times to get correct date range

  **Changes:**
- Added fromDate/toDate getters with fallback logic for preview
functionality
  - Updated DateTimeInputRange to use preview-aware getters
  - Clear temporary dates after refresh to prevent stale state
  - Added system test to prevent regression

  The date picker now immediately shows selected dates (preview) and
  maintains correct values after refresh, eliminating user confusion.

This addresses the exact issue reported in [the meta
topic](https://meta.discourse.org/t/discourse-ai-admin-usage-page-custom-date-range-issues/378959)
and provides a clean solution with test coverage to prevent regression.
2025-09-16 10:16:01 -07:00
..
ai_bot UX: only show AI persona dropdown with multiple options (#34527) 2025-08-27 11:55:35 -04:00
ai_helper DEV: Fix a flaky AI composer helper test (#33998) 2025-07-31 13:55:44 +10:00
ai_moderation FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00
embeddings
llms FEATURE: support GPT-5 (#34168) 2025-08-08 17:32:35 +10:00
page_objects FIX: AI usage doesn't refresh custom date ranges correctly (#34816) 2025-09-16 10:16:01 -07:00
summarization FIX: ensure AI gists render on mobile (#34261) 2025-08-12 17:16:31 -04:00
admin_ai_features_spec.rb FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00
admin_ai_persona_spec.rb
admin_ai_translations_spec.rb UX: Some translation progress chart refinements (#34674) 2025-09-03 11:19:50 +08:00
admin_dashboard_spec.rb
ai_artifact_key_value_api_spec.rb
ai_usage_spec.rb FIX: AI usage doesn't refresh custom date ranges correctly (#34816) 2025-09-16 10:16:01 -07:00
ai_user_preferences_spec.rb FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00
core_features_spec.rb