Skip to content

[Feature request] [Alarms] Put hidden alarms in submenu #4217

@thyttan

Description

@thyttan

Description

Add a submenu to the Alarms app called "Hidden alarms" where all alarms with the hidden attribute set are relegated to.

Background

EDIT: I realized I should not add 27 Alarms but just keep adjusting/snoozing a singel alarm instead. Making this feature request not feel as important.

I'm trying out refactoring the twenties app (vibrate the watch every 20 mins to stand up and rest your eyes) to use the scheduling library to setup vibration intervals. Instead of using it's own setTimeout calls. This adds 27 new "hidden" alarms that should be set and forget. Today that makes the main menu of the Alarms app crowded and noticeably slower to load. Filtering out hidden alarms would help with accessing alarms I actually want to interact with on a more regular basis. And hopefully speed up loading the menu too?

Diff against master here: https://github.com/espruino/BangleApps/compare/master...thyttan:BangleApps:twenties?expand=1

Considerations

Is the way of using the scheduling library as I describe above in the background section a good or bad idea? Will adding a bunch of alarms that way lead to unwanted slowdowns when parsing alarms in other places (e.g. during boot b/w loads)? Maybe it's better to just keep using setTimeout to not introduce complexity in a bunch of places?

Instead of using the hidden attribute (that today just hides that alarms widget AFAIK) should a new attribute be introduced for hiding it from the main menu?

I'm curious to hear your thoughts on this @gfwilliams when you have the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions