summaryrefslogtreecommitdiff
path: root/spec/frontend/design_management/mock_data/notes.js
blob: 41cefaca05b92342bb8ecac0a1688c4ec404b849 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
import DISCUSSION_1 from './discussion';

const DISCUSSION_2 = {
  id: 'discussion-id-2',
  notes: {
    nodes: [
      {
        id: 'note-id-2',
        index: 2,
        position: {
          height: 50,
          width: 50,
          x: 25,
          y: 25,
        },
        author: {
          name: 'Mary',
          webUrl: 'link-to-mary-profile',
        },
        createdAt: '2020-05-08T07:10:45Z',
        userPermissions: {
          adminNote: true,
        },
        resolved: true,
      },
    ],
  },
};

export default [
  {
    ...DISCUSSION_1.notes[0],
    discussion: {
      id: DISCUSSION_1.id,
      notes: {
        nodes: DISCUSSION_1.notes,
      },
    },
  },
  {
    ...DISCUSSION_2.notes.nodes[0],
    discussion: DISCUSSION_2,
  },
];