Skip to content
Snippets Groups Projects
  1. Jan 25, 2024
    • Konrad Mohrfeldt's avatar
      refactor/fix: fetch rrules from steering and derive description from rulesets · e10e74db
      Konrad Mohrfeldt authored
      Up until now the dashboard used a hardcoded list of rrules that matched
      a long-gone fixture set of rrules in steering. Additionally, rrules were
      translated in the dashboard using the the ID of the rrules in steering.
      This means that any change to the fixture set, removing an rrule or not
      importing the fixture set at all would mix up the translations and
      therefore the actual schedules that people would create.
      
      A few months ago the rrules were reworked and an API endpoint was
      introduced that exposes the rrules defined in steering. No appropriate
      change was made in the dashboard and so the rrule definitions got
      out-of-sync.
      
      This change implements a rrule store that fetches data from the API.
      Additionally we’ve also implemented a custom rrule to natural language
      mechanism [1]. This is because the scope of the rulesets we use in the
      AURA radio context is well-known and not to complex and because rrule.js
      built-in `toText` function, which might have been an option, is limited:
      
      * bysetpos seems to be entirely unsupported
      * internationalization will produce gramatically questionable
        output for languages like German, because the translation
        interface is somewhat lacking.
      
      [1] #226 (comment 13669)
      e10e74db
    • Konrad Mohrfeldt's avatar
      chore: update steering types · 8c059e86
      Konrad Mohrfeldt authored
      8c059e86
    • Konrad Mohrfeldt's avatar
      aff8a3e6
    • Konrad Mohrfeldt's avatar
      feat: add humanJoin helper function · 22029f3b
      Konrad Mohrfeldt authored
      22029f3b
    • Konrad Mohrfeldt's avatar
      fix: fix various type issues · 8e07ad21
      Konrad Mohrfeldt authored
      8e07ad21
  2. Jan 23, 2024
  3. Nov 08, 2023
  4. Nov 07, 2023
Loading