This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 0d97642
fix(plugin-detail): record:quick_actions draws its refused-array box on preview surfaces only (#13002)
Fixes #13000
Clause-②: no
## What
`record:quick_actions` drew its dashed "KEY refused at index N (see
console)" box in every view when its declared action array was refused
(the objectui#7182 rule: a mixed id/object array). A customer on a
published page then saw developer copy pointing at a console they cannot
read.
Per the triage ruling on the card (comment 6256246172), the box now
follows the rule objectui#12995 set for the "no actions configured"
placeholder:
- under `PreviewModeProvider` (`usePreviewMode()` true) the refused box
is still drawn, unchanged;
- in a runtime view the block draws nothing;
- the `console.error` naming the key, index and rule is unchanged and
still fires in both.
The guard in the empty branch of `RecordQuickActionsBody` moves from
`declared.kind !== 'refused' && (actions.length > 0 || !authoring)` to
`!authoring || (declared.kind !== 'refused' && actions.length > 0)`. How
an array is refused, and the withheld / "named none" cases
objectui#12995 set, are untouched. The stale `noRecord` comment (it
still said the bar "draws its empty state") is corrected, comment only.
## Tests
- `record-quick-actions.declared-action-ids-7182.test.tsx`: the two
refused cases now mount under `PreviewModeProvider`, every assertion
kept. New case: a refused array (index 2, so the reporter's warn-once
ledger cannot silence it) draws nothing at runtime, no placeholder of
either kind, empty `textContent`, and the console error still fires
once, naming index 2.
- `declaredActionIds.twoRenderers-7182.test.tsx` (in `src/__tests__`,
outside the claim's "tests beside it" wording; declared in the report):
its refused case mounts both surfaces at runtime, so the bar half now
asserts no "refused at index" text and an empty bar. The cross-surface
console assertions are unchanged.
- CONTROL: `record-quick-actions.withheldEmpty-12995.test.tsx` is
unchanged and green.
Ablation (one-off, no permanent file): restoring the old guard through
`ablation-replace.mjs` (anchor 1 to 0, blob `8f3fed2d4f61` to
`2ecd76149a17`) turned both runtime pins red (`2 failed | 6 passed`);
the restore was proven by blob hash (`8f3fed2d4f61` == HEAD) and an
empty `git diff HEAD`.
Measured at `b897f7d28b`:
- targeted vitest (3 files): 14 passed; family run (48 test files naming
`record-quick-actions` / `record:quick_actions` /
`recordQuickActionsInputs` / `recordBinding`): 48 files, 2221 tests
passed.
- `@object-ui/plugin-detail` closure build, then `type-check` (`tsc
--noEmit` and `tsconfig.test.json`, which includes the test files): exit
0.
- eslint on the 3 changed files (the package's `eslint .` form): 0
errors, warnings equal to base on each file (12/4/4). eslint config is
not type-aware, so the diff cannot move the verdict for an untouched
file.
- pre-tsc battery and changeset gates: all exit 0 except
`check:spec-floors` exit 1, the known main-side state the dispatch
named.
- NOT MEASURED locally: the full `packages/plugin-detail/` directory,
declared to CI per the dispatch.
## Acceptance notes
- `src/index.tsx`: the registered `actionNames` description does not
describe the refused box at runtime, so it is unchanged.
- The branch commit's message carries a `Fixes objectui#13000` line,
which the dev contract keeps out of commits. It names this same card, so
a squash changes nothing about which card closes; it is not rewritten
(no force-push in this repo).
Session: `https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB`
---
_Generated by [Claude
Code](https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9e7e1a5 commit 0d97642
4 files changed
Lines changed: 44 additions & 7 deletions
File tree
- .changeset
- packages/plugin-detail/src
- __tests__
- renderers
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
166 | | - | |
| 172 | + | |
167 | 173 | | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
174 | 196 | | |
175 | 197 | | |
176 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
350 | 356 | | |
351 | 357 | | |
352 | | - | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
| |||
0 commit comments