Skip to content

Commit eb8a804

Browse files
philipjacksonChasNelson1990cooper667
authored
feat: View annotations (#403)
* feat: add View Annotations button / dialog * fix: hide View Annotations button from collaborators * feat: call annotateCallback with username from ViewAnnotaitonsDialog * fix: move View Annotations button to View Collections location * fix: view annotations icon * fix: lint errors * fix: make cancel button close dialog * fix: remove CardComponent, make autocomplete fullWidth * fix: remove unused imports * style: metadata.json indent * fix: fix capitalisation by adding assignees to metadataNameMap * fix: add assignees to example in metadata.json * fix: clear assignees from metadata.json in AutoAssignDialog.test.tsx * fix: change View Annotations button icon and position * fix: change viewannotations input label to 'User email' * fix: remove border line under View Annotations autocomplete * fix: MetadataDraw top margin * fix: lint error * fix: use '<name> - <email>' as dropdown labels * fix: initialise ViewAnnotationsDialog input as empty, clear every time * fix: simplify useEffects, clear input on dialog close * fix: fix build after merge * chore: prettier Co-authored-by: Chas Nelson <[email protected]> Co-authored-by: Craig Cooper <[email protected]>
1 parent 11c2c37 commit eb8a804

File tree

9 files changed

+1483
-4544
lines changed

9 files changed

+1483
-4544
lines changed

examples/samples/metadata.json

Lines changed: 184 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,186 @@
11
[
2-
{
3-
"imageName": "big_long_name_sample_sample0.png",
4-
"size": "1260 bytes",
5-
"dateCreated": "Apr 28 2021",
6-
"dimensions": "120 x 140",
7-
"numberOfDimensions": "2",
8-
"numberOfChannels": "1",
9-
"imageLabels": ["label1"],
10-
"assignees": [],
11-
"fileMetaVersion": "1.0.0",
12-
"width": 1230,
13-
"height": 2402
14-
},
15-
{
16-
"imageName": "sample1.png",
17-
"size": "1260 bytes",
18-
"dateCreated": "Apr 21 2021",
19-
"dimensions": "130 x 170",
20-
"numberOfDimensions": "2",
21-
"numberOfChannels": "1",
22-
"imageLabels": ["label1", "label2"],
23-
"assignees": [],
24-
"fileMetaVersion": "1.0.0",
25-
"width": 1500,
26-
"height": 3402
27-
},
28-
{
29-
"imageName": "sample2.png",
30-
"size": "1260 bytes",
31-
"dateCreated": "Apr 28 2021",
32-
"dimensions": "120 x 140",
33-
"numberOfDimensions": "2",
34-
"numberOfChannels": "1",
35-
"imageLabels": ["label1", "label2", "label3"],
36-
"assignees": [],
37-
"fileMetaVersion": "1.0.0",
38-
"width": 396,
39-
"height": 297
40-
},
41-
{
42-
"imageName": "sample3.png",
43-
"size": "1260 bytes",
44-
"dateCreated": "Apr 03 2021",
45-
"dimensions": "120 x 140",
46-
"numberOfDimensions": "2",
47-
"numberOfChannels": "1",
48-
"imageLabels": ["label5", "label7"],
49-
"assignees": [],
50-
"fileMetaVersion": "1.0.0",
51-
"width": 252,
52-
"height": 169
53-
},
54-
{
55-
"imageName": "sample4.png",
56-
"size": "1260 bytes",
57-
"dateCreated": "May 05 2021",
58-
"dimensions": "120 x 140",
59-
"numberOfDimensions": "2",
60-
"numberOfChannels": "1",
61-
"imageLabels": ["label4"],
62-
"assignees": [],
63-
"fileMetaVersion": "1.0.0"
64-
},
65-
{
66-
"imageName": "sample5.png",
67-
"size": "1260 bytes",
68-
"dateCreated": "May 06 2021",
69-
"dimensions": "120 x 140",
70-
"numberOfDimensions": "2",
71-
"numberOfChannels": "1",
72-
"imageLabels": ["label5", "label7"],
73-
"assignees": [],
74-
"fileMetaVersion": "1.0.0"
75-
},
76-
{
77-
"imageName": "sample6.png",
78-
"size": "1260 bytes",
79-
"dateCreated": "May 06 2021",
80-
"dimensions": "120 x 140",
81-
"numberOfDimensions": "2",
82-
"numberOfChannels": "1",
83-
"imageLabels": ["label5", "label7"],
84-
"assignees": [],
85-
"fileMetaVersion": "1.0.0"
86-
},
87-
{
88-
"imageName": "sample7.png",
89-
"size": "1260 bytes",
90-
"dateCreated": "May 06 2021",
91-
"dimensions": "120 x 140",
92-
"numberOfDimensions": "2",
93-
"numberOfChannels": "1",
94-
"imageLabels": ["label5", "label7"],
95-
"assignees": [],
96-
"fileMetaVersion": "1.0.0"
97-
},
98-
{
99-
"imageName": "sample8.png",
100-
"size": "1260 bytes",
101-
"dateCreated": "May 06 2021",
102-
"dimensions": "120 x 140",
103-
"numberOfDimensions": "2",
104-
"numberOfChannels": "1",
105-
"imageLabels": ["label5", "label7"],
106-
"assignees": [],
107-
"fileMetaVersion": "1.0.0"
108-
},
109-
{
110-
"imageName": "sample9.png",
111-
"size": "1260 bytes",
112-
"dateCreated": "May 06 2021",
113-
"dimensions": "120 x 140",
114-
"numberOfDimensions": "2",
115-
"numberOfChannels": "1",
116-
"imageLabels": ["label5", "label7"],
117-
"assignees": [],
118-
"fileMetaVersion": "1.0.0"
119-
},
120-
{
121-
"imageName": "sample10.png",
122-
"size": "1260 bytes",
123-
"dateCreated": "May 06 2021",
124-
"dimensions": "120 x 140",
125-
"numberOfDimensions": "2",
126-
"numberOfChannels": "1",
127-
"imageLabels": ["label5", "label7"],
128-
"assignees": [],
129-
"fileMetaVersion": "1.0.0"
130-
},
131-
{
132-
"imageName": "sample11.png",
133-
"size": "1260 bytes",
134-
"dateCreated": "May 06 2021",
135-
"dimensions": "120 x 140",
136-
"numberOfDimensions": "2",
137-
"numberOfChannels": "1",
138-
"imageLabels": ["label5", "label7"],
139-
"assignees": [],
140-
"fileMetaVersion": "1.0.0"
141-
},
142-
{
143-
"imageName": "sample12.png",
144-
"size": "1260 bytes",
145-
"dateCreated": "May 06 2021",
146-
"dimensions": "120 x 140",
147-
"numberOfDimensions": "2",
148-
"numberOfChannels": "1",
149-
"imageLabels": ["label5", "label7"],
150-
"assignees": [],
151-
"fileMetaVersion": "1.0.0"
152-
},
153-
{
154-
"imageName": "sample13.png",
155-
"size": "1260 bytes",
156-
"dateCreated": "May 06 2021",
157-
"dimensions": "120 x 140",
158-
"numberOfDimensions": "2",
159-
"numberOfChannels": "1",
160-
"imageLabels": ["label5", "label7"],
161-
"assignees": [],
162-
"fileMetaVersion": "1.0.0"
163-
},
164-
{
165-
"imageName": "sample14.png",
166-
"size": "1260 bytes",
167-
"dateCreated": "May 06 2021",
168-
"dimensions": "120 x 140",
169-
"numberOfDimensions": "2",
170-
"numberOfChannels": "1",
171-
"imageLabels": ["label5", "label7"],
172-
"assignees": [],
173-
"fileMetaVersion": "1.0.0"
174-
},
175-
{
176-
"imageName": "sample15.png",
177-
"size": "1260 bytes",
178-
"dateCreated": "May 06 2021",
179-
"dimensions": "120 x 140",
180-
"numberOfDimensions": "2",
181-
"numberOfChannels": "1",
182-
"imageLabels": ["label2", "label7"],
183-
"assignees": [],
184-
"fileMetaVersion": "1.0.0"
185-
}
186-
2+
{
3+
"imageName": "big_long_name_sample_sample0.png",
4+
"size": "1260 bytes",
5+
"dateCreated": "Apr 28 2021",
6+
"dimensions": "120 x 140",
7+
"numberOfDimensions": "2",
8+
"numberOfChannels": "1",
9+
"imageLabels": ["label1"],
10+
11+
"fileMetaVersion": "1.0.0",
12+
"width": 1230,
13+
"height": 2402
14+
},
15+
{
16+
"imageName": "sample1.png",
17+
"size": "1260 bytes",
18+
"dateCreated": "Apr 21 2021",
19+
"dimensions": "130 x 170",
20+
"numberOfDimensions": "2",
21+
"numberOfChannels": "1",
22+
"imageLabels": ["label1", "label2"],
23+
24+
"fileMetaVersion": "1.0.0",
25+
"width": 1500,
26+
"height": 3402
27+
},
28+
{
29+
"imageName": "sample2.png",
30+
"size": "1260 bytes",
31+
"dateCreated": "Apr 28 2021",
32+
"dimensions": "120 x 140",
33+
"numberOfDimensions": "2",
34+
"numberOfChannels": "1",
35+
"imageLabels": ["label1", "label2", "label3"],
36+
37+
"fileMetaVersion": "1.0.0",
38+
"width": 396,
39+
"height": 297
40+
},
41+
{
42+
"imageName": "sample3.png",
43+
"size": "1260 bytes",
44+
"dateCreated": "Apr 03 2021",
45+
"dimensions": "120 x 140",
46+
"numberOfDimensions": "2",
47+
"numberOfChannels": "1",
48+
"imageLabels": ["label5", "label7"],
49+
"assignees": ["[email protected]"],
50+
"fileMetaVersion": "1.0.0",
51+
"width": 252,
52+
"height": 169
53+
},
54+
{
55+
"imageName": "sample4.png",
56+
"size": "1260 bytes",
57+
"dateCreated": "May 05 2021",
58+
"dimensions": "120 x 140",
59+
"numberOfDimensions": "2",
60+
"numberOfChannels": "1",
61+
"imageLabels": ["label4"],
62+
63+
"fileMetaVersion": "1.0.0"
64+
},
65+
{
66+
"imageName": "sample5.png",
67+
"size": "1260 bytes",
68+
"dateCreated": "May 06 2021",
69+
"dimensions": "120 x 140",
70+
"numberOfDimensions": "2",
71+
"numberOfChannels": "1",
72+
"imageLabels": ["label5", "label7"],
73+
74+
"fileMetaVersion": "1.0.0"
75+
},
76+
{
77+
"imageName": "sample6.png",
78+
"size": "1260 bytes",
79+
"dateCreated": "May 06 2021",
80+
"dimensions": "120 x 140",
81+
"numberOfDimensions": "2",
82+
"numberOfChannels": "1",
83+
"imageLabels": ["label5", "label7"],
84+
85+
"fileMetaVersion": "1.0.0"
86+
},
87+
{
88+
"imageName": "sample7.png",
89+
"size": "1260 bytes",
90+
"dateCreated": "May 06 2021",
91+
"dimensions": "120 x 140",
92+
"numberOfDimensions": "2",
93+
"numberOfChannels": "1",
94+
"imageLabels": ["label5", "label7"],
95+
96+
"fileMetaVersion": "1.0.0"
97+
},
98+
{
99+
"imageName": "sample8.png",
100+
"size": "1260 bytes",
101+
"dateCreated": "May 06 2021",
102+
"dimensions": "120 x 140",
103+
"numberOfDimensions": "2",
104+
"numberOfChannels": "1",
105+
"imageLabels": ["label5", "label7"],
106+
107+
"fileMetaVersion": "1.0.0"
108+
},
109+
{
110+
"imageName": "sample9.png",
111+
"size": "1260 bytes",
112+
"dateCreated": "May 06 2021",
113+
"dimensions": "120 x 140",
114+
"numberOfDimensions": "2",
115+
"numberOfChannels": "1",
116+
"imageLabels": ["label5", "label7"],
117+
118+
"fileMetaVersion": "1.0.0"
119+
},
120+
{
121+
"imageName": "sample10.png",
122+
"size": "1260 bytes",
123+
"dateCreated": "May 06 2021",
124+
"dimensions": "120 x 140",
125+
"numberOfDimensions": "2",
126+
"numberOfChannels": "1",
127+
"imageLabels": ["label5", "label7"],
128+
129+
"fileMetaVersion": "1.0.0"
130+
},
131+
{
132+
"imageName": "sample11.png",
133+
"size": "1260 bytes",
134+
"dateCreated": "May 06 2021",
135+
"dimensions": "120 x 140",
136+
"numberOfDimensions": "2",
137+
"numberOfChannels": "1",
138+
"imageLabels": ["label5", "label7"],
139+
"assignees": ["[email protected]"],
140+
"fileMetaVersion": "1.0.0"
141+
},
142+
{
143+
"imageName": "sample12.png",
144+
"size": "1260 bytes",
145+
"dateCreated": "May 06 2021",
146+
"dimensions": "120 x 140",
147+
"numberOfDimensions": "2",
148+
"numberOfChannels": "1",
149+
"imageLabels": ["label5", "label7"],
150+
151+
"fileMetaVersion": "1.0.0"
152+
},
153+
{
154+
"imageName": "sample13.png",
155+
"size": "1260 bytes",
156+
"dateCreated": "May 06 2021",
157+
"dimensions": "120 x 140",
158+
"numberOfDimensions": "2",
159+
"numberOfChannels": "1",
160+
"imageLabels": ["label5", "label7"],
161+
162+
"fileMetaVersion": "1.0.0"
163+
},
164+
{
165+
"imageName": "sample14.png",
166+
"size": "1260 bytes",
167+
"dateCreated": "May 06 2021",
168+
"dimensions": "120 x 140",
169+
"numberOfDimensions": "2",
170+
"numberOfChannels": "1",
171+
"imageLabels": ["label5", "label7"],
172+
173+
"fileMetaVersion": "1.0.0"
174+
},
175+
{
176+
"imageName": "sample15.png",
177+
"size": "1260 bytes",
178+
"dateCreated": "May 06 2021",
179+
"dimensions": "120 x 140",
180+
"numberOfDimensions": "2",
181+
"numberOfChannels": "1",
182+
"imageLabels": ["label2", "label7"],
183+
184+
"fileMetaVersion": "1.0.0"
185+
}
187186
]

0 commit comments

Comments
 (0)