Update weather extension - #30897
Conversation
Add a menu bar preference to show the feels-like temperature instead of the actual temperature. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLRG5JDNtaAxs472tCRmTY
|
Thank you for your contribution! 🎉 🔔 @tonka3000 @xilopaint @ridemountainpig @spencer-michaels you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="weather-feels-like-menubar"
FORK_URL="https://github.com/jenningsb2/raycast-extensions.git"
EXTENSION_NAME="weather"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThe PR adds a menu-bar preference for displaying either the actual or feels-like temperature and updates weather-value handling to support the fallback behavior.
Confidence Score: 4/5The functional change appears sound, but the changelog placeholder requirement must be restored before merging. The previous feels-like fallback defect is fully fixed because missing values now return before formatting, allowing the actual temperature fallback to run. The remaining issue is the explicit repository requirement that new changelog headings retain Files Needing Attention: extensions/weather/CHANGELOG.md Important Files Changed
Prompt To Fix All With AI### Issue 1
extensions/weather/CHANGELOG.md:3
**Literal Changelog Date**
This heading uses `2026-09-08` instead of the required `{PR_MERGE_DATE}` placeholder. Repository rules require new changelog headings to keep this placeholder so the merge date can be populated automatically; this requirement must be satisfied before merging.
```suggestion
## [Feels Like in Menu Bar] - {PR_MERGE_DATE}
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
| const feelsLike = getCurrentFeelLikeTemperature(curcon)?.valueAndUnit; | ||
| const menuTemp = menutemperature === "feelslike" ? feelsLike || temp : temp; |
There was a problem hiding this comment.
When current conditions exist but the selected FeelsLikeC or FeelsLikeF field is unavailable, getCurrentFeelLikeTemperature produces a truthy string such as "undefined °C". Therefore, feelsLike || temp does not use the actual temperature fallback and instead displays malformed menu-bar text.
| const feelsLike = getCurrentFeelLikeTemperature(curcon)?.valueAndUnit; | |
| const menuTemp = menutemperature === "feelslike" ? feelsLike || temp : temp; | |
| const feelsLike = getCurrentFeelLikeTemperature(curcon); | |
| const menuTemp = menutemperature === "feelslike" ? (feelsLike?.value ? feelsLike.valueAndUnit : temp) : temp; |
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/weather/src/menubar.tsx
Line: 408-409
Comment:
**Broken Feels-Like Fallback**
When current conditions exist but the selected `FeelsLikeC` or `FeelsLikeF` field is unavailable, `getCurrentFeelLikeTemperature` produces a truthy string such as `"undefined °C"`. Therefore, `feelsLike || temp` does not use the actual temperature fallback and instead displays malformed menu-bar text.
```suggestion
const feelsLike = getCurrentFeelLikeTemperature(curcon);
const menuTemp = menutemperature === "feelslike" ? (feelsLike?.value ? feelsLike.valueAndUnit : temp) : temp;
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.…ure handling - Upgrade esbuild dependencies to version 0.28.2 in package-lock.json and package.json. - Add an override for esbuild in package.json to ensure compatibility. - Enhance the getCurrentFeelLikeTemperature function in wttr.ts to handle cases where the feels-like value is not available. This update ensures the weather extension uses the latest esbuild version and improves the robustness of temperature calculations.
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
| @@ -1,5 +1,9 @@ | |||
| # Weather Changelog | |||
|
|
|||
| ## [Feels Like in Menu Bar] - 2026-09-08 | |||
There was a problem hiding this comment.
This heading uses 2026-09-08 instead of the required {PR_MERGE_DATE} placeholder. Repository rules require new changelog headings to keep this placeholder so the merge date can be populated automatically; this requirement must be satisfied before merging.
| ## [Feels Like in Menu Bar] - 2026-09-08 | |
| ## [Feels Like in Menu Bar] - {PR_MERGE_DATE} |
Rule Used: What: Changelog entries must use {PR_MERGE_DATE}... (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/weather/CHANGELOG.md
Line: 3
Comment:
**Literal Changelog Date**
This heading uses `2026-09-08` instead of the required `{PR_MERGE_DATE}` placeholder. Repository rules require new changelog headings to keep this placeholder so the merge date can be populated automatically; this requirement must be satisfied before merging.
```suggestion
## [Feels Like in Menu Bar] - {PR_MERGE_DATE}
```
**Rule Used:** What: Changelog entries must use `{PR_MERGE_DATE}`... ([source](https://app.greptile.com/raycast/-/custom-context?memory=c2214c11-df56-490a-b1c0-09a385df481a))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.* Update launchdarkly extension - Add Windows support to LaunchDarkly extension - [Color Picker] Fix grey color swatches for some color formats (#30936) - Update twitter extension (#30930) - Update chatgpt extension (#30945) - Update CODEOWNERs (242403b) - Add Windows support for Mozilla Firefox extension (#30285) - Update CODEOWNERs (5888116) - Update powertoys-tool-runner extension (#30937) - Update CODEOWNERs (988e550) - Capso: Initial release (#30596) - Update easydict extension (#30706) - Update CODEOWNERs (1b57711) - Update github extension (#30931) - [Clockify] Honor the project\'s billable default when creating time entries (#30927) - Add cached usage on open and configurable background refresh (#30925) - Update CODEOWNERs (3e513c4) - Add storage-benchmark extension (#30563) - Update CODEOWNERs (8b29f51) - [Day One] Support renamed CLI command (#30926) - Agent Usage: Antigravity quota when the app is closed (#30901) - Update CODEOWNERs (a6da092) - Add dated-folder extension (#30600) - [Google Cloud CLI] Add Cloud SQL (#30728) - Update CODEOWNERs (d2dc991) - Font Search: fix font preview in dark mode (#30923) - Clockify: fix requests being sent to an undefined workspace (#30894) - [Telegram] Fix bot messages showing as Unknown (migrate archived GramJS to teleproto) (#30836) - Agent Usage: apply saved provider order in the menu bar (#30902) - [Statamic Docs] Fix crash on launch in newer Raycast versions (#30921) - [UpNote] Fix special characters breaking note, notebook and tag actions (#30920) - Update CODEOWNERs (afdcfd0) - [Safari] Add New Window command (#30909) - Update CODEOWNERs (075336a) - Update twitter extension (#30905) - Update CODEOWNERs (2e9c66f) - Update speedtest extension (#30880) - Update Sunsama extension (#30899) - fix(browser-tabs): keep maximized windows maximized on Windows (#30908) - Update attio extension (#30910) - Downloads Manager: align shortcuts with Search Screenshots (#30912) - Update CODEOWNERs (97cd688) - Update attio extension (#30881) - Update CODEOWNERs (81d3f54) - Update weather extension (#30897) - [Telegram] Fix blank photo previews and Unknown message senders (#30835) - Add Xerox status OIDs (#30860) - Add Hermoso to Model Context Protocol Registry (#30907) - Fix Orc Pictures Windows copy and Store icon (#30893) - Update codex extension (#30898) - Update Window-Sizer extension (#30900) - Update CODEOWNERs (9ce2c3f) - Transfer OpenQR extension ownership to the OpenQR organisation (#30654) - Docs: update for the new API release - Update app-updates extension (#30868) - Update CODEOWNERs (98c565e) - Add ui-component-search extension (#30485) - Update CODEOWNERs (e5dfcbb) - Agent Usage: add OpenRouter credit balance (#30855) - Update launchdarkly extension (#30882) - Update CODEOWNERs (36ad63c) - Add load-bearing-reply extension (#30445) - Update brew extension (#30852) - Update CODEOWNERs (17dd4b2) - Update in the time zone extension (#30888) - Update CODEOWNERs (8bba2b9) - Add Orc Pictures extension (#30870) - docs: correct eight Keyboard.Shortcut.Common bindings against the shipped runtime (#30879) - Update CODEOWNERs (bbdee3a) - Clockify: fix project dropdown resetting selection and timer failing to start (#30877) - HackMD: Add workspace and profile browser actions (#30876) - launchdarkly: refresh store screenshots for the new UI - launchdarkly: final review fixes - launchdarkly: mock server covers projects, 404s and browser pages - launchdarkly: make Switch Project an action instead of a command - launchdarkly: update README and changelog for the new features - launchdarkly: extend mock server for new endpoints - launchdarkly: add Recent Changes and Switch Project commands - launchdarkly: rebuild flag list and details views - launchdarkly: add API client layer, typed endpoints and data hooks - launchdarkly: upgrade dependencies and migrate to ESLint flat config - launchdarkly: drop unsupported expand param and stale refetch - launchdarkly: fix targeting display * launchdarkly: declare Windows variants for custom shortcuts * Update extensions/launchdarkly/README.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update CHANGELOG.md --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: raycastbot <bot@raycast.com>
Description
Adds a Temperature dropdown preference to the Weather Menu Bar command with two options: Actual (default, current behavior) and Feels Like. When set to Feels Like, the menu bar text shows the feels-like temperature instead of the actual temperature. Falls back to the actual temperature if the feels-like value is unavailable.
The dropdown menu contents are unchanged and still show both the Temperature and Feels Like rows.
Screencast
Straightforward preference change. With Feels Like selected the menu bar reads e.g.
74 °Fwhile the Temperature row in the dropdown still shows70 °F.Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool🤖 Generated with Claude Code
https://claude.ai/code/session_01DLRG5JDNtaAxs472tCRmTY