Skip to content

[codex] Show clothing recommendations for race day#206

Merged
psjostrom merged 1 commit into
mainfrom
test
Jun 14, 2026
Merged

[codex] Show clothing recommendations for race day#206
psjostrom merged 1 commit into
mainfrom
test

Conversation

@psjostrom

@psjostrom psjostrom commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Include race events in weather-clothing eligibility, not only planned workouts
  • Add a regression test that verifies same-day race events receive clothing recommendations

Root cause

Race-day events use type: "race", but the weather hook only considered type: "planned" events eligible. The agenda and modal could render clothing recommendations, but race events never received one in the map.

Impact

Race day now gets the same SMHI-based clothing guidance as upcoming planned workouts.

Validation

  • npm exec tsc -- --noEmit
  • npm run lint
  • npm test
  • ./node_modules/.bin/vitest app/hooks/__tests__/useWeather.integration.test.tsx --run
  • ./node_modules/.bin/vitest app/components/__tests__/clothing.integration.test.tsx --run

@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
springa Ready Ready Preview, Comment Jun 14, 2026 2:25pm

@psjostrom psjostrom merged commit fbd0d6b into main Jun 14, 2026
5 checks passed
@psjostrom psjostrom deleted the test branch June 14, 2026 16:21
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