Skip to content

Commit 5c79e06

Browse files
committed
refactor(app-shell): keep the operation doc comment on SCRIPT_OPERATIONS
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVG55iUTTWRd5tR6Di
1 parent a9ea110 commit 5c79e06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/ActionDefaultInspector.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ const BODY_SHAPE_OPTS: KeyedOption[] = [
416416
{ value: 'wrap', labelKey: 'engine.inspector.action.bodyShape.wrap' },
417417
];
418418

419-
/** What a script action DOES — `operation` is authored beside `type`, not in it. */
420419
/** One field-value row of an update action: the field, and the value written to it. */
421420
type PatchRow = [string, unknown];
422421

@@ -430,6 +429,7 @@ function samePatchRows(a: ReadonlyArray<PatchRow>, b: ReadonlyArray<PatchRow>):
430429
&& a.every(([key, value], i) => key === b[i][0] && JSON.stringify(value) === JSON.stringify(b[i][1]));
431430
}
432431

432+
/** What a script action DOES — `operation` is authored beside `type`, not in it. */
433433
const SCRIPT_OPERATIONS: KeyedOption[] = [
434434
{ value: '', labelKey: 'engine.inspector.action.scriptOp.run' },
435435
{ value: 'update', labelKey: 'engine.inspector.action.scriptOp.update' },

0 commit comments

Comments
 (0)