Skip to content
Snippets Groups Projects
  1. Mar 28, 2024
  2. Feb 13, 2024
  3. Feb 07, 2024
  4. 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
  5. Oct 13, 2023
  6. Apr 09, 2023
  7. Apr 03, 2023
  8. 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
  9. Feb 28, 2023
  10. Nov 10, 2022
  11. 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
  12. Apr 22, 2022
  13. Nov 25, 2021
  14. Dec 15, 2020
  15. Dec 14, 2020
  16. Nov 24, 2020
  17. Nov 17, 2020
  18. Oct 12, 2020
  19. Oct 01, 2020
  20. Sep 08, 2020
  21. Aug 25, 2020
  22. Aug 24, 2020
  23. May 07, 2020
  24. Oct 23, 2019
  25. Sep 27, 2019
  26. Aug 09, 2019
  27. Aug 06, 2019
  28. Aug 05, 2019
  29. May 08, 2019
  30. Apr 23, 2019
  31. May 19, 2018
  32. Feb 16, 2018
Loading