Fix blank error message when using Serial on Firefox#1254
Conversation
|
@Hunter275 is attempting to deploy a commit to the Meshtastic Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesFeature error message filtering
Estimated code review effort: 1 (Trivial) | ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Add Connection dialog’s feature-warning banner so Firefox users selecting Serial no longer see an empty red warning box when only unrelated features (e.g., Web Bluetooth) are unsupported.
Changes:
- Suppresses the feature warning banner on the Serial tab unless “Web Serial” is actually missing.
- Suppresses the feature warning banner on the Bluetooth tab unless “Web Bluetooth” is actually missing.
| if (tabId === "serial" && !missingFeatures.includes("Web Serial")) { | ||
| return null; | ||
| } | ||
|
|
||
| if (tabId === "bluetooth" && !missingFeatures.includes("Web Bluetooth")) { | ||
| return null; | ||
| } |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…xt and needsFeature are empty
Description
Fix for #1253 removes blank error box now that Firefox does support Serial
Related Issues
#1253
Changes Made
Testing Done
Tested on Firefox on macOS 15.6, will test on Windows tomorrow
Screenshots (if applicable)
Checklist
CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)
Summary by CodeRabbit