From 7e06c17bfade65fa8216baf14cacb2f2da486530 Mon Sep 17 00:00:00 2001 From: hermes-explorigin Date: Thu, 27 Aug 2026 00:35:29 +0000 Subject: [PATCH] Use light-drizzle icon for WMO 61 (light rain) and 80 (light showers) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both codes now render 🌦️ instead of 🌧️ in the CODE_MAP. Updated the weather-codes tests accordingly. --- dist/index.html | 4 ++-- src/lib/api/weather-codes.js | 4 ++-- tests/lib/api/weather-codes.test.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.html b/dist/index.html index bda56b1..485fd63 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5884,7 +5884,7 @@ var CODE_MAP = { desc: "Dense freezing drizzle" }, 61: { - icon: "🌧️", + icon: "🌦️", label: "Light Rain", desc: "Slight rain" }, @@ -5929,7 +5929,7 @@ var CODE_MAP = { desc: "Snow grains" }, 80: { - icon: "🌧️", + icon: "🌦️", label: "Light Showers", desc: "Slight rain showers" }, diff --git a/src/lib/api/weather-codes.js b/src/lib/api/weather-codes.js index 809d5aa..074b3d0 100644 --- a/src/lib/api/weather-codes.js +++ b/src/lib/api/weather-codes.js @@ -15,7 +15,7 @@ const CODE_MAP = { 55: { icon: '🌧️', label: 'Heavy Drizzle',desc: 'Dense drizzle' }, 56: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Light freezing drizzle' }, 57: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Dense freezing drizzle' }, - 61: { icon: '🌧️', label: 'Light Rain', desc: 'Slight rain' }, + 61: { icon: '🌦️', label: 'Light Rain', desc: 'Slight rain' }, 63: { icon: '🌧️', label: 'Rain', desc: 'Moderate rain' }, 65: { icon: '🌧️', label: 'Heavy Rain', desc: 'Heavy rain' }, 66: { icon: '🌧️', label: 'Freezing Rain',desc: 'Light freezing rain' }, @@ -24,7 +24,7 @@ const CODE_MAP = { 73: { icon: '🌨️', label: 'Snow', desc: 'Moderate snowfall' }, 75: { icon: '❄️', label: 'Heavy Snow', desc: 'Heavy snowfall' }, 77: { icon: '❄️', label: 'Snow Grains', desc: 'Snow grains' }, - 80: { icon: '🌧️', label: 'Light Showers', desc: 'Slight rain showers' }, + 80: { icon: '🌦️', label: 'Light Showers', desc: 'Slight rain showers' }, 81: { icon: '🌧️', label: 'Showers', desc: 'Moderate rain showers' }, 82: { icon: '⛈️', label: 'Heavy Showers', desc: 'Violent rain showers' }, 85: { icon: '🌨️', label: 'Snow Showers', desc: 'Slight snow showers' }, diff --git a/tests/lib/api/weather-codes.test.js b/tests/lib/api/weather-codes.test.js index 3656751..b61e9e9 100644 --- a/tests/lib/api/weather-codes.test.js +++ b/tests/lib/api/weather-codes.test.js @@ -40,7 +40,7 @@ describe('weather-codes', () => { }) it('handles rain codes', () => { - expect(getWeatherInfo(61).icon).toBe('🌧️') + expect(getWeatherInfo(61).icon).toBe('🌦️') expect(getWeatherInfo(63).icon).toBe('🌧️') expect(getWeatherInfo(65).icon).toBe('🌧️') }) @@ -52,7 +52,7 @@ describe('weather-codes', () => { }) it('handles showers', () => { - expect(getWeatherInfo(80).icon).toBe('🌧️') + expect(getWeatherInfo(80).icon).toBe('🌦️') expect(getWeatherInfo(81).icon).toBe('🌧️') expect(getWeatherInfo(82).icon).toBe('⛈️') })