Commit b15fb89
committed
feat(m3): component_map reports unmatchedProps (component-extension TODOs)
Add candidate.unmatchedProps — the actionable inverse of matchedProps:
Figma component-property axes (variant / boolean / text) with no matching
prop on the candidate code component. Codegen surfaces these as
extension TODOs instead of silently dropping design intent (a leading
icon, a `required` flag, an active state).
Also diff props on the override (map-file) path, which previously never
resolved the scanned component: resolveOverrideComponent looks it up by
repo-relative path then name, so map-file mappings now report both
matchedProps and unmatchedProps.
Driven by a hard-screen codegen A/B (Design A 15131:1478 案件管理) where
"reuse (high)" was lossy — Button lacked Show icon_L/R, Input lacked the
date/select/required axes, Sidebar lacked the active item. Live-verified:
those axes now land in unmatchedProps with zero join regression.
494 tests green (vitest).1 parent cdaafc1 commit b15fb89
4 files changed
Lines changed: 72 additions & 3 deletions
File tree
- packages
- server
- src
- join
- tools
- test/join
- skills/figma-codegen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
125 | 161 | | |
126 | 162 | | |
127 | 163 | | |
| |||
144 | 180 | | |
145 | 181 | | |
146 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
147 | 187 | | |
148 | 188 | | |
149 | 189 | | |
150 | 190 | | |
151 | 191 | | |
152 | 192 | | |
153 | | - | |
| 193 | + | |
| 194 | + | |
154 | 195 | | |
155 | 196 | | |
156 | 197 | | |
| |||
164 | 205 | | |
165 | 206 | | |
166 | 207 | | |
167 | | - | |
168 | | - | |
| 208 | + | |
169 | 209 | | |
170 | 210 | | |
171 | 211 | | |
| |||
176 | 216 | | |
177 | 217 | | |
178 | 218 | | |
| 219 | + | |
179 | 220 | | |
180 | 221 | | |
181 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
65 | 87 | | |
66 | 88 | | |
67 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
0 commit comments