Implement Alarm Snooze functionality

Bug #1354400 reported by Nekhelesh Ramananthan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Critical
Nekhelesh Ramananthan
Ubuntu UX
Fix Released
Medium
Unassigned
indicator-datetime (Ubuntu)
Fix Released
Undecided
Charles Kerr

Bug Description

----- Background Info -----
Currently the snap notification shown when an alarm is triggered shows the buttons "Ok" and "Show" which both does the same thing which is to dismiss the alarm. Since Snap notifications require a minimum of 2 buttons, the only choice is to implement the "Snooze" functionality and replace the "Show" button with "Snooze".

However "Snooze" was decided to be implemented as part of the SDK Alarms API which is worked on by zsombor. As per the blueprint at [1], the snooze functionality was to be implemented in revision 0.2 (post-RTM). However we require a solution to the above issue before RTM.

----- Proposed Solution -----
It was decided after discussing with Mirco Mueller, Giorgio Venturi and Daniela Ferrai to implement the Snooze functionality as a workaround in the Indicator-datetime by dismissing the notification and showing it again after the snooze duration. The full design spec is described below.

1. Provide a settings option in dbus to set the snooze duration that the clock app can expose in the settings page to allow the user to choose the snooze duration. This is shown in [2]. The snooze duration options will be 2, 4, 5 and 10 minutes.

2. On pressing the "Ok" button in the snap notification, the alarm will be dismissed permanently for the day.

3. If the user pressed "Snooze", then indicator-datetime should dismiss the snap notification and show it again after the snooze duration. This process will be repeated until the alarm timeout defined by the user in the clock app settings. By default that timeout is 30 minutes.

This will require a Go/No-Go decision from Charles Kerr regarding the implementation in indicator-datetime since as mentioned above this will be a workaround and workaround are not permanent solutions.

[1] https://blueprints.launchpad.net/ubuntu/+spec/sdk-system-alarm-api
[2] https://docs.google.com/presentation/d/1JvDyhsW17d1-Mz8OY1YMBKwfRI2z9qgyRjbujEsxEMk/edit#slide=id.g18895458d_024

Related branches

description: updated
Charles Kerr (charlesk)
Changed in indicator-datetime (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-datetime (Ubuntu):
status: New → Confirmed
Changed in indicator-datetime (Ubuntu):
status: Confirmed → In Progress
Changed in ubuntu-clock-app:
assignee: nobody → Nekhelesh Ramananthan (nik90)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-datetime - 13.10.0+14.10.20140905-0ubuntu1

---------------
indicator-datetime (13.10.0+14.10.20140905-0ubuntu1) utopic; urgency=low

  [ Charles Kerr ]
  * Add the snooze feature (LP: #1354400)
  * In the alarm's popup notifications' titlebars, don't show the
    seconds in the time format string. (LP: #1364374)
 -- Ubuntu daily release <email address hidden> Fri, 05 Sep 2014 14:12:46 +0000

Changed in indicator-datetime (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntu-clock-app:
status: Triaged → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-clock-app at revision 89, scheduled for release in ubuntu-clock-app, milestone rtm

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
Changed in ubuntu-ux:
status: New → Fix Committed
Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
importance: Undecided → Medium
status: Fix Committed → Fix Released
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.