Files
gitlab-foss/spec/frontend/design_management/mock_data/notes.js
2023-07-12 12:11:02 +00:00

48 lines
882 B
JavaScript

import { mockAwardEmoji } from './apollo_mock';
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',
},
awardEmoji: mockAwardEmoji,
createdAt: '2020-05-08T07:10:45Z',
userPermissions: {
adminNote: true,
awardEmoji: 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,
},
];