Bug 14716 - Please add labels to alarms
: Please add labels to alarms
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Alarm
: 7.4.0
: All Other
: -- enhancement with 9 votes (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-11 16:01 UTC by gdpeck
Modified: 2010-02-10 13:23 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments
basic patch (9.17 KB, patch)
2009-11-03 15:24 UTC, KDF
Details | Diff
remove broken unicode hunk (7.89 KB, patch)
2009-11-04 11:13 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gdpeck 2009-10-11 16:01:00 UTC
It would be very helpful to add a label to each alarm that is set. Instead of just seeing Alarm 1, Alarm 2, etc., users could label each alarm, such as "6:30 Weekdays", "7:00 A.M.", etc. iPhone, ipod touch, and blackberry all have this functionality.
Comment 1 KDF 2009-11-02 23:57:59 UTC
any alarm that is on, has an automatic detail like the examples you gave.
Comment 2 Yuly Milner 2009-11-03 00:09:56 UTC
For me it would be just the descriptive names; like "work", school", "sports", etc.
Comment 3 gdpeck 2009-11-03 06:08:43 UTC
(In reply to comment #1)
> any alarm that is on, has an automatic detail like the examples you gave.

Any alarm that is off has no detail. I have a few alarms that I need to set for special occasions, such as getting up earlier on days that I travel. The whole point of labels is that the user can enter something descriptive that helps him/her see what alarms are set, but not necessarily active, without having to go into the menus.
Comment 4 canyoncarver 2009-11-03 06:57:24 UTC
I have three alarms.  One for myself, one for my wife and one to get me/us up on week ends.  With labels like "Alarm 1" "Alarm 2" "Alarm 3" it is confusing as to which Alarm has which function.

Couldn't the Alarm handle be a variable that we could give a name, up to a certain number of characters?

Then my Alarms could be labeled "me" "wife" and "weekend".

Makes sense I think.
Comment 5 KDF 2009-11-03 07:34:47 UTC
The main question is whether to override the detail with the name, or use the name with day/time details.  Of course, this is directed at those who decide the UI design.  I have a basic patch, but won't waste my time making changes that go against the intended design.  Too many patches already sitting around without feedback already.
Comment 6 elziko 2009-11-03 07:43:20 UTC
(In reply to comment #5)
> The main question is whether to override the detail with the name, or use the
> name with day/time details.  Of course, this is directed at those who decide
> the UI design.  I have a basic patch, but won't waste my time making changes
> that go against the intended design.  Too many patches already sitting around
> without feedback already.

Although your question wan't aimed at me I'll chime in anyway!

I think the new name/label should be displayed alongside (but before) the existing details. This way the information that is already available isn't lost to users who like the existing format.

I know this means that the line of text will be longer but the details are already long enough to cause scrolling anyway.
Comment 7 KDF 2009-11-03 15:24:54 UTC
Created attachment 6267 [details]
basic patch

adds a name param to the alarm class, plus UI for editing the name in SP, SbS Web and ip3k UI's.  Currently, the given name simply bypasses the "alarm #" text without interfering with the day/time/off text currently being shown.

Still TBD is the updates to the screen info if the name is editted.  Currently, completion of the edit and going back still shows the old name until the screen is re-entered from top level.  Web UI works ok for this because the submit causes a refresh anyway.
Comment 8 Max Spicer 2009-11-04 09:56:47 UTC
Is it necessary to add a new name param?  Can not the existing title just be used and made editable?  This was how I'd intended it to be used when I designed the class, and the class even provides functionality for editing it.  All that's missing is the UI, as it wasn't deemed a needed feature.

I think your patch may have broken a Russian string - it now displays oddly in my browser.  I'm only looking through the bugzilla patch view though, and haven't looked at the rest of the patch in any detail.
Comment 9 KDF 2009-11-04 10:09:17 UTC
param name doesn't matter.  I used a new one in order not to mess with existing stuff since intent isn't documented (I even pondered using the comment, for which the intent is also unknown).

re: russian string, disregard that hunk of the patch.
Comment 10 KDF 2009-11-04 11:13:53 UTC
Created attachment 6271 [details]
remove broken unicode hunk

updated with the buggered unicode removed.
Comment 11 Max Spicer 2009-11-04 11:54:09 UTC
I've just had a quick look at the code, and you're right, there doesn't seem to be an existing param to store the label.  The decision not to do this must have taken place before I'd done that bit of coding.  There is a title param, but according to its perldoc, it's to do with the playlist's title.

From the perldoc for the comment param:
'Sets/returns the optional text associated with this alarm. Comments should be brief and I<may> be displayed on a player's or controller's screen when the alarm sounds.'

I would say you're right not to have used this to store the label.  At the moment however, I don't believe the comment is used by the core code.
Comment 12 Chris Owens 2010-02-02 15:08:48 UTC
Matt Weldon doesn't work for us any more.
Comment 13 KDF 2010-02-10 13:23:00 UTC
*** Bug 9328 has been marked as a duplicate of this bug. ***