Skip to content

feat(ali-je-vroce): use contextual percentile descriptions when avg t…#366

Open
kesma01 wants to merge 4 commits intomainfrom
codex/ali-je-vroce-opisi-pod-30
Open

feat(ali-je-vroce): use contextual percentile descriptions when avg t…#366
kesma01 wants to merge 4 commits intomainfrom
codex/ali-je-vroce-opisi-pod-30

Conversation

@kesma01
Copy link
Copy Markdown
Contributor

@kesma01 kesma01 commented Feb 16, 2026

…emp < 30°C

Spremembo sem naredil s pomočjo codex in sprobal lokalno samo na kompu.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds contextual percentile descriptions to the "Ali je vroče" (Is it hot) weather component based on the current average temperature. When the average temperature is below 30°C, the application now displays more contextually appropriate descriptions that emphasize relative warmth/coldness "for this time of year" rather than absolute temperature assessments.

Changes:

  • Added a new set of temperature descriptions (opisi_pod_30) that provide contextual feedback relative to seasonal expectations
  • Implemented logic to dynamically select between absolute and contextual descriptions based on whether the average temperature is below 30°C
  • Updated imports to include the new description set

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
code/ali-je-vroce/vroce.tsx Added getDescriptionsForTemperature function to conditionally return description sets based on temperature threshold; updated component to use dynamic descriptions
code/ali-je-vroce/constants.ts Added opisi_pod_30 constant with contextual temperature descriptions emphasizing seasonal relativity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jalezi
Copy link
Copy Markdown
Contributor

jalezi commented Feb 16, 2026

@kesma01 i'll take a look over the weekend

Copy link
Copy Markdown

Copilot AI commented Feb 21, 2026

@jalezi I've opened a new pull request, #367, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits February 21, 2026 14:00
…o for reactive tracking

Co-authored-by: jalezi <44704999+jalezi@users.noreply.github.com>
Convert getDescriptionsForTemperature to createMemo for reactive updates
'p40': 'Običajne temperature za ta čas leta',
'p60': 'Topleje kot običajno',
'p80': 'Zelo toplo za ta čas leta',
'p95': 'Izjemno toplo za ta čas leta',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nerad popravljam tekst, ampak meni se lepse slisi "za ta letni čas".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Letni časi" so samo štirje in bi se lahko zdelo, da gre za bolj grobo oceno, kot je v resnici - na osnovi dolgoletnih povprečij.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potem pa mogoce "čas v letu"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meni je ta čas v letu tudi ok. Verjetno je ta čas leta nepravilno jezikovno.

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.

6 participants