You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 85b26c8
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): cut restatement in rules/actions.md and the i18n SKILL.md; the actions.md token row moves 2982 to 2957
rules/actions.md: four more same-file restatements cut (98 bytes), each with
its surviving home named in the ratchet row's comment. The file is 11828
bytes, 2957 tokens; the row follows the measurement down, so the raise from
2808 is +149 where it was +174.
objectstack-i18n/SKILL.md: the Shipped examples lines no longer repeat the
file names the File Organization table lists (63 bytes). The row stays 6333;
merged with origin/main the file measures 6327 tokens.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Copy file name to clipboardExpand all lines: skills/objectstack-ui/rules/actions.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
-`confirmText` — set for any destructive or irreversible operation; the confirm dialog of a param-less action. A registered action is refused it beside a non-empty `params` (put the question on `description`); a view's `bulkActionDefs` entry pairs the two by its own contract.
21
21
-`submitText` — the verb on the param dialog's submit button ("Send", "Log Call") in place of "Confirm": an I18nLabel, refused blank and refused without a non-empty `params` (no dialog opens); `submitLabel` / `confirmLabel` are refused naming this key.
22
22
-`preflight` — a read the param dialog shows above the params before submit: `{ read: { url }, path?, fields?, seed? }` sends one `GET` (no other `method`, no body or credentials) to a same-origin API path (one leading `/`) whose only holes are `${param.NAME}` (a declared param; re-read when it changes), `${ctx.recordId}` and `${ctx.record.FIELD}`. `path` selects the answer's sub-tree (`data`); `fields` rows are `resultDialog.fields`' `{ path, label?, format? }` (omitted: JSON). Each `seed: [{ param, path }]` entry fills a declared param, drawn read-only and submitted as shown: seeded once, no `defaultValue` / `defaultFromRow` / `carryOver`, read by no hole; mark it `required` so Confirm waits for the answer. Refused without a non-empty `params` and beside `execution: 'aggregate'`. UX, not authorization: the endpoint still checks a seeded value.
23
-
-`successMessage` / `errorMessage` — toast copy on success / failure; without `successMessage` the UI shows a generic "Action completed" toast.
23
+
-`successMessage` / `errorMessage` — toast copy; without `successMessage` the UI shows a generic "Action completed" toast.
24
24
- Copy holes are `{{ }}`: `confirmText`, `description` (`'Choose the new owner of {{ record.name }}.'`) and a param's `helpText` read `record`; `successMessage` and each `outcomeMessages` entry (`resent: 'Invitation resent to {{ result.email }}'`) read `result` (the handler's answer) and `record`; `errorMessage` takes none. A `bulkActionDefs` entry's `confirmText` reads `{{ count }}` and its params by bare name (`{{ tier }}`). In all of them `${record.name}`, `{name}`, logic in a hole and a blank sentence fail `os validate`.
25
25
- A param's `helpText`, like `description`, is a sentence or an inline locale map (`{ en: 'Why {{ record.name }} is paused', 'zh-CN': '暂停原因' }`); the map is how a page button's inline `action` (no bundle reaches it) writes its hint per locale.
26
26
-`undoable: true` — an **Undo** in the success toast (and `Ctrl+Z`). Snapshot: runtime on `operation: 'update'`, console on `type: 'api'`; else refused.
**Flow-typed action** (`onSuccess` hops once the run completes, not when it pauses at a screen; its URL template reads an `isOutput` variable as `${result.output.NAME}`):
52
+
`onSuccess` hops once the flow run completes, not when it pauses at a screen; its URL template reads an `isOutput` variable as `${result.output.NAME}`:
53
53
54
54
<!-- os:check -->
55
55
```typescript
@@ -130,9 +130,9 @@ failure toast shows it unless the action authors `errorMessage`.
130
130
131
131
### `openIn: 'new-tab'`
132
132
133
-
A **static**`target` URL on a `type: 'url'` action: `openIn: 'new-tab'`opens
134
-
it in a new tab, `'self'` forces in-place navigation; omitted, absolute URLs open
135
-
in a new tab and relative ones navigate in place.
133
+
A **static**`target` URL on a `type: 'url'` action: `openIn: 'self'`forces
134
+
in-place navigation; omitted, absolute URLs open in a new tab and relative ones
0 commit comments