summaryrefslogtreecommitdiff
path: root/web/src/reducers/initialState.js
blob: d2e3060328498e2f68578cf3b1e5ab937a44773b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export default {
  build: {
    builds: {},
    buildsets: {},
    // Store outputs, manifest, hosts and errorIds separately from the build.
    // This allows us to fetch everything in parallel and we don't have to wait
    // until the build is available. We also don't have to update the actual
    // build object with new information everytime.
    // To simplify the usage we can map everything into a single build object
    // in the mapStateToProps() function in the build page.
    outputs: {},
    manifests: {},
    hosts: {},
    errorIds: {},
    isFetching: false,
    isFetchingOutput: false,
    isFetchingManifest: false,
  },
  component: {
    components: undefined,
    isFetching: false,
  },
  logfile: {
    // Store files by buildId->filename->content
    files: {},
    isFetching: true,
    url: null,
  },
  auth: {},
  user: {},
}