Skip to content

Add haptic feedback to todo list widget buttons#4355

Merged
bgoncal merged 2 commits intomainfrom
copilot/add-haptic-feedback-to-do-list
Feb 14, 2026
Merged

Add haptic feedback to todo list widget buttons#4355
bgoncal merged 2 commits intomainfrom
copilot/add-haptic-feedback-to-do-list

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

Summary

Adds haptic feedback (system sound 1520 "Peek") to todo list widget buttons, completing the haptic coverage introduced in #4354. Previously, only custom widgets and automations had haptic feedback; todo list complete and refresh buttons were missing.

Changes:

  • TodoItemCompleteAppIntent: Added optional hapticConfirmation parameter (default: true) with conditional AppIntentHaptics.notify() call
  • TodoListRefreshAppIntent: Added unconditional AppIntentHaptics.notify() call

Both follow established patterns: widget buttons provide immediate haptic feedback on press (not on completion), and widget-context intents default haptics to enabled while shortcut-context intents make them optional.

Screenshots

N/A - Haptic feedback only (audio/tactile), no visual changes.

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

Widget buttons coverage:

  • ✅ Complete item button: TodoItemCompleteAppIntent
  • ✅ Refresh button: TodoListRefreshAppIntent
  • ✅ Add item (+): URL-based navigation (no AppIntent)
Original prompt

Atualmente, o widget de lista de tarefas no Home Assistant para iOS tem os seguintes comportamentos de feedback háptico:

  • O pull request Update AppIntents to use system sound 1520 (Peek) #4354 introduziu alterações no AppIntents para usar um som do sistema (id 1520) conhecido como "Peek", que possui uma vibração háptica mais sutil. Isso afeta várias instâncias, como automações e widgets.
    Contudo, no widget 'todo list', os botões ainda estão inconsistentes quanto ao uso de haptics.

A tarefa é:

  1. Adicionar haptic feedback para TODOS os botões no widget 'to-do list'.
  2. Certifique-se de aderir ao padrão "Peek" para todos os botões dentro da extensão ou intacte a mesma funcionalidade introduzida no último PR.
  3. Valide se há duplicações/omissões no AppIntents (caso boolean esteja habilito).
    4.O Container.json IMO poderia trar metadta estendida interesses recesntes. MULT.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: bgoncal <5808343+bgoncal@users.noreply.github.com>
Copilot AI changed the title [WIP] Add haptic feedback to all buttons in to-do list widget Add haptic feedback to todo list widget buttons Feb 14, 2026
Copilot AI requested a review from bgoncal February 14, 2026 17:12
@bgoncal bgoncal marked this pull request as ready for review February 14, 2026 18:11
Copilot AI review requested due to automatic review settings February 14, 2026 18:11
@bgoncal bgoncal enabled auto-merge (squash) February 14, 2026 18:12
Copy link
Copy Markdown
Contributor

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 pull request adds haptic feedback to todo list widget buttons, completing the haptic coverage introduced in PR #4354. The implementation uses the established AppIntentHaptics.notify() method that triggers system sound 1520 (iOS "Peek" sound) for subtle haptic and audio feedback. Both intents properly trigger haptics before the action executes, following the established timing pattern.

Changes:

  • Added haptic feedback to the todo list item completion button via an optional hapticConfirmation parameter with default true
  • Added unconditional haptic feedback to the todo list refresh button

Reviewed changes

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

File Description
Sources/Extensions/Widgets/TodoList/TodoItemCompleteAppIntent.swift Adds optional hapticConfirmation parameter (default: true) with proper initialization in both constructors and conditional haptic call before completing todo items
Sources/Extensions/Widgets/TodoList/TodoListRefreshAppIntent.swift Adds unconditional AppIntentHaptics.notify() call before reloading widget timelines

Comment thread Sources/Extensions/Widgets/TodoList/TodoListRefreshAppIntent.swift
@bgoncal bgoncal merged commit 61e4905 into main Feb 14, 2026
18 checks passed
@bgoncal bgoncal deleted the copilot/add-haptic-feedback-to-do-list branch February 14, 2026 18:39
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@76238c3). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4355   +/-   ##
=======================================
  Coverage        ?   42.99%           
=======================================
  Files           ?      262           
  Lines           ?    15152           
  Branches        ?        0           
=======================================
  Hits            ?     6515           
  Misses          ?     8637           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants