Commit d229d65
authored
feat: add ability to download notebook in full presentation as PDF/PNG (#3658)
* feat: download Notebooks pipes only
* feat: add basic menu button in notebook header
* feat: add logo and title to pdf file
* feat: add dropdown menu button
* feat: add icons to menu items
* feat: add functionality to download PNG
* fix: remove console.log
* fix: recalculate the Y coordinate for pipe list screenshot
* chore: replace Dropdown.Menu with List and remove repeated delete and clone buttons
* fix: remove PopoverInteraction.Click
* test: add cypress test for menu button
* test: add cypress test for menu button in e2e
* feat: add PopoverInteraction on Popover component
* chore: move delete option to bottom
* feat: add hidden header in pipe list for download pdf/png canvas
* style: move inline style to scss file
* feat: add time zone flag to time range label
* feat: add time range label to the hidden header in pipe list
* chore: generalize html2canvas option to select hidden element by class name instead of by id
* chore: replace currentID with flow.id
* chore: change canvasOption back to object instead of a function
* chore: replace currentID with flow.id
* chore: move timezone to be a property of the flow for pdf/png download rather than a property of TimeRangeLabel
* fix: resolve lint and lint-cloud test
* chore: change data-download-hide from class to attribute
* feat: add feature flag downloadNotebookPDF
* chore: remove comment
* fix(test): add multiple to click test
* fix(test): only click on the first element of page-title
* fix: run prettier on pinned.test.ts
* test: click the first page-title element1 parent d7096ea commit d229d65
File tree
6 files changed
+282
-32
lines changed- cypress/e2e
- cloud
- src/flows
- components
- header
6 files changed
+282
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
276 | 284 | | |
277 | 285 | | |
278 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
279 | 306 | | |
280 | 307 | | |
281 | 308 | | |
| |||
301 | 328 | | |
302 | 329 | | |
303 | 330 | | |
304 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
305 | 334 | | |
306 | 335 | | |
307 | 336 | | |
| |||
379 | 408 | | |
380 | 409 | | |
381 | 410 | | |
382 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
383 | 414 | | |
384 | 415 | | |
385 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 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 | + | |
18 | 46 | | |
19 | 47 | | |
20 | 48 | | |
| |||
71 | 99 | | |
72 | 100 | | |
73 | 101 | | |
74 | | - | |
| 102 | + | |
| 103 | + | |
75 | 104 | | |
76 | 105 | | |
77 | 106 | | |
| |||
109 | 138 | | |
110 | 139 | | |
111 | 140 | | |
112 | | - | |
| 141 | + | |
| 142 | + | |
113 | 143 | | |
114 | 144 | | |
115 | 145 | | |
| |||
0 commit comments