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
  2. Oct 13, 2023
  3. Apr 09, 2023
  4. Apr 03, 2023
  5. Mar 27, 2023
    • Konrad Mohrfeldt's avatar
      fix: fix iteration bugs · e4083e66
      Konrad Mohrfeldt authored
      Some iteration semantics got mixed up when replacing remaining uses of
      `var` variable declarations in ae37fb6c.
      
      `var foo in bar` cannot be replaced with `const foo of bar` because the
      first will assign the iteration index of the current item to foo,
      whereas the second will assign the actual iteration item.
      e4083e66
  6. Feb 28, 2023
  7. Nov 10, 2022
  8. Apr 24, 2022
    • Konrad Mohrfeldt's avatar
      refactor: clean up time & date functions · 1140b802
      Konrad Mohrfeldt authored
      * replace all `var` declarations and use `const` where appropriate
      * strip unnecessary temporary variables
      * replace single character variable names
      * replace multiline variable declarations
      * simplify expressions
      * replace invalid uses of parseInt
      1140b802
  9. Apr 22, 2022
  10. Nov 25, 2021
  11. Dec 15, 2020
  12. Dec 14, 2020
  13. Nov 24, 2020
  14. Nov 17, 2020
  15. Oct 12, 2020
  16. Oct 01, 2020
  17. Sep 08, 2020
  18. Aug 25, 2020
  19. Aug 24, 2020
  20. May 07, 2020
  21. Oct 23, 2019
  22. Sep 27, 2019
  23. Aug 09, 2019
  24. Aug 06, 2019
  25. Aug 05, 2019
  26. May 08, 2019
  27. Apr 23, 2019
  28. May 19, 2018
  29. Feb 16, 2018
  30. Feb 14, 2018
  31. Dec 25, 2017
  32. Nov 15, 2017
Loading