Commit facaca5
Fix security and performance issues found in code review
- fonts.ts: O(n²) string concatenation → O(n) Array.from+join for base64
- fonts.ts: isSystemFont() iterates Set directly instead of Array.from conversion
- TimelineVisualization.tsx: replace CSS [data-group="name"] interpolation with
filter-function approach so group names with special CSS chars are safe;
selectByGroup helper defined once outside the forEach loop
Agent-Logs-Url: https://github.com/cohm/ProgramVisualization/sessions/f61843d3-07a7-4e3c-ad7a-40060c98e600
Co-authored-by: cohm <7143813+cohm@users.noreply.github.com>1 parent e556f5a commit facaca5
2 files changed
Lines changed: 19 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2639 | 2639 | | |
2640 | 2640 | | |
2641 | 2641 | | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
2642 | 2651 | | |
2643 | 2652 | | |
2644 | 2653 | | |
2645 | 2654 | | |
2646 | 2655 | | |
2647 | 2656 | | |
2648 | | - | |
2649 | | - | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
2667 | 2662 | | |
2668 | 2663 | | |
2669 | 2664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments