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. Nov 08, 2023
  3. Nov 06, 2023
  4. Nov 01, 2023
  5. Oct 21, 2023
  6. Oct 13, 2023
  7. Jun 16, 2023
  8. Jun 15, 2023
  9. Jun 08, 2023
  10. Apr 09, 2023
  11. Apr 06, 2023
  12. Apr 05, 2023
  13. Feb 28, 2023
    • Konrad Mohrfeldt's avatar
      refactor: re-implement auth store with pinia · 439b36dc
      Konrad Mohrfeldt authored
      This re-implements the auth store with pinia.
      
      Other notable changes:
      * the OIDC client configuration and setup is now part of
        separate module that can be included by the OIDC callback routes
        and ensures that we always use the same OIDC client configuration.
      * Authorization headers for the steering and tank REST APIs are now
        set with an axios interceptor instead of specifying them for each
        API store action.
      
      refs #127
      439b36dc
Loading