[Season] Formatter: Make better use of Item and ItemList

Created on 9 February 2023, over 1 year ago
Updated 17 February 2023, over 1 year ago

Problem/Motivation

In order to complete creating the formatter for ✨ [Season Meta] Add "Seasonal Hours / Duration" feature Fixed , it is preferred to reorganize the code in the formatters:
This makes maintaining the code easier and less error-prone.

Remaining tasks

- use the Itemlist with daynumbers as key (where standard has consecutive keys)
which enables:
- object-oriented use of Item (standard, seasonal, exception), instead of if-then-els using the array of ItemValues.

API changes

The key of the season header may change, if that favours the sorting.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code - formatter

Created by

πŸ‡³πŸ‡±Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024