Skip to content

refactor: make openNfcSettings nullable on PlatformActions#235

Merged
codebutler merged 1 commit intomasterfrom
nullable-open-nfc-settings
Feb 17, 2026
Merged

refactor: make openNfcSettings nullable on PlatformActions#235
codebutler merged 1 commit intomasterfrom
nullable-open-nfc-settings

Conversation

@codebutler
Copy link
Owner

Summary

  • Changed openNfcSettings from a required function to a nullable property on PlatformActions
  • Android and iOS provide implementations; web and desktop return null (default)
  • UI hides the "NFC Settings" banner and guards the scan FAB when null, so platforms without OS NFC settings never show a dead button

Test plan

  • Verify Android still shows NFC disabled banner when NFC is off
  • Verify web/desktop never show the NFC disabled banner
  • Verify scan FAB still works on all platforms

🤖 Generated with Claude Code

Platforms without OS NFC settings (web, desktop) now return null
instead of providing a no-op. The UI hides the "NFC Settings"
banner and guards the scan FAB accordingly, so users on those
platforms never see a dead button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codebutler codebutler merged commit 0f45054 into master Feb 17, 2026
6 checks passed
@codebutler codebutler deleted the nullable-open-nfc-settings branch February 17, 2026 01:28
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

Comments