Commit 33f971a
chore(compass-crud, compass-components): Move Document editor to compass-components (#2915)
* chore(hadron-type-checker): Remove BSONMap mapper
This type is never returned from the driver and changing type to BSONMap
is not supported by hadron-document or any of the editors in the app
* fix(hadron-document): Use correct insertEnd method for placeholder; Fix added / removed event bubbling; Pass element to all element events
* chore(compass-components): Add editable document view
* chore(compass-crud, compass-aggregations): Replace CRUD document with compass-components one
* fix(hadron-document): Copy elements list before iterating
Calling cancel on elements will remove them from LinkedList and
so without cloning items in the iterator will shift before we
can actually "cancel" them
* fix(compass-components): Do not pass mouse down related event callbacks to inputs
* chore(compass-components): Misc element editor fixes
- Use css to toggle element actions (hooks are too slow for this use-case)
- Limit min height of the text area by max height
- Add spacing for type selector
- Move Element to its own file
* chore(compass-components): Make min width for textarea bigger
Co-authored-by: Rhys <[email protected]>
* chore(compass-crud): Fix failing tests
* chore(compass-e2e-tests): Add a bnunch of testids and fix failing e2e tests
* chore(compass-crud): Fix the testid selector in the test
Co-authored-by: Rhys <[email protected]>1 parent bfc9196 commit 33f971a
File tree
71 files changed
+1578
-3383
lines changed- packages
- compass-aggregations/src/components/input-preview
- compass-components
- src/components
- document-list
- compass-crud/src/components
- table-view
- compass-e2e-tests
- helpers
- tests
- hadron-document
- src
- editor
- test
- hadron-type-checker
- src
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+1578
-3383
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
Lines changed: 60 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
29 | 66 | | |
30 | 67 | | |
31 | 68 | | |
| |||
40 | 77 | | |
41 | 78 | | |
42 | 79 | | |
43 | | - | |
| 80 | + | |
44 | 81 | | |
45 | 82 | | |
46 | 83 | | |
| |||
69 | 106 | | |
70 | 107 | | |
71 | 108 | | |
72 | | - | |
| 109 | + | |
73 | 110 | | |
74 | 111 | | |
75 | 112 | | |
| |||
85 | 122 | | |
86 | 123 | | |
87 | 124 | | |
88 | | - | |
| 125 | + | |
89 | 126 | | |
90 | 127 | | |
91 | 128 | | |
| |||
95 | 132 | | |
96 | 133 | | |
97 | 134 | | |
98 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
99 | 140 | | |
100 | 141 | | |
101 | 142 | | |
102 | | - | |
| 143 | + | |
103 | 144 | | |
104 | 145 | | |
105 | 146 | | |
| |||
113 | 154 | | |
114 | 155 | | |
115 | 156 | | |
116 | | - | |
| 157 | + | |
117 | 158 | | |
118 | 159 | | |
119 | 160 | | |
| |||
126 | 167 | | |
127 | 168 | | |
128 | 169 | | |
129 | | - | |
| 170 | + | |
130 | 171 | | |
131 | 172 | | |
132 | 173 | | |
| |||
140 | 181 | | |
141 | 182 | | |
142 | 183 | | |
143 | | - | |
| 184 | + | |
144 | 185 | | |
145 | 186 | | |
146 | 187 | | |
| |||
154 | 195 | | |
155 | 196 | | |
156 | 197 | | |
157 | | - | |
| 198 | + | |
158 | 199 | | |
159 | 200 | | |
160 | 201 | | |
| |||
167 | 208 | | |
168 | 209 | | |
169 | 210 | | |
170 | | - | |
| 211 | + | |
171 | 212 | | |
172 | 213 | | |
173 | 214 | | |
| |||
183 | 224 | | |
184 | 225 | | |
185 | 226 | | |
186 | | - | |
| 227 | + | |
187 | 228 | | |
188 | 229 | | |
189 | 230 | | |
| |||
197 | 238 | | |
198 | 239 | | |
199 | 240 | | |
200 | | - | |
| 241 | + | |
201 | 242 | | |
202 | 243 | | |
203 | 244 | | |
| |||
212 | 253 | | |
213 | 254 | | |
214 | 255 | | |
215 | | - | |
| 256 | + | |
216 | 257 | | |
217 | 258 | | |
218 | 259 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 124 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments