1. 29 Apr, 2020 2 commits
    • Tom Quirk's avatar
      Add various design management util tests · 30845ac4
      Tom Quirk authored
      Add tests for:
      
      - extractDesign util
      - onDesignQueryResult (pages/design/index.vue)
      - onQueryError (pages/design/index.vue)
      30845ac4
    • Tom Quirk's avatar
      Add error feedback for non-existent design · 7b96d898
      Tom Quirk authored
      Previously, when opening Design View, if the design
      did not exist (i.e. bad url, wrong version) we
      would not handle this case and the loading
      spinner would endlessly display.
      
      This commit adds better guards to extractDesign()
      util to prevent an exception being thrown in this case,
      and handles it explicitly by redirecting user and using
      createFlash.
      
      In addition, a few full stops are added to error messages
      for consistency.
      7b96d898
  2. 28 Apr, 2020 38 commits