Skip to content

docs: update haptic guide for built-in user preference toggle - #509

Merged
imorland merged 1 commit into
mainfrom
im/haptic-user-preference
Mar 12, 2026
Merged

docs: update haptic guide for built-in user preference toggle#509
imorland merged 1 commit into
mainfrom
im/haptic-user-preference

Conversation

@imorland

Copy link
Copy Markdown
Member

Summary

  • Adds a new User preference section explaining that Flarum core now ships a haptic toggle in Settings → Device, and that haptic() respects it automatically
  • Removes the "Settings toggle" example — extensions no longer need to add their own haptic preference UI
  • Removes the "Respecting user preferences" section — haptic() gates on the core preference internally, so no extra gating is needed in extensions
  • Updates "Detecting Support" wording to reflect that isHapticSupported is for general conditional UI, not for a settings toggle

Test plan

  • Preview the haptic-feedback.md page and verify the new "User preference" section reads clearly
  • Confirm no broken links or orphaned references to removed sections

🤖 Generated with Claude Code

Flarum core now ships a Device settings toggle for haptic feedback.
Update the guide to reflect that haptic() gates on the preference
automatically and extensions don't need to manage this themselves.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imorland
imorland merged commit 4a10d93 into main Mar 12, 2026
1 check passed
@imorland
imorland deleted the im/haptic-user-preference branch March 12, 2026 23:13
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