Commit a46f413
authored
* feat(web-ui): migrate @hugeicons/react 0.3.4 → 1.x (#869)
@hugeicons/react 1.x split the icon data (now @hugeicons/core-free-icons)
from the renderer (@hugeicons/react exports only HugeiconsIcon). The
previous bump attempt (#850) failed with 388 Turbopack errors because
the named icon exports (Add01Icon, etc.) were removed in 1.x.
This migration:
- Bumps @hugeicons/react to ^1.1.9 and adds @hugeicons/core-free-icons ^4.2.2.
- Rewrites every @hugeicons/react import (61 files) to import HugeiconsIcon
from @hugeicons/react and the icon data from @hugeicons/core-free-icons.
- Wraps every <IconName .../> JSX usage in <HugeiconsIcon icon={IconName} .../>.
- Updates 7 value-typed icon maps (eventStyles, RecentActivityFeed,
FileTreePanel, BlockerCard, AppSidebar, NotificationCenter,
BatchExecutionMonitor, VerificationEvent) from ComponentType<>/ElementType
to IconSvgElement, with consumer call sites updated to render via
<HugeiconsIcon icon={...} />.
- Updates the Jest mock: @hugeicons/react now mocks HugeiconsIcon; a new
@hugeicons/core-free-icons mock returns stable icon-name sentinels so
tests can assert on data-testid='icon-<Name>' patterns.
All 56 unique icon names used in the app exist 1:1 in core-free-icons@4.2.2
— no renames needed. Free-tier (MIT) icons only; no Pro packs introduced.
Verified: npm run build (Turbopack) green, npm test 1052/1052 green,
npm run lint clean, tsc --noEmit clean for app source.
* refactor(blockers): rename ORIGIN_CONFIG.Icon → .icon for camelCase consistency
After the hugeicons 1.x migration, the Icon field holds IconSvgElement
data (not a React component), so the other 6 icon-map sites were renamed
to camelCase (icon, stateIcon, navIcon, config.icon, etc.). ORIGIN_CONFIG
was the lone outlier still using PascalCase. Aligns it with the rest of
the migration.
Addresses claude[bot] review nit on PR #873.
* refactor(notifications): rename iconForNotification Icon → icon for camelCase
Final consistency fix: the iconForNotification() return type used a
capitalized 'Icon' field, same pattern as the ORIGIN_CONFIG fix in
f824c19. Now all 8 value-typed icon maps use camelCase field names
(icon, stateIcon, navIcon, config.icon, origin.icon, activityIcons,
changeTypeIcon, statusConfig) consistently.
Addresses claude[bot] follow-up review nit on PR #873.
1 parent c9f865d commit a46f413
66 files changed
Lines changed: 407 additions & 499 deletions
File tree
- web-ui
- __mocks__/@hugeicons
- src
- app
- costs
- execution
- login
- proof
- sessions/[id]
- components
- blockers
- execution
- layout
- prd
- proof
- review
- sessions
- tasks
- workspace
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
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 | | - | |
| 21 | + | |
| 22 | + | |
88 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
129 | | - | |
| 126 | + | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| |||
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
144 | | - | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
| |||
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
159 | | - | |
| 156 | + | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments