Skip to content

fix: replace hardcoded FIRMS error with localized no-data message#1035

Merged
koala73 merged 1 commit intomainfrom
fix/fires-panel-no-data-localization
Mar 5, 2026
Merged

fix: replace hardcoded FIRMS error with localized no-data message#1035
koala73 merged 1 commit intomainfrom
fix/fires-panel-no-data-localization

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Mar 5, 2026

Summary

  • Fires panel showed "NASA_FIRMS_API_KEY not configured — add in Settings" whenever fire detections were empty, which is misleading on production (key IS configured; empty data can be caused by seed cron lag, Redis expiry, or circuit breaker)
  • Replaced with localized t('panels.satelliteFires.noData') → "No fire data available" (already translated in all 21 locales)

Changes

  • src/services/wildfires/index.ts — changed reason from API-key-specific string to generic 'no_data'
  • src/app/data-loader.ts — replaced hardcoded English string with t() call

Test plan

  • Verify fires panel shows localized message when no data available
  • Switch language and confirm message updates accordingly
  • Verify normal fire data display is unaffected when data exists

The fires panel showed "NASA_FIRMS_API_KEY not configured" whenever
detections were empty, which is misleading — empty data can have
multiple causes (seed cron lag, Redis expiry, circuit breaker).

Use the existing i18n key `panels.satelliteFires.noData` instead,
which is already translated across all 21 supported languages.
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Mar 5, 2026 2:52am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@koala73 koala73 merged commit 6764be8 into main Mar 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant