Commit 421cd4c
feat: Add comprehensive tracking for explore actions and user interactions
This adds instrumentation to track all explore action interactions throughout the UI,
capturing what action was chosen and where it was triggered from.
Tracking categories:
- Explore actions: Track WHAT action (row_count, profile_diff, value_diff, etc.)
and WHERE it was triggered (lineage menu, node sidebar, schema view, etc.)
- Form interactions: Track when users click Execute vs Cancel on action forms
- Lineage selections: Track selection actions (parent/child nodes, upstream/downstream)
Implementation:
- All action names and sources use constants (no magic strings)
- Constants defined in track.ts: EXPLORE_ACTION, EXPLORE_SOURCE, EXPLORE_FORM_EVENT, LINEAGE_SELECTION_ACTION
- Type guards prevent tracking non-explore actions
- Console fallback for development when Amplitude not initialized
Files modified:
- track.ts: Added tracking constants and functions
- RunModal.tsx: Track execute/cancel on explore action forms
- useValueDiffAlertDialog.tsx: Track value diff confirmation dialog
- LineageViewContextMenu.tsx: Track explore actions and lineage selections
- NodeView.tsx: Track actions from node sidebar
- ColumnNameCell.tsx: Track actions from schema view
- useMultiNodesAction.ts: Track multi-node actions from top bar
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: danyel fisher <[email protected]>1 parent b25f087 commit 421cd4c
File tree
7 files changed
+307
-3
lines changed- js/src
- components
- lineage
- run
- schema
- lib/api
7 files changed
+307
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
281 | 295 | | |
282 | 296 | | |
283 | 297 | | |
| |||
296 | 310 | | |
297 | 311 | | |
298 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
299 | 320 | | |
300 | 321 | | |
301 | 322 | | |
| |||
313 | 334 | | |
314 | 335 | | |
315 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
316 | 342 | | |
317 | 343 | | |
318 | 344 | | |
| |||
334 | 360 | | |
335 | 361 | | |
336 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
337 | 366 | | |
338 | 367 | | |
339 | 368 | | |
340 | 369 | | |
341 | 370 | | |
342 | 371 | | |
343 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
344 | 376 | | |
345 | 377 | | |
346 | 378 | | |
347 | 379 | | |
348 | 380 | | |
349 | 381 | | |
350 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
351 | 386 | | |
352 | 387 | | |
353 | 388 | | |
354 | 389 | | |
355 | 390 | | |
356 | 391 | | |
357 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
358 | 396 | | |
359 | 397 | | |
360 | 398 | | |
| |||
400 | 438 | | |
401 | 439 | | |
402 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
403 | 446 | | |
404 | 447 | | |
405 | 448 | | |
| |||
408 | 451 | | |
409 | 452 | | |
410 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
411 | 459 | | |
412 | 460 | | |
413 | 461 | | |
| |||
416 | 464 | | |
417 | 465 | | |
418 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
419 | 472 | | |
420 | 473 | | |
421 | 474 | | |
| |||
424 | 477 | | |
425 | 478 | | |
426 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
427 | 485 | | |
428 | 486 | | |
429 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
73 | 88 | | |
74 | 89 | | |
75 | 90 | | |
| |||
257 | 272 | | |
258 | 273 | | |
259 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
260 | 280 | | |
261 | 281 | | |
262 | 282 | | |
| |||
435 | 455 | | |
436 | 456 | | |
437 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
438 | 463 | | |
439 | 464 | | |
440 | 465 | | |
| |||
457 | 482 | | |
458 | 483 | | |
459 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
460 | 490 | | |
461 | 491 | | |
462 | 492 | | |
| |||
478 | 508 | | |
479 | 509 | | |
480 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
481 | 516 | | |
482 | 517 | | |
483 | 518 | | |
| |||
497 | 532 | | |
498 | 533 | | |
499 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
500 | 540 | | |
501 | 541 | | |
502 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
199 | 210 | | |
200 | 211 | | |
201 | 212 | | |
| |||
225 | 236 | | |
226 | 237 | | |
227 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
228 | 245 | | |
229 | 246 | | |
230 | 247 | | |
| |||
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
257 | 280 | | |
258 | 281 | | |
259 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
56 | 73 | | |
57 | 74 | | |
58 | 75 | | |
59 | 76 | | |
60 | | - | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
| |||
143 | 160 | | |
144 | 161 | | |
145 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
146 | 170 | | |
147 | 171 | | |
148 | 172 | | |
| |||
0 commit comments