Skip to content

WIP: Multiple collections

Richard Smith-Unna requested to merge multiple-collections into authsome

This MR makes changes to the state structure, actions and reducers to handle the transition from single to multiple collections.

state now contains:

  • collections, an array of objects each describing a collection
  • fragments, an object mapping each fragmentID to an object describing the fragment

Some repeated code has been factored out into utility functions, and I've compressed the switch statements as much as possible. The goal of this was to make it as easy as possible to follow the logic of the reducers.

Still to do:

  • update components to use the new state structure and actions

Merge request reports