Skip to content

Fix: Incorrect warning for nRF9151 modem FW files#568

Merged
datenreisender merged 2 commits intomainfrom
push-uxrroyuvqnvk
Jan 19, 2026
Merged

Fix: Incorrect warning for nRF9151 modem FW files#568
datenreisender merged 2 commits intomainfrom
push-uxrroyuvqnvk

Conversation

@datenreisender
Copy link
Contributor

Downloadable from https://www.nordicsemi.com/Products/Development-hardware/nRF9151-SMA-DK/Download?lang=en#infotabs there is currently a modem firmware file named "mfw_nrf9151-ntn_1.0.0-1.alpha.zip" and more like that will probably come. So the app should not warn that this is an invalid file name.

@datenreisender datenreisender added doc required This PR includes user-facing changes that need to be documented. ui not required All PRs either need "ui required" or "ui not required". labels Jan 16, 2026
Copy link

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 PR fixes a bug where the application incorrectly warns users about invalid filenames for nRF9151 modem firmware files that include variant suffixes like -ntn.

Changes:

  • Updated the filename validation regex to support nRF9151 variant suffixes (e.g., mfw_nrf9151-ntn_1.0.0-1.alpha.zip)
  • Extracted validation logic into exported functions for better testability
  • Added comprehensive test coverage for both nRF9160 and nRF91x1 firmware filename validation

Reviewed changes

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

File Description
src/components/ModemUpdateDialogView.tsx Refactored validation logic into exported functions and updated regex to accept nRF9151 variant filenames
src/components/tests/ModemUpdateDialogView-test.ts Added new test file with comprehensive coverage for firmware filename validation
package.json Bumped version to 4.7.2
Changelog.md Added entry documenting the fix for nRF9151 firmware filename validation

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

@KievDevel KievDevel requested a review from greg-fer January 16, 2026 14:08
Changelog.md Outdated
Comment on lines +5 to +7
- Fixed incorrect warning "Unexpected file name detected" for nRF9151 modem
firmware files with variant suffixes (e.g.,
`mfw_nrf9151-ntn_1.0.0-1.alpha.zip`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Fixed incorrect warning "Unexpected file name detected" for nRF9151 modem
firmware files with variant suffixes (e.g.,
`mfw_nrf9151-ntn_1.0.0-1.alpha.zip`).
- Issue with incorrect warning "Unexpected file name detected" that would appear for nRF9151 modem firmware files with variant suffixes (for example, `mfw_nrf9151-ntn_1.0.0-1.alpha.zip`).

Copy link
Contributor Author

@datenreisender datenreisender Jan 19, 2026

Choose a reason for hiding this comment

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

I took your wording and just added line breaks to satisfy the linter.

Downloadable from
https://www.nordicsemi.com/Products/Development-hardware/nRF9151-SMA-DK/Download?lang=en#infotabs
there is currently a modem firmware file named
"mfw_nrf9151-ntn_1.0.0-1.alpha.zip" and more like that will probably
come. So the app should not warn that this is an invalid file name.
@datenreisender datenreisender merged commit f2cef8d into main Jan 19, 2026
3 checks passed
@datenreisender datenreisender deleted the push-uxrroyuvqnvk branch January 19, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc required This PR includes user-facing changes that need to be documented. ui not required All PRs either need "ui required" or "ui not required".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants