Skip to content

Add UI component for recurring schedule configuration #1527

@mjabascal10

Description

@mjabascal10

Describe the feature

Implement a reusable component that allows users to configure recurring schedules by selecting specific days of the week and defining start/end times. The component should support ranges that cross midnight and emit the configuration as a JSON object

Use Case

  • Admins need to define time windows (e.g., Monday–Wednesday, 22:00 → 06:00) for system tasks, restrictions, or automation rules.
  • Previously, schedules were stored as cron expressions, which are hard to read and maintain.
  • By switching to a JSON-based configuration, the UI becomes more intuitive, and the backend can still store the configuration as a string without schema changes.

Proposed Solution

Angular Component (UtmScheduleConfigComponent)

  • Input: initialConfig (ScheduleConfig object).
  • Output: scheduleChange event emitting updated configuration.
  • UI Elements:
    • Day selector: toggle buttons for each day of the week.
    • Time inputs: start and end time fields ().

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions