Commit 2baa13f
fix(record): register the record:* blocks under one key, prefixed once (#3023)
Eleven blocks in plugin-detail were registered as
register('record:x', …, { namespace: 'record' }) — an already-prefixed name
handed to a registry that prefixes it again. Each landed at record:record:x,
and the key authors actually resolved, record:x, was the un-namespaced
FALLBACK rather than the intended registration. The registry carried 23 keys
for 12 components.
Nothing failed, which is why it survived: getPublicConfigs() rewrites `type` to
the curated tag, so the doubled name never reached the contract, the manifest,
or the JSX surface. It was visible only when enumerating the registry directly
— which is what #3013's reverse check does.
Registering the bare name is what makes `namespace` correct, and
skipFallback: true is what keeps the fallback from claiming that bare name
globally. Without it these would take over `details`, `path`, `history`,
`alert` … as top-level tags; `alert` is the live case, owned by ui:. Every
block stays reachable exactly as record:<name>, and 23 keys become 12.
record:line_items needed no change — it was the one already registered this
way, which is what made #3006's near-miss possible in the first place.
Two console assertions hold the shape: no key carries a doubled prefix, and no
record:* block owns the bare spelling of its own name. Both were verified
against the old form: restoring one registration fails them with the phantom
key named.
Claude-Session: https://claude.ai/code/session_01N4mrr1ihhwnfEHFSWmGoMp
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8eee174 commit 2baa13f
3 files changed
Lines changed: 90 additions & 33 deletions
File tree
- .changeset
- apps/console/src/__tests__
- packages/plugin-detail/src
| 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
210 | 192 | | |
211 | 193 | | |
212 | 194 | | |
| |||
215 | 197 | | |
216 | 198 | | |
217 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
224 | 235 | | |
225 | 236 | | |
226 | | - | |
| 237 | + | |
227 | 238 | | |
| 239 | + | |
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
| |||
237 | 249 | | |
238 | 250 | | |
239 | 251 | | |
240 | | - | |
| 252 | + | |
241 | 253 | | |
| 254 | + | |
242 | 255 | | |
243 | 256 | | |
244 | 257 | | |
| |||
256 | 269 | | |
257 | 270 | | |
258 | 271 | | |
259 | | - | |
| 272 | + | |
260 | 273 | | |
| 274 | + | |
261 | 275 | | |
262 | 276 | | |
263 | 277 | | |
| |||
268 | 282 | | |
269 | 283 | | |
270 | 284 | | |
271 | | - | |
| 285 | + | |
272 | 286 | | |
| 287 | + | |
273 | 288 | | |
274 | 289 | | |
275 | 290 | | |
276 | 291 | | |
277 | 292 | | |
278 | | - | |
| 293 | + | |
279 | 294 | | |
| 295 | + | |
280 | 296 | | |
281 | 297 | | |
282 | 298 | | |
| |||
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
290 | | - | |
| 306 | + | |
291 | 307 | | |
| 308 | + | |
292 | 309 | | |
293 | 310 | | |
294 | 311 | | |
295 | 312 | | |
296 | 313 | | |
297 | | - | |
| 314 | + | |
298 | 315 | | |
| 316 | + | |
299 | 317 | | |
300 | 318 | | |
301 | 319 | | |
| |||
306 | 324 | | |
307 | 325 | | |
308 | 326 | | |
309 | | - | |
| 327 | + | |
310 | 328 | | |
| 329 | + | |
311 | 330 | | |
312 | 331 | | |
313 | 332 | | |
314 | 333 | | |
315 | 334 | | |
316 | | - | |
| 335 | + | |
317 | 336 | | |
| 337 | + | |
318 | 338 | | |
319 | 339 | | |
320 | 340 | | |
321 | 341 | | |
322 | 342 | | |
323 | | - | |
| 343 | + | |
324 | 344 | | |
| 345 | + | |
325 | 346 | | |
326 | 347 | | |
327 | 348 | | |
328 | 349 | | |
329 | 350 | | |
330 | | - | |
| 351 | + | |
331 | 352 | | |
| 353 | + | |
332 | 354 | | |
333 | 355 | | |
334 | 356 | | |
| |||
0 commit comments